OpenRouter
Hundreds of AI models with one key: chat and pricing
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API key (sk-or-v1-…)SecretRequired
Where to find them
- At openrouter.ai/settings/keys create a key, with a name and, optionally, a spending limit.
- Copy the key: it is shown only once. Paid models use credits (openrouter.ai/settings/credits); free ones (“:free”) have daily limits.
Tools (1)
OpenRouter API request
OPENROUTER_SEND_REQUESTAuthenticated call to the OpenRouter API (https://openrouter.ai/api/v1). Any endpoint of the API is allowed. Examples: POST /chat/completions {"model": "provider/model", "messages": […]} (e.g. anthropic/…, openai/…, google/…), GET /models (catalog with prices and context), GET /key (spend and limit of the key), GET /generation?id=… (cost of a response).
Required scopes
No scopes required
Input
OpenRouter API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

