model field. The gateway routes each request to a healthy upstream that serves that model, so your integration never talks to individual providers directly.
The base URL is
https://api.infyrence.com/v1. Point any OpenAI SDK at it and set model to any id returned by GET /v1/models. No other code change is needed.List available models
CallGET /v1/models to get the models available to your account. The response is a list of ModelInfo objects, matching the shape of the OpenAI models endpoint.
Create and manage keys in the dashboard. Send yours as a Bearer token:
Authorization: Bearer sk-.... A missing or invalid key returns 401.Example response
Response fields
Each entry indata is a ModelInfo object.
string
The model id. Pass this exact value as the
model field in a request.string
Always
model.integer
A Unix timestamp for the model entry.
string
Always
infyrence. The gateway presents a single, generic owner and does not disclose which upstream provider serves a given model.object
Which request surfaces the model supports. Each field is a boolean.
Selecting a model
You choose a model per request through themodel field. The value must be an id returned by GET /v1/models.
404 with a not_found error and code model_not_found. Every response, including errors, carries an X-Request-Id header you can use for tracing.
Provider coverage
A single Infyrence key reaches models from every major provider through one OpenAI-compatible surface. The gateway maps eachmodel id to a provider that serves it, so you never manage separate SDKs, base URLs, or keys per provider.
Because owned_by is always infyrence, you select by capability and model id, not by upstream. Use capabilities to filter for what you need (chat, completions, or embeddings).
Bring your own key (BYOK)
Instead of drawing on your platform balance, you can attach your own provider key and have the gateway route eligible requests through it. BYOK is supported for these providers:BYOK covers billing and provider access, not the request shape. You still call the same
https://api.infyrence.com/v1 endpoint with the same model ids. See Pricing for platform rates and how BYOK affects billing.Failover routing
When more than one healthy upstream can serve a model, the gateway picks one for you and fails over if it is unavailable. You do not configure this: it is automatic and transparent to your integration.1
Match the model to a provider
The gateway resolves the
model id to every registered provider that serves it, using exact model lists plus prefix matching so newly published models stay routable.2
Prefer a healthy, dedicated upstream
Dedicated providers are preferred over broad aggregators, so a request lands on the most specific healthy upstream available for that model.
3
Retry and fall back on failure
If an upstream returns a transient error such as
429 (rate limited) or 503 (temporarily unavailable), the gateway retries, honors any Retry-After, and falls back to another upstream that serves the same model.A
429 response includes a Retry-After header (seconds to wait) along with X-RateLimit-* headers. A 503 means the model is temporarily unavailable: retry after a short delay. Both responses include X-Request-Id.Next steps
Create a chat completion
Send a request to a selected model.
Authentication
Create a key and send it as a Bearer token.
Errors
Handle
401, 404, 429, and 503 responses.Pricing
See per-model, per-token rates and BYOK billing.