Skip to navigation

List Models

View as MarkdownOpen in Claude

Returns the models your key may call, with their token limits. Send an anthropic-version header to get the Anthropic Models API format. Otherwise the response is in OpenAI format.

Authentication

AuthorizationBearer

Your You.com API key, sent as Authorization: Bearer <key>. Get a key in the “Get your API key” section of the documentation.

Headers

anthropic-versionstringOptional

The Anthropic API version, such as 2023-06-01. Sending this header selects the Anthropic response format.

Response

The models available to your key.
ModelListOpenAIobject
OR
ModelListAnthropicobject

Errors

401
Unauthorized Error
403
Forbidden Error