Skip to Content
API referenceOpenAI CompatibleModels

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-5.5", "object": "model", "created": 1790553600, "owned_by": "bedrock", "canonical_slug": "claude-sonnet-5-5", "name": "Anthropic: Claude Sonnet 5.5", "description": "Claude Sonnet 5.5 is Anthropic's Sonnet-tier model, offering a balance of speed and intelligence for coding, reasoning, and agentic workloads. It supports text, image, and file inputs with text output, with a 1M-token context window and up to 128K output tokens, at a lower per-token price than Claude Opus 5.5.", "context_length": 1000000, "architecture": { "modality": "text+image+file->text", "input_modalities": [ "text", "image", "file" ], "output_modalities": [ "text" ], "tokenizer": "claude", "instruct_type": null }, "pricing": { "prompt": "0.000002", "completion": "0.00001", "input_cache_read": "0.0000002", "input_cache_write_5m": "0.0000025", "input_cache_write_1h": "0.000004", "web_search": "0.015" }, "top_provider": { "context_length": 1000000, "max_completion_tokens": 128000, "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, "is_deprecated": false, "supported_endpoints": [ "/v1/chat/completions", "/v1/responses" ], "aliases": [ "claude-sonnet-5-5", "claude-sonnet-5.5" ] } ] }

Response Fields

FieldTypeDescription
idstringModel identifier, e.g. "anthropic/claude-sonnet-5.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, qwen, 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-5.5

Request Example

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

Response Format

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

Last updated on