OpenRouter integration (AI, Developer Tools). Imported from open-connector.
https://openrouter.ai/api/v1/chat/completions
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | required | The model ID to use. |
| messages | array | required | An ordered list of conversation messages. |
| n | integer | optional | The number of choices to generate. |
| stop | string | optional | Stop sequences for generation. |
| user | string | optional | The end user's unique identifier. |
| top_p | number | optional | Nucleus sampling parameter. |
| stream | boolean | optional | Whether to request a streaming response. Connector actions only support false o… |
| functions | array | optional | A list of JSON objects returned by OpenRouter. |
| function_call | string | optional | Legacy function calling strategy converted to tool_choice at execution time. |
| logit_bias | object | optional | Token bias map. |
| max_tokens | integer | optional | The maximum number of output tokens. |
| max_completion_tokens | integer | optional | New max output token field, taking precedence over max_tokens. |
| temperature | number | optional | Sampling temperature. |
| presence_penalty | number | optional | Presence penalty. |
| frequency_penalty | number | optional | Frequency penalty. |
| logprobs | boolean | optional | Whether to return token-level probabilities. |
| top_logprobs | integer | optional | The number of top logprobs to return. |
| tools | array | optional | A list of JSON objects returned by OpenRouter. |
| tool_choice | string | optional | Tool selection strategy. |
| response_format | object | optional | A JSON object returned by OpenRouter. |
| modalities | array | optional | List of output modalities to request. |
| models | array | optional | Candidate fallback model IDs. |
| metadata | object | optional | A JSON object returned by OpenRouter. |
| provider | object | optional | A JSON object returned by OpenRouter. |
| plugins | array | optional | A list of JSON objects returned by OpenRouter. |
| service_tier | string | optional | Requested service tier. |
| session_id | string | optional | Session ID used to associate requests. |
| parallel_tool_calls | boolean | optional | Whether to allow parallel tool calls. |
| stream_options | object | optional | A JSON object returned by OpenRouter. |
| reasoning | object | optional | A JSON object returned by OpenRouter. |
| httpReferer | string | optional | The application URL sent in the HTTP-Referer header for OpenRouter attribution … |
| xTitle | string | optional | The application display name sent in the X-Title header for OpenRouter console … |
/credits/coinbase
| Param | Type | Required | Description |
|---|---|---|---|
| amount | number | required | The USD amount to top up. |
| sender | string | required | The wallet address that initiated the payment. |
| chain_id | number | required | The chain ID used to initiate the payment. |
| httpReferer | string | optional | The application URL sent in the HTTP-Referer header for OpenRouter attribution … |
| xTitle | string | optional | The application display name sent in the X-Title header for OpenRouter console … |
/messages
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | required | The model ID to use. |
| max_tokens | integer | required | The maximum number of output tokens. |
| messages | array | required | An ordered list of Anthropic-format messages. |
| user | string | optional | The end user's unique identifier. |
| tools | array | optional | A list of JSON objects returned by OpenRouter. |
| top_k | integer | optional | Top-k sampling parameter. |
| top_p | number | optional | Nucleus sampling parameter. |
| models | array | optional | Candidate fallback model IDs. |
| stream | boolean | optional | Whether to request a streaming response. Connector actions only support false o… |
| system | string | optional | System prompt content. |
| plugins | array | optional | A list of JSON objects returned by OpenRouter. |
| metadata | object | optional | A JSON object returned by OpenRouter. |
| output_config | object | optional | A JSON object returned by OpenRouter. |
| provider | object | optional | A JSON object returned by OpenRouter. |
| service_tier | string | optional | Requested service tier. |
| session_id | string | optional | Session ID used to associate requests. |
| stop_sequences | array | optional | Stop sequences for generation. |
| temperature | number | optional | Sampling temperature. |
| thinking | object | optional | A JSON object returned by OpenRouter. |
| tool_choice | string | optional | Tool selection strategy. |
| httpReferer | string | optional | The application URL sent in the HTTP-Referer header for OpenRouter attribution … |
| xTitle | string | optional | The application display name sent in the X-Title header for OpenRouter console … |
/credits
/key
| Param | Type | Required | Description |
|---|---|---|---|
| httpReferer | string | optional | The application URL sent in the HTTP-Referer header for OpenRouter attribution … |
| xTitle | string | optional | The application display name sent in the X-Title header for OpenRouter console … |
/generation
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | The generation ID to query. |
/models/count
| Param | Type | Required | Description |
|---|---|---|---|
| outputModalities | string | optional | Filter statistics by output modality, such as text, image, audio, embeddings, o… |
| httpReferer | string | optional | The application URL sent in the HTTP-Referer header for OpenRouter attribution … |
| xTitle | string | optional | The application display name sent in the X-Title header for OpenRouter console … |
/models
| Param | Type | Required | Description |
|---|---|---|---|
| category | string | optional | Filter the model list by use case classification. |
| supportedParameters | string | optional | Filter the model list by supported parameter names. Multiple parameters can be … |
| outputModalities | string | optional | Filter the list of models by output modality, such as text, image, audio, embed… |
| useRss | boolean | optional | Whether to return RSS XML instead of JSON. |
| useRssChatLinks | boolean | optional | Whether to use the chat page link instead of the model details page link when r… |
/embeddings/models
| Param | Type | Required | Description |
|---|---|---|---|
| httpReferer | string | optional | The application URL sent in the HTTP-Referer header for OpenRouter attribution … |
| xTitle | string | optional | The application display name sent in the X-Title header for OpenRouter console … |
/models/{author}/{slug}/endpoints
| Param | Type | Required | Description |
|---|---|---|---|
| author | string | required | Model author or organization name. |
| slug | string | required | Model slug. |
/providers
/models/user
| Param | Type | Required | Description |
|---|---|---|---|
| httpReferer | string | optional | The application URL sent in the HTTP-Referer header for OpenRouter attribution … |
| xTitle | string | optional | The application display name sent in the X-Title header for OpenRouter console … |
/endpoints/zdr
| Param | Type | Required | Description |
|---|---|---|---|
| httpReferer | string | optional | The application URL sent in the HTTP-Referer header for OpenRouter attribution … |
| xTitle | string | optional | The application display name sent in the X-Title header for OpenRouter console … |