apicheats.dev anthropic/llms.txt Raw .md
GET

GET /v1/models — Claude API

Beta

Anthropic API key (required); https://api.anthropic.com

Claude API

List Models

Base URL
https://api.anthropic.com
Auth
x-api-key: <ANTHROPIC_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 241 tokens · Vary: Accept

Critical gotchas

Authentication uses the x-api-key header and requests also require an anthropic-version header.

The official OpenAPI URL is discovered from the SDK repository manifest and must remain under Anthropic's trusted Stainless storage prefix.

cURL

curl -X GET 'https://api.anthropic.com/v1/models?before_id=before-id&after_id=after-id&limit=20' \  -H "x-api-key: $ANTHROPIC_API_KEY" \  -H 'anthropic-version: 2023-06-01'

Parameters

Name In Type Required Description
before_id query string No ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
after_id query string No ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
limit query integer No Number of items to return per page. Defaults to `20`. Ranges from `1` to `1000`.

Response 200 OK

{
  "data": [
    {
      "capabilities": {
        "batch": {
          "supported": true
        },
        "citations": {
          "supported": true
        },
        "code_execution": {
          "supported": true
        },
        "context_management": {
          "clear_thinking_20251015": {
            "supported": "[recursive or deeply nested schema]"
          },
          "clear_tool_uses_20250919": {
            "supported": "[recursive or deeply nested schema]"
          },
          "compact_20260112": {
            "supported": "[recursive or deeply nested schema]"
          },
          "supported": true
        },
        "effort": {
          "high": {
            "supported": "[recursive or deeply nested schema]"
          },
          "low": {
            "supported": "[recursive or deeply nested schema]"
          },
          "max": {
            "supported": "[recursive or deeply nested schema]"
          },
          "medium": {
            "supported": "[recursive or deeply nested schema]"
          },
          "supported": true,
          "xhigh": {
            "supported": "[recursive or deeply nested schema]"
          }
        },
        "image_input": {
          "supported": true
        },
        "pdf_input": {
          "supported": true
        },
        "structured_outputs": {
          "supported": true
        },
        "thinking": {
          "supported": true,
          "types": {
            "adaptive": "[recursive or deeply nested schema]",
            "enabled": "[recursive or deeply nested schema]"
          }
        }
      },
      "created_at": "2026-09-03T00:00:00Z",
      "display_name": "string",
      "id": "string",
      "max_input_tokens": 0,
      "max_tokens": 0,
      "type": "model"
    }
  ],
  "first_id": "string",
  "has_more": true,
  "last_id": "string"
}
Get a free Claude API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.