OpenAI-compatible
List models (OpenAI format)
See which models your API key can use and which endpoints each model supports.
Compatible with OpenAI’s List models. Returns the models the current API key can use.
GET https://noviahub.com/v1/modelsWhich models are returned
Section titled “Which models are returned”- Only models that are available in your key’s group and already have a price.
- If the key has Model Limits, only the models on that list. In our tests, a key limited to
deepseek-v4-flashsaw only that one model here.
One URL, three formats
Section titled “One URL, three formats”/v1/models picks its response format from the request headers:
| Request | Format returned |
|---|---|
Both x-api-key and anthropic-version headers |
Anthropic format |
x-goog-api-key header or ?key= query parameter |
Gemini format |
Anything else (for example Authorization: Bearer) |
The OpenAI format described here |
/v1beta/openai/models also returns the OpenAI format.
Sample code
Section titled “Sample code”curl https://noviahub.com/v1/models \ -H "Authorization: Bearer $NOVIAHUB_API_KEY"import os
from openai import OpenAI
client = OpenAI( base_url="https://noviahub.com/v1", api_key=os.environ["NOVIAHUB_API_KEY"],)
for model in client.models.list(): print(model.id)import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://noviahub.com/v1', apiKey: process.env.NOVIAHUB_API_KEY,})
for await (const model of client.models.list()) { console.log(model.id)}Response
Section titled “Response”| Field | Description |
|---|---|
object |
Always list. |
success |
Always true. |
data[].id |
Model ID; put it in the model parameter. |
data[].object |
Always model. |
data[].created |
A fixed value with no meaning. |
data[].owned_by |
The type of service behind the model. |
data[].supported_endpoint_types |
Endpoints this model supports; see below. |
The values of supported_endpoint_types match the endpoint labels on the Models & Pricing page:
| Value | Label on the page | Endpoint |
|---|---|---|
openai |
Chat | POST /v1/chat/completions |
openai-response |
Response | POST /v1/responses |
openai-response-compact |
openai-response-compact |
POST /v1/responses/compact |
openai-alpha-search |
openai-alpha-search |
POST /v1/alpha/search |
anthropic |
Anthropic | POST /v1/messages |
gemini |
Gemini | POST /v1beta/models/{model}:generateContent |
image-generation |
Image | POST /v1/images/generations |
{ "data": [ { "id": "claude-sonnet-5", "object": "model", "created": 1626777600, "owned_by": "claude", "supported_endpoint_types": ["anthropic", "openai"] }, { "id": "gpt-image-2", "object": "model", "created": 1626777600, "owned_by": "openai", "supported_endpoint_types": ["image-generation", "openai"] } ], "object": "list", "success": true}