ما هي
OpenRouter is a unified, OpenAI-compatible API in front of models from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek and dozens more. You get automatic fallbacks, price/latency routing, usage analytics and a single bill — switching models is a one-line change.
- Apps that switch models often
- Fallbacks and reliability
- Comparing cost across providers
كيفية استخدام OpenRouter
- 01
Create a key; set base URL to openrouter.ai/api/v1 in any OpenAI SDK.
- 02
Pass the model id (e.g. anthropic/claude-sonnet) in each request.
- 03
Set provider preferences and fallbacks in the request or dashboard.
ماذا يفعل الناس بها
- A/B test three models in production with one integration.
- Route cheap tasks to small models automatically.
نصائح احترافية
- Use the :free and :nitro suffixes to pick free or fastest variants.
أسئلة شائعة
Does it add latency?
A small overhead, usually negligible compared with model generation time.



