Quickstart
Make your first OpenModels request in a few minutes. OpenModels uses an OpenAI-compatible API, so most existing OpenAI SDK code works after you change the base URL and API key.
1. Create an API key
Open the OpenModels dashboard, go to API Keys, and create a key. Keys use the ale-... format and are shown once.
- Store the key in a secrets manager or environment variable.
- Do not commit API keys to source control.
- Use separate keys for development, staging, and production.
- Rotate a key immediately if it may have leaked.
2. Add credits
Open Credits and add balance before routing production traffic. Credits are shared across supported models and API keys.
- Use one-time top-ups for manual funding.
- Use card payments or supported crypto payment methods where available.
- Enable auto top-up when you want balance to refill automatically below your threshold.
- Credits are consumed according to the selected routeβs pricing unit.
3. Choose a model
Open Models and copy a model ID. The model ID is the value you pass in the model field.
For testing, start with a low-cost chat model such as qwen3.5-flash, then switch models by changing only the model value.
The examples below include optional route and route_mode fields. Replace the provider placeholder with a route name from the Models table or OpenModels dashboard, or remove both fields to use the default available route.
After the first request works, create a Model Route if you want application code to call a stable route ID such as route:coding-agent.
4. Send a request
Base URL:
Endpoint:
cURL
Python
Node.js
5. If the first request fails
Use the error status and code to choose the next page:
6. Track usage and spend
After requests start running, use Usage and Credits to monitor request volume, token usage, spend, balance, top-ups, and monthly limits.
What changes from OpenAI
OpenModels API access is powered by Alephant gateway infrastructure.