Anthropic-compatible
List models (Anthropic format)
See which models your API key can use, in the Anthropic format.
Compatible with Anthropic’s List Models format. Returns the models the current API key can use.
GET https://noviahub.com/v1/modelsThis is the same URL as the OpenAI-format model list. You must send both the x-api-key and anthropic-version headers to get the Anthropic format; with only one of them, you get the OpenAI format.
Headers
Section titled “Headers”| Header | Required | Description |
|---|---|---|
x-api-key |
Yes | Your API key. |
anthropic-version |
Yes | For example 2023-06-01. |
The same models are returned as in the OpenAI format: those available in your key’s group that have a price, limited to the Model Limits list if the key has one.
Sample code
Section titled “Sample code”curl https://noviahub.com/v1/models \ -H "x-api-key: $NOVIAHUB_API_KEY" \ -H "anthropic-version: 2023-06-01"import os
import anthropic
client = anthropic.Anthropic( base_url="https://noviahub.com", api_key=os.environ["NOVIAHUB_API_KEY"],)
for model in client.models.list(): print(model.id)import Anthropic from '@anthropic-ai/sdk'
const client = new Anthropic({ baseURL: 'https://noviahub.com', apiKey: process.env.NOVIAHUB_API_KEY,})
for await (const model of client.models.list()) { console.log(model.id)}Response
Section titled “Response”| Field | Description |
|---|---|
data[].id |
Model ID. |
data[].display_name |
Display name, same as id. |
data[].type |
Always model. |
data[].created_at |
A fixed value with no meaning. |
first_id / last_id |
IDs of the first and last model in the list. |
has_more |
Always false; all models come back at once, without pages. |
{ "data": [ { "id": "claude-sonnet-5", "created_at": "2021-07-20T10:40:00Z", "display_name": "claude-sonnet-5", "type": "model" }, { "id": "deepseek-v4-flash", "created_at": "2021-07-20T10:40:00Z", "display_name": "deepseek-v4-flash", "type": "model" } ], "first_id": "claude-sonnet-5", "has_more": false, "last_id": "deepseek-v4-flash"}Not every model in this list can be called through /v1/messages. To see which endpoints a model supports, check its endpoint labels on Models & Pricing or supported_endpoint_types in the OpenAI-format list.