Models
List available models
List available models. If the provider parameter is not specified, all models from all configured providers are returned.
Endpoint
GET https://ai-tokenhub.ai/api/v1/modelsAuthorizations
BearerAuth
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token authentication. Use your API key or platform auth token; virtual keys (prefixed with sk-bf-) can also be passed here. Format: Bearer $YOUR_API_KEY |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| provider | enum<string> | No | Filter by provider (e.g. openai, anthropic, bedrock) Available options: openai, azure, anthropic, bedrock, cohere, vertex, vllm, mistral, ollama, groq, sgl, parasail, perplexity, replicate, cerebras, gemini, openrouter, elevenlabs, huggingface, nebius, xai, runway, fireworks |
| page_size | integer | No | Maximum number of models to return. Must be >= 0 |
| page_token | string | No | Pagination token used to fetch the next page of data |
Response Description
200 Response
application/json format, request succeeded
| Field | Type | Description |
|---|---|---|
| data | object[] | Array of models, containing all matching model information |
| extra_fields | object | Additional fields included in the response |
| next_page_token | string | Pagination token for the next page, or null if there is no more data |
Response Example
json
{
"object": "list",
"data": [
{
"id": "dola-seed-2-1-turbo-260628",
"object": "model",
"created": 1712361441,
"name": "Dola Seed 2.1 Turbo",
"provider": "byteplus",
"context_length": 256000,
"capabilities": ["chat", "function_calling"]
}
],
"extra_fields": {
"total": 120
},
"next_page_token": "page-2-token"
}Get Single Model
GET https://ai-tokenhub.ai/api/v1/models/{model_id}Use Cases
- Model Discovery: Browse and choose the right model
- Capability Query: Understand the features a model supports
- Context Window: View the maximum input length a model supports
- Pagination: Fetch models in batches when there are many of them
