Skip to Content

Models API

List and query all available models on the OfoxAI platform. The returned data follows the OpenRouter standard and includes complete model metadata: architecture, pricing, supported parameters, and more.

The Models API is a public endpoint that does not require an API Key. For detailed field descriptions, see Model Catalog — Models API Standard.

List All Models

GET https://api.ofox.ai/v1/models

Request Examples

Terminal
curl https://api.ofox.ai/v1/models

Response Format

{ "object": "list", "data": [ { "id": "anthropic/claude-sonnet-4.5", "object": "model", "created": 1759104000, "owned_by": "bedrock", "canonical_slug": "claude-sonnet-4-5-20250929", "name": "Claude Sonnet 4.5", "description": "Anthropic's balanced model with state-of-the-art performance...", "context_length": 200000, "architecture": { "modality": "text+image+file->text", "input_modalities": ["text", "image", "file"], "output_modalities": ["text"], "tokenizer": "claude", "instruct_type": null }, "pricing": { "prompt": "0.000003", "completion": "0.000015", "input_cache_read": "0.0000003", "input_cache_write_5m": "0.00000375", "input_cache_write_1h": "0.000006" }, "top_provider": { "context_length": 200000, "max_completion_tokens": 16384, "is_moderated": false }, "per_request_limits": null, "supported_parameters": [ "temperature", "top_p", "max_tokens", "stop", "tools", "tool_choice", "response_format", "reasoning" ], "default_parameters": null, "expiration_date": null } ] }

Response Fields

FieldTypeDescription
idstringModel identifier, e.g. "anthropic/claude-sonnet-4.5"
canonical_slugstringPermanent identifier, never changes
namestringModel display name
creatednumberTime added (Unix timestamp)
descriptionstringModel capability description
context_lengthnumberMaximum context window (tokens)
architectureobjectInput/output modalities and tokenizer info
pricingobjectPricing (USD/token)
top_providerobjectProvider config (context limit, max output, etc.)
supported_parametersstring[]Supported API parameters

Filter Models by Provider

GET https://api.ofox.ai/v1/models/{provider}

Returns only models from the specified provider.

Path Parameters

ParameterTypeDescription
providerstringProvider identifier, e.g. anthropic, openai, google, bailian, volcengine

Request Examples

Terminal
# List all Anthropic models curl https://api.ofox.ai/v1/models/anthropic # List all OpenAI models curl https://api.ofox.ai/v1/models/openai

Response Format

The response format is the same as listing all models, with the data array containing only models from the specified provider.

Get Model Details

GET https://api.ofox.ai/v1/models/{provider}/{model_id}

Path Parameters

ParameterTypeDescription
providerstringProvider identifier, e.g. anthropic
model_idstringModel name, e.g. claude-sonnet-4.5

Request Example

Terminal
curl https://api.ofox.ai/v1/models/anthropic/claude-sonnet-4.5

Response Format

Returns a single Model object with the same structure as objects in the list endpoint.