Models
Each API lists the models you can call through it. A model is listed when it is enabled, fully priced, and at least one online provider offers it. Momentary conditions, such as a busy account or a short rate limit, do not remove a model from the list, so a listed model can still occasionally return 503 no_supply.
OpenAI models
GET /v1/models
GET /v1/models/{id}
Lists the OpenAI models you can call through Responses and Chat Completions, in OpenAI's format.
- cURL
- Python
- TypeScript
curl https://api.tokhive.ai/v1/models \
-H "Authorization: Bearer $HIVE_API_KEY"
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.tokhive.ai/v1", api_key=os.environ["HIVE_API_KEY"])
for model in client.models.list():
print(model.id)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.tokhive.ai/v1", apiKey: process.env.HIVE_API_KEY });
for await (const model of client.models.list()) {
console.log(model.id);
}
Retrieving a model that is not in the list, including a Claude model, returns 404 model_not_found.
Claude models
GET /anthropic/v1/models
GET /anthropic/v1/models/{id}
Lists the Claude models you can call through Messages, in Anthropic's format.
- cURL
- Python
- TypeScript
curl https://api.tokhive.ai/anthropic/v1/models \
-H "x-api-key: $HIVE_API_KEY"
import os
import anthropic
client = anthropic.Anthropic(base_url="https://api.tokhive.ai/anthropic", api_key=os.environ["HIVE_API_KEY"])
for model in client.models.list():
print(model.id)
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({ baseURL: "https://api.tokhive.ai/anthropic", apiKey: process.env.HIVE_API_KEY });
for await (const model of client.models.list()) {
console.log(model.id);
}
{
"data": [
{
"type": "model",
"id": "claude-opus-5-5",
"display_name": "Claude Opus 5.5",
"created_at": "2026-09-01T00:00:00Z"
}
],
"has_more": false,
"first_id": "claude-opus-5-5",
"last_id": "claude-opus-5-5"
}
The whole list always fits on one page, so has_more is always false. Retrieving a model that is not in the list returns 404.
Codex model catalog
GET /v1/codex/models
The model catalog Codex reads through model_catalog_url in its config. TokHive fetches it from the upstream for your Codex version and keeps only the models in /v1/models. It returns 404 codex_catalog_unavailable when no catalog is available yet. The console's Codex setup guide fills in this URL for you, so you rarely call it yourself.