# OpenRouter

CreateWithAI Hub page: https://createwithaihub.com/inference/openrouter
Latest version of this file: https://createwithaihub.com/inference/openrouter.md

- Type: Tool · Category: Endpoints & Inference
- Publisher: OpenRouter
- Pricing: Free plan plus paid plans
- Runs on: Web, API (cloud)

One API endpoint and key for hundreds of models from many providers, with automatic provider fallback.

OpenRouter is a gateway that exposes hundreds of AI models from different providers through a single API that follows the OpenAI specification, plus an interface compatible with the Anthropic Messages API. It routes each request to a provider serving the model, falls back to another provider on errors, and lets you steer routing by price, throughput, latency or data policy. Usage is paid from prepaid credits, and some models can be used free within daily request limits.

Useful for: Trying or switching between models from different labs without separate accounts, or adding provider failover to an app that already uses the OpenAI SDK.

## Key features

- Single endpoint at https://openrouter.ai/api/v1 compatible with OpenAI SDKs; Anthropic Messages-compatible interface at https://openrouter.ai/api
- Chat Completions, Responses and Embeddings endpoints
- Automatic fallback to another provider when one fails
- Provider routing options: order, sort by price/throughput/latency, data-collection and zero-data-retention filters
- Image, PDF, audio and video inputs; image, video and speech generation; speech-to-text
- Free models with daily request limits

## Connection

- Model families: Llama, DeepSeek, Mistral, Gemma, Claude, GPT, Gemini
- Modality: Text, Image, Audio, Video, Embeddings
- API compatibility: OpenAI-compatible, Anthropic-compatible
- Free tier: Has a free tier
- Pricing structure: Per token
- Kind: Router / aggregator

## Before you start

- OpenRouter account and API key

## Limitations

- Free models are limited to 50 requests per day, or 1,000 per day after buying at least 10 credits
- A 5.5% fee ($0.80 minimum) applies when buying credits (5% for crypto payments)

## Official links

- Website: https://openrouter.ai
- Documentation: https://openrouter.ai/docs
- Source: https://openrouter.ai/docs/quickstart (Single endpoint for hundreds of models, base URL, OpenAI SDK drop-in)
- Source: https://openrouter.ai/docs/faq (Credit-based billing, per-token pricing, free-model request limits, automatic fallback, text/image/PDF inputs)
- Source: https://openrouter.ai/docs/guides/routing/provider-selection (Routing options and example models from Claude, GPT, Gemini, Llama, Mistral, DeepSeek, Gemma families)
- Source: https://openrouter.ai/docs/api/reference/overview (Schema normalized to OpenAI Chat API; Responses and Chat Completions endpoints)
- Source: https://openrouter.ai/docs/cookbook/coding-agents/claude-code-integration (Anthropic Messages-compatible interface, base URL https://openrouter.ai/api)
- Source: https://openrouter.ai/docs/api_reference/embeddings (Embeddings endpoint POST /api/v1/embeddings for text and images)
- Source: https://openrouter.ai/docs/guides/overview/multimodal/overview (Image, PDF, audio and video input; image, video and TTS output; speech-to-text)
