Models API
This route is the source of truth for what your account can use. It should be the first API you call in a new environment.
This route is the source of truth for what your account can use. It should be the first API you call in a new environment.
Published route
GET https://gateway.api.anyint.ai/openai/v1/models
Why this route matters
Use it before hardcoding model IDs. This is the safest way to confirm what your account can access.
Authentication
Use Bearer authentication on the OpenAI-compatible models route:
Authorization: Bearer <ANYINT_API_KEY>The Anthropic-compatible model list is also available at GET /anthropic/v1/models with x-api-key and anthropic-version headers. Do not use GET /v1/models; it is not a published AnyInt gateway route.
cURL example
curl https://gateway.api.anyint.ai/openai/v1/models \
-H "Authorization: Bearer $ANYINT_API_KEY"JavaScript example
const response = await fetch("https://gateway.api.anyint.ai/openai/v1/models", {
headers: {
Authorization: `Bearer ${process.env.ANYINT_API_KEY}`,
},
});
const data = await response.json();
console.log(data.data.map((model) => model.id));Python example
import os
import requests
response = requests.get(
"https://gateway.api.anyint.ai/openai/v1/models",
headers={
"Authorization": f"Bearer {os.environ['ANYINT_API_KEY']}",
},
timeout=30,
)
response.raise_for_status()
for model in response.json()["data"]:
print(model["id"])Response fields
| Field | Meaning |
|---|---|
data[].id | The model ID to use in requests |
data[].display_name | Human-friendly label |
data[].type | Object type |
data[].created_at | Published timestamp |
has_more | Pagination flag |
first_id / last_id | Cursor-related identifiers |
Recommended usage pattern
- Fetch models during environment setup.
- Cache the response in your application or admin UI.
- Let users pick from
data[].idinstead of free-typing a model name. - Re-sync regularly if you depend on newly added models.
Common mistakes
- Treating a dashboard label as the request
modelvalue - Assuming every account sees the same model list
- Calling
GET /v1/modelsinstead of the published/openai/v1/modelsor/anthropic/v1/modelscompatibility routes
Endpoint Index
Endpoint-first map of the public AnyInt gateway surface, including status, auth style, and the canonical docs page for each API family.
OpenAI Compatible API
Use this route when you want the fastest path to production or when your application already speaks the OpenAI Chat Completions format.