# Chart Doctor > Hosted chart-image repair API. Users supply their own OpenRouter key and get a Chart Doctor token through self-service email verification. Install an HTTP client in the user's project; the server runs the models and sandboxed R renderer. ## Setup and API - [Agent setup and full API contract](https://dataviz.karthiks.co/api/guide.md): Start here. Dependencies, environment variables, authentication, endpoints, polling, idempotency, limits, errors, result interpretation and credential handling. - [Python reference](https://dataviz.karthiks.co/api/example.py): Runnable submit, poll and download example. Inspect and adapt it to the user's project. - [Self-service signup and setup prompt](https://dataviz.karthiks.co/api): The user verifies their email and saves the token here. - [API privacy](https://dataviz.karthiks.co/privacy#api-access): Credential handling, model providers and retention. Base URL: https://dataviz.karthiks.co Required environment variables: CHART_DOCTOR_API_TOKEN and OPENROUTER_API_KEY. The setup guide and Python reference are public and require no JavaScript or authentication.