codai · Schema
Model list
CompanyArtificial IntelligenceCode GenerationDeveloper ToolsLLM GatewayOpenAI-CompatibleModel RoutingRomania
Properties
| Name | Type | Description |
|---|---|---|
| object | string | |
| data | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-core-model-list-schema.json",
"title": "Model list",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/codai-ro-models-api-openapi.yml#/components/schemas/CoreModelList",
"type": "object",
"required": [
"object",
"data"
],
"properties": {
"object": {
"type": "string",
"enum": [
"list"
]
},
"data": {
"type": "array",
"items": {
"$ref": "#/$defs/CoreModel"
}
}
},
"$defs": {
"CoreModel": {
"type": "object",
"title": "Model",
"required": [
"id",
"object",
"created",
"owned_by",
"codai"
],
"properties": {
"id": {
"type": "string"
},
"object": {
"type": "string",
"enum": [
"model"
]
},
"created": {
"type": "integer",
"description": "Always `0` — codai does not track model creation time.",
"enum": [
0
]
},
"owned_by": {
"type": "string",
"enum": [
"codai",
"codai-upstream"
],
"description": "`codai` for aliases, `codai-upstream` for concrete upstream models."
},
"codai": {
"type": "object",
"description": "Non-OpenAI extension with routing and capability flags.",
"required": [
"kind",
"type",
"capabilities"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"alias",
"concrete"
]
},
"type": {
"type": "string",
"enum": [
"chat",
"embedding"
],
"description": "Surface the model serves; `embedding` entries are usable only on `/v1/embeddings`."
},
"routesTo": {
"type": "array",
"items": {
"type": "string"
},
"description": "For aliases, the concrete upstream models in its routing chain. Absent on concrete entries."
},
"capabilities": {
"$ref": "#/$defs/CoreModelCapabilities"
},
"pricing": {
"$ref": "#/$defs/CoreModelPricing"
}
}
}
}
},
"CoreModelCapabilities": {
"type": "object",
"title": "Model capabilities",
"required": [
"tools",
"vision",
"streaming",
"maxInputTokens",
"maxOutputTokens"
],
"properties": {
"tools": {
"type": "boolean",
"description": "Supports function-calling style tools."
},
"vision": {
"type": "boolean",
"description": "Accepts `image_url` content parts."
},
"streaming": {
"type": "boolean",
"description": "Server-sent events streaming supported end to end."
},
"maxInputTokens": {
"type": "integer",
"description": "Conservative maximum input context window in tokens."
},
"maxOutputTokens": {
"type": "integer",
"description": "Maximum output tokens per response (`0` for embedding models)."
}
}
},
"CoreModelPricing": {
"type": "object",
"title": "Model pricing",
"description": "List price in USD per million tokens, so a client can show a per-turn cost and a pre-turn estimate from the token counts it already has. For an alias the top-level numbers are the FIRST route's price (what the cascade tries first); `by_route` prices every route so the response header `x-codai-routed-to` can be priced exactly. Absent on embedding entries.",
"required": [
"input_usd_per_mtok",
"output_usd_per_mtok",
"cached_input_usd_per_mtok",
"cache_write_usd_per_mtok",
"exact"
],
"properties": {
"input_usd_per_mtok": {
"type": "number"
},
"output_usd_per_mtok": {
"type": "number"
},
"cached_input_usd_per_mtok": {
"type": "number",
"description": "Prompt-cache read rate (Anthropic `cache_read_input_tokens`, OpenAI `cached_tokens`)."
},
"cache_write_usd_per_mtok": {
"type": "number",
"description": "Prompt-cache write rate (5-minute ephemeral)."
},
"exact": {
"type": "boolean",
"description": "`false` when the model has no dedicated row and bills at the conservative fallback rate."
},
"by_route": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/CoreModelPricing"
},
"description": "Alias entries only — price per concrete route id."
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/codai-ro-core-model-list"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.