# Models endpoint > GET /v1/models — discover exactly which model ids your key can call. _Source: https://aiprimetech.io/docs/api-reference/models-endpoint/ · Home > Docs > API reference_ The authoritative list. If an id is not here, your key cannot call it — do not guess ids from documentation or blog posts. ```bash curl https://aiprimetech.io/v1/models \ -H "Authorization: Bearer $CLAUDEAPIKEY" ``` ## Response ```json { "object": "list", "data": [ {"id": "claude-opus-4-8", "object": "model", "owned_by": "anthropic"}, {"id": "claude-sonnet-4-6", "object": "model", "owned_by": "anthropic"}, {"id": "gpt-5.5", "object": "model", "owned_by": "openai"} ] } ``` ## Practical uses - **Health check.** A 200 proves base URL and key are both correct before you debug anything else. - **Populating a model picker.** Read ids at startup instead of hardcoding a list that goes stale. - **Catching typos.** Validate a configured model id against this list and fail loudly at boot rather than on the first user request. ```python import os, httpx r = httpx.get( "https://aiprimetech.io/v1/models", headers={"Authorization": f"Bearer {os.environ['CLAUDEAPIKEY']}"}, timeout=20, ) r.raise_for_status() ids = [m["id"] for m in r.json()["data"]] assert "claude-sonnet-4-6" in ids, "configured model not available on this key" ``` - [Models](https://aiprimetech.io/docs/getting-started/models/) — Prices and context windows - [Errors](https://aiprimetech.io/docs/api-reference/errors/) — What model_not_found means --- _ClaudeAPIKey.dev is an independently operated, Anthropic-compatible API gateway. Not affiliated with Anthropic._