OpenRouter
OpenRouter is an API platform that provides unified access to multiple AI language models through a single interface. OpenRouter acts as a "router" or gateway that lets developers and applications access dozens of different AI models from various providers through one standardized API, rather than having to integrate with each provider separately.
APIs
OpenRouter
OpenRouter provides unified access to hundreds of AI models through a single API endpoint. It implements the OpenAI API specification for chat completions, allowing developers t...
OpenRouter Chat Completions API
The Chat Completions API is the primary endpoint for generating model responses. It supports text and image inputs, streaming via Server-Sent Events, tool and function calling, ...
OpenRouter Models API
The Models API allows developers to list and discover all available AI models and their properties, including pricing, context lengths, supported features, and provider informat...
OpenRouter Generation API
The Generation API allows querying for generation statistics and historical usage data, including token counts, cost calculations, cached token tracking, and reasoning token cou...
OpenRouter Keys Management API
The Keys Management API enables programmatic creation, rotation, and management of OpenRouter API keys. Common use cases include SaaS applications that automatically create uniq...