v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
anthropic-compat

Retrieve Model

Retrieve metadata for a single Anthropic-compatible model.

The :path converter is required because our runtime catalog ships model IDs containing slashes (e.g. qwen/qwen3-8b). Without it, FastAPI's default single-segment path param matcher 404s every such request — breaking openai.OpenAI(...).models.retrieve("qwen/qwen3-8b") and anthropic.Anthropic(...).models.retrieve("qwen/qwen3-8b") for real SDK users.

Args: model_id: Requested model identifier (may contain /). auth: Authentication result.

Returns: Combined Anthropic-compatible and Codex/OpenAI-compatible model metadata.

Raises: HTTPException: If the model ID is not in the runtime catalog.

get/v1/models/{model_id}

Path parameters

model_idstring required

Response

Successful Response

{"stackTrail":"paths:/v1/models/{model_id}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}