anthropic-compat

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}

Request

Path parameters

model_idstring required

Response

Successful Response

unknown required

Changes

    • warning

      removed the optional property from the response with the status

    • info

      added the required property to the response with the status