Skip to main content

API Integration

Connect your application to YouRouter with a standard HTTPS API, bearer token authentication, and OpenAI-compatible model calls.

API Quickstart

Set your API key, send a test request, and verify the response shape.

Integration References

Quickstart

Complete the shortest path to a working API request.

Models

Choose model IDs and switch model families through the same API shape.

Chat Completions

Call chat models, stream responses, pass tools, and handle multimodal input.

Multimodal

Send image inputs, call native multimodal APIs, and create video tasks.

API Reference

Review endpoints, parameters, headers, and response formats.

Routing

Use automatic provider routing or pin requests with the vendor header.

Feature References

Request Forwarding

Learn how YouRouter forwards request bodies and custom parameters to upstream providers.

Zero Completion Insurance

Review the protection rules for failed requests and empty responses.

Service Availability & Model Consistency

Understand automatic routing, pinned providers, consistency checks, and compensation policy.

Data Tracing Specification

See how Trace IDs work and how to query Tencent Cloud APM.
Base URL: https://api.yourouter.ai/v1