# Models API — Model Query Source: https://ofox.ai/docs/api/openai/models 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](https://ofox.ai/docs/develop/models#models-api-standard). ## List All Models ```http GET https://api.ofox.ai/v1/models ``` ### Request Examples **cURL** ```bash filename="Terminal" curl https://api.ofox.ai/v1/models ``` **Python** ```python filename="models.py" showLineNumbers import requests resp = requests.get("https://api.ofox.ai/v1/models") for model in resp.json()["data"]: print(model["id"]) ``` **TypeScript** ```typescript filename="models.ts" showLineNumbers const resp = await fetch('https://api.ofox.ai/v1/models') const { data } = await resp.json() for (const model of data) { console.log(model.id) } ``` ### Response Format ```json { "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 | Field | Type | Description | |-------|------|-------------| | `id` | string | Model identifier, e.g. `"anthropic/claude-sonnet-5.5"` | | `canonical_slug` | string | Permanent identifier, never changes | | `name` | string | Model display name | | `created` | number | Time added (Unix timestamp) | | `description` | string | Model capability description | | `context_length` | number | Maximum context window (tokens) | | `architecture` | object | Input/output modalities and tokenizer info | | `pricing` | object | Pricing (USD/token) | | `top_provider` | object | Provider config (context limit, max output, etc.) | | `supported_parameters` | string[] | Supported API parameters | ## Filter Models by Provider ```http GET https://api.ofox.ai/v1/models/{provider} ``` Returns only models from the specified provider. ### Path Parameters | Parameter | Type | Description | |-----------|------|-------------| | `provider` | string | Provider identifier, e.g. `anthropic`, `openai`, `google`, `qwen`, `volcengine` | ### Request Examples ```bash filename="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 ```http GET https://api.ofox.ai/v1/models/{provider}/{model_id} ``` ### Path Parameters | Parameter | Type | Description | |-----------|------|-------------| | `provider` | string | Provider identifier, e.g. `anthropic` | | `model_id` | string | Model name, e.g. `claude-sonnet-5.5` | ### Request Example ```bash filename="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.