Skip to main content
Use this section when you are wiring an application directly to the YouRouter API. The primary model calling endpoint is OpenAI-compatible and uses the base URL https://api.yourouter.ai/v1.

Core Endpoint

Create Chat Completion

Send text or image-input model requests with model and messages, then read the assistant reply from choices[0].message.content.

Multimodal Guide

See image-input, provider-native multimodal, and video-generation examples.

Provider-Native Compatibility

Some integrations need provider-native request shapes. Use these pages only when your application already depends on a provider-specific API format.

Anthropic Messages

Call Claude through Anthropic’s Messages request format.

Google Generate Content

Call Gemini through Google’s generateContent request format.

Search Endpoint

Use this endpoint when you need web search results or a Google Programmable Search Engine response shape.

Custom Search

Search the web or a specific programmable search engine with GET /customsearch/v1.

Integration Setup

ItemValue
Base URLhttps://api.yourouter.ai/v1
AuthenticationAuthorization: Bearer <YOUR_YOUROUTER_API_KEY>
Content typeContent-Type: application/json
Default routingOmit vendor, or send vendor: auto
Provider pinningSend a vendor header such as openai, anthropic, or google
For a step-by-step setup, start with the API Quickstart.