AI ROUTER helps AI app developers connect to a ChatGPT API relay through an OpenAI-compatible endpoint.
This is useful when you are building an AI app prototype, testing prompts, adding a chat feature, or validating a workflow before choosing a larger plan.
- Chat interfaces.
- Prompt testing.
- Internal assistants.
- Content review tools.
- Developer productivity tools.
- Lightweight agent workflows.
- Create an AI ROUTER API key.
- Store the key in an environment variable.
- Set the SDK base URL to
https://api.ai-router.dev/v1. - Use a model available in your dashboard.
- Send a test request.
- Check usage and quota.
export AI_ROUTER_API_KEY="replace_with_your_api_key"
export AI_ROUTER_BASE_URL="https://api.ai-router.dev/v1"Related: