OpenRouter

Model

One API for hundreds of models across many providers

Fiyat
Free tier, then paid
Erişim
API key

Hakkında

OpenRouter is one OpenAI-compatible API in front of hundreds of models from many providers. It is for developers who want to switch models or add fallbacks without new integrations. Token prices follow each model, plus a platform fee on credit purchases.

Neler yapabilirsin

  • Call models from OpenAI, Anthropic, Google and more with one API key
  • Route requests with automatic fallbacks when a provider fails
  • Use the OpenAI SDK with OpenRouter as a drop-in replacement

Başlarken

  1. Create an OpenRouter account and an API key
  2. Buy credits, or pick a model with the :free variant

Örnek kod

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{
    "model": "openai/gpt-6-sol",
    "messages": [{"role": "user", "content": "What is the meaning of life?"}]
  }'

Ayrıntılar

Barındırma
Hazır hizmet (bulut)
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
JavaScript/TypeScript, Python, Go
MCP sunucusu
Uzak sunucu
Entegrasyonlar
OpenAI, Anthropic, Gemini

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .