API docsIntegration guides
Billing
Credits are charged when the task is submitted, based on the chosen provider's price for your parameters (per second of video, per image or per request). Failed or timed-out tasks are refunded automatically.
Usage notes
- Chat models (GPT, Claude, Gemini, Grok, DeepSeek…) use the OpenAI Chat Completions format, so the official OpenAI SDKs work with base URL https://01router.com/api/v1. Set "stream": true for server-sent events. Credits for the prompt plus max_tokens (4,096 when unset) are held first, then settled to the real token usage once the reply ends; the same request id appears in the X-Gateway-Request-Id header and the task log.
- Same body as creating a generation. Returns every available provider sorted by price, plus the ones that cannot serve the request and why.
Use with AI
Give your coding assistant the documentation index or the full API reference, including live model parameters.