model field to choose which model should answer your request. YouRouter supports many model families behind one OpenAI-compatible API, so switching models usually means changing only the model value.
For the latest enabled model IDs in your account, check the YouRouter Dashboard.
Basic Model Call
All Chat Completions requests use the same API shape:model value.
Model Field
| Field | Required | Description |
|---|---|---|
model | Yes | The model ID to call, such as gpt-4o, claude-sonnet-4-20250514, or gemini-2.5-flash. |
messages | Yes | The conversation messages for chat models. |
stream | No | Set to true to receive incremental response chunks. |
Model API Capabilities
| Capability | API path | Where to start |
|---|---|---|
| Text chat | /v1/chat/completions | Chat Completions |
| Image input / vision | /v1/chat/completions | Multimodal |
| Text embeddings | /v1/embeddings | Embeddings |
| Gemini native multimodal | /v1/projects/...:generateContent | Google Generate Content |
| Claude native messages | /v1/messages | Anthropic Messages |
| Video generation tasks | /api/v3/contents/generations/tasks | Ark Text-to-Video |
Supported Model Families
YouRouter is designed for broad model access. Use one API integration to call models across major providers and model families.| Family | Example model IDs |
|---|---|
| OpenAI GPT | gpt-4o, gpt-4o-mini-2024-07-18, gpt-4.1-2025-04-14 |
| OpenAI reasoning | o3-2025-04-16, o4-mini-2025-04-16, o1-2024-12-17 |
| Anthropic Claude | claude-sonnet-4-20250514, claude-opus-4-20250514, claude-3-7-sonnet-20250219 |
| Google Gemini | gemini-2.5-pro, gemini-2.5-flash |
| DeepSeek | deepseek-r1-250528, deepseek-v3-250324 |
| xAI Grok | grok-3, grok-3-mini, grok-3-fast |
| Volcengine Doubao | doubao-seed-1-6-250615, doubao-seed-1-6-thinking-250615, doubao-1-5-pro-32k-250115 |
| Moonshot Kimi | kimi-k2-250711 |
Switch Models in Code
Use the same client and change onlymodel.
- Python
- Node.js
Route to a Provider
By default, YouRouter automatically routes the request. If you need a specific upstream provider, send thevendor header.
vendor values include:
| Provider | vendor value |
|---|---|
| Automatic routing | auto |
| OpenAI | openai |
| Azure OpenAI | azure |
| Anthropic | anthropic |
google | |
| AWS Bedrock | aws |
| DeepSeek | deepseek |
| Mistral AI | mistral |
| Volcengine | volcengine |
| xAI | x |
Recommended Integration Pattern
Keep these values configurable:| Setting | Example |
|---|---|
| API base URL | https://api.yourouter.ai/v1 |
| API key | YOUROUTER_API_KEY |
| Default model | gpt-4o |
| Fallback model | gemini-2.5-flash |
| Optional provider | auto |
Related Guides
API Quickstart
Make your first model API request.
Chat Completions
Use chat, streaming, tools, and multimodal input.
Multimodal
Send image inputs and call provider-native multimodal APIs.
Router Guide
Choose automatic routing or provider pinning.
API Reference
Review endpoint details and request formats.