Skip to content
Request
Response

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/models

Authorizations ​

BearerAuth ​

NameTypeRequiredDescription
AuthorizationstringYesBearer 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 ​

NameTypeRequiredDescription
providerenum<string>NoFilter 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_sizeintegerNoMaximum number of models to return. Must be >= 0
page_tokenstringNoPagination token used to fetch the next page of data

Response Description ​

200 Response ​

application/json format, request succeeded

FieldTypeDescription
dataobject[]Array of models, containing all matching model information
extra_fieldsobjectAdditional fields included in the response
next_page_tokenstringPagination 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