← Tools Reference

OpenRouter

OpenRouter integration (AI, Developer Tools). Imported from open-connector.

API key13 toolshttps://openrouter.ai/api/v1
POST
openrouter_create_chat_completion
Create an OpenRouter chat completion through the OpenAI-compatible `/chat/completions` endpoint.

/chat/completions

32 parameters
ParamTypeRequiredDescription
modelstringrequiredThe model ID to use.
messagesarrayrequiredAn ordered list of conversation messages.
nintegeroptionalThe number of choices to generate.
stopstringoptionalStop sequences for generation.
userstringoptionalThe end user's unique identifier.
top_pnumberoptionalNucleus sampling parameter.
streambooleanoptionalWhether to request a streaming response. Connector actions only support false o…
functionsarrayoptionalA list of JSON objects returned by OpenRouter.
function_callstringoptionalLegacy function calling strategy converted to tool_choice at execution time.
logit_biasobjectoptionalToken bias map.
max_tokensintegeroptionalThe maximum number of output tokens.
max_completion_tokensintegeroptionalNew max output token field, taking precedence over max_tokens.
temperaturenumberoptionalSampling temperature.
presence_penaltynumberoptionalPresence penalty.
frequency_penaltynumberoptionalFrequency penalty.
logprobsbooleanoptionalWhether to return token-level probabilities.
top_logprobsintegeroptionalThe number of top logprobs to return.
toolsarrayoptionalA list of JSON objects returned by OpenRouter.
tool_choicestringoptionalTool selection strategy.
response_formatobjectoptionalA JSON object returned by OpenRouter.
modalitiesarrayoptionalList of output modalities to request.
modelsarrayoptionalCandidate fallback model IDs.
metadataobjectoptionalA JSON object returned by OpenRouter.
providerobjectoptionalA JSON object returned by OpenRouter.
pluginsarrayoptionalA list of JSON objects returned by OpenRouter.
service_tierstringoptionalRequested service tier.
session_idstringoptionalSession ID used to associate requests.
parallel_tool_callsbooleanoptionalWhether to allow parallel tool calls.
stream_optionsobjectoptionalA JSON object returned by OpenRouter.
reasoningobjectoptionalA JSON object returned by OpenRouter.
httpRefererstringoptionalThe application URL sent in the HTTP-Referer header for OpenRouter attribution …
xTitlestringoptionalThe application display name sent in the X-Title header for OpenRouter console …
POST
openrouter_create_coinbase_charge
Call OpenRouter's deprecated Coinbase charge endpoint for credits purchases. The upstream endpoint is currently deprecated and may return 410 Gone.

/credits/coinbase

5 parameters
ParamTypeRequiredDescription
amountnumberrequiredThe USD amount to top up.
senderstringrequiredThe wallet address that initiated the payment.
chain_idnumberrequiredThe chain ID used to initiate the payment.
httpRefererstringoptionalThe application URL sent in the HTTP-Referer header for OpenRouter attribution …
xTitlestringoptionalThe application display name sent in the X-Title header for OpenRouter console …
POST
openrouter_create_message
Create an OpenRouter Anthropic-format message through the `/messages` endpoint.

/messages

22 parameters
ParamTypeRequiredDescription
modelstringrequiredThe model ID to use.
max_tokensintegerrequiredThe maximum number of output tokens.
messagesarrayrequiredAn ordered list of Anthropic-format messages.
userstringoptionalThe end user's unique identifier.
toolsarrayoptionalA list of JSON objects returned by OpenRouter.
top_kintegeroptionalTop-k sampling parameter.
top_pnumberoptionalNucleus sampling parameter.
modelsarrayoptionalCandidate fallback model IDs.
streambooleanoptionalWhether to request a streaming response. Connector actions only support false o…
systemstringoptionalSystem prompt content.
pluginsarrayoptionalA list of JSON objects returned by OpenRouter.
metadataobjectoptionalA JSON object returned by OpenRouter.
output_configobjectoptionalA JSON object returned by OpenRouter.
providerobjectoptionalA JSON object returned by OpenRouter.
service_tierstringoptionalRequested service tier.
session_idstringoptionalSession ID used to associate requests.
stop_sequencesarrayoptionalStop sequences for generation.
temperaturenumberoptionalSampling temperature.
thinkingobjectoptionalA JSON object returned by OpenRouter.
tool_choicestringoptionalTool selection strategy.
httpRefererstringoptionalThe application URL sent in the HTTP-Referer header for OpenRouter attribution …
xTitlestringoptionalThe application display name sent in the X-Title header for OpenRouter console …
GET
openrouter_get_credits
Get the authenticated OpenRouter credit balance summary.

/credits

GET
openrouter_get_current_key
Get metadata for the currently authenticated OpenRouter API key.

/key

2 parameters
ParamTypeRequiredDescription
httpRefererstringoptionalThe application URL sent in the HTTP-Referer header for OpenRouter attribution …
xTitlestringoptionalThe application display name sent in the X-Title header for OpenRouter console …
GET
openrouter_get_generation
Get request and usage metadata for a specific OpenRouter generation.

/generation

1 parameter
ParamTypeRequiredDescription
idstringrequiredThe generation ID to query.
GET
openrouter_get_models_count
Get the total number of OpenRouter models, optionally filtered by output modalities.

/models/count

3 parameters
ParamTypeRequiredDescription
outputModalitiesstringoptionalFilter statistics by output modality, such as text, image, audio, embeddings, o…
httpRefererstringoptionalThe application URL sent in the HTTP-Referer header for OpenRouter attribution …
xTitlestringoptionalThe application display name sent in the X-Title header for OpenRouter console …
GET
openrouter_list_available_models
List the available OpenRouter models, or return the RSS feed when requested.

/models

5 parameters
ParamTypeRequiredDescription
categorystringoptionalFilter the model list by use case classification.
supportedParametersstringoptionalFilter the model list by supported parameter names. Multiple parameters can be …
outputModalitiesstringoptionalFilter the list of models by output modality, such as text, image, audio, embed…
useRssbooleanoptionalWhether to return RSS XML instead of JSON.
useRssChatLinksbooleanoptionalWhether to use the chat page link instead of the model details page link when r…
GET
openrouter_list_embedding_models
List the embedding models available through OpenRouter.

/embeddings/models

2 parameters
ParamTypeRequiredDescription
httpRefererstringoptionalThe application URL sent in the HTTP-Referer header for OpenRouter attribution …
xTitlestringoptionalThe application display name sent in the X-Title header for OpenRouter console …
GET
openrouter_list_model_endpoints
List the currently available endpoints for a specific OpenRouter model.

/models/{author}/{slug}/endpoints

2 parameters
ParamTypeRequiredDescription
authorstringrequiredModel author or organization name.
slugstringrequiredModel slug.
GET
openrouter_list_providers
List the model providers currently available through OpenRouter.

/providers

GET
openrouter_list_user_models
List models filtered by the current user's OpenRouter routing preferences, privacy settings, and guardrails.

/models/user

2 parameters
ParamTypeRequiredDescription
httpRefererstringoptionalThe application URL sent in the HTTP-Referer header for OpenRouter attribution …
xTitlestringoptionalThe application display name sent in the X-Title header for OpenRouter console …
GET
openrouter_list_zdr_endpoints
Preview the OpenRouter endpoints that remain available under Zero Data Retention.

/endpoints/zdr

2 parameters
ParamTypeRequiredDescription
httpRefererstringoptionalThe application URL sent in the HTTP-Referer header for OpenRouter attribution …
xTitlestringoptionalThe application display name sent in the X-Title header for OpenRouter console …