/openrouter-ai | Type: Application | PCID required: Yes
Tools
| Tool | Description |
|---|---|
openrouter_ai_create_audio_speech | Create speech |
openrouter_ai_create_audio_transcriptions | Create transcription |
openrouter_ai_create_embeddings | Submit an embedding request |
openrouter_ai_create_messages | Create a message |
openrouter_ai_create_rerank | Submit a rerank request |
openrouter_ai_create_responses | Create a response |
openrouter_ai_create_videos | Submit a video generation request |
openrouter_ai_get_generation | Get request & usage metadata for a generation |
openrouter_ai_get_models | List all models and their properties |
openrouter_ai_get_videos | Poll video generation status |
openrouter_ai_list_embeddings_models | List all embeddings models |
openrouter_ai_list_endpoints | List all endpoints for a model |
openrouter_ai_list_endpoints_zdr | Preview the impact of ZDR on the available endpoints |
openrouter_ai_list_generation_content | Get stored prompt and completion content for a generation |
openrouter_ai_list_models_count | Get total count of available models |
openrouter_ai_list_models_user | List models filtered by user provider preferences, privacy settings, and guardrails |
openrouter_ai_list_private_models | Get a private model |
openrouter_ai_list_private_models_endpoints | List endpoints for a private model |
openrouter_ai_list_providers | List all providers |
openrouter_ai_list_videos_content | Download generated video content |
openrouter_ai_list_videos_models | List all video generation models |
openrouter_ai_send_chat_completion_request | Create a chat completion |
openrouter_ai_create_audio_speech
Create speech Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
input | string | Yes | — | Text to synthesize |
model | string | Yes | — | TTS model identifier |
provider | object | No | — | Provider-specific passthrough configuration |
response_format | string | No | — | Audio output format |
speed | number | No | — | Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers. |
voice | string | Yes | — | Voice identifier (provider-specific). |
openrouter_ai_create_audio_transcriptions
Create transcription Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
input_audio | object | Yes | — | Base64-encoded audio to transcribe |
language | string | No | — | ISO-639-1 language code (e.g., “en”, “ja”). Auto-detected if omitted. |
model | string | Yes | — | STT model identifier |
provider | object | No | — | Provider-specific passthrough configuration |
temperature | number | No | — | Sampling temperature for transcription |
openrouter_ai_create_embeddings
Submit an embedding request Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
dimensions | integer | No | — | The number of dimensions for the output embeddings |
encoding_format | string | No | — | The format of the output embeddings |
input | object | Yes | — | Text, token, or multimodal input(s) to embed |
input_type | string | No | — | The type of input (e.g. search_query, search_document) |
model | string | Yes | — | The model to use for embeddings |
provider | object | No | — | The provider value |
user | string | No | — | A unique identifier for the end-user |
openrouter_ai_create_messages
Create a message Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
cache_control | object | No | — | Cache Control |
context_management | object | No | — | Context Management |
max_tokens | integer | No | — | Max Tokens |
messages | object[] | Yes | — | The messages value |
metadata | object | No | — | The metadata value |
model | string | Yes | — | The model value |
models | string[] | No | — | The models value |
output_config | object | No | — | Configuration for controlling output behavior. Supports the effort parameter and structured output format. |
plugins | any[] | No | — | Plugins you want to enable for this request, including their settings. |
provider | object | No | — | When multiple model providers are available, optionally indicate your routing preference. |
route | string | No | — | DEPRECATED Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: “fallback” (maps to “model”), “sort” (maps to “none”). |
service_tier | string | No | — | Service Tier |
session_id | string | No | — | A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. |
speed | object | No | — | The speed value |
stop_sequences | string[] | No | — | Stop Sequences |
stream | boolean | No | — | The stream value |
system | object | No | — | The system value |
temperature | number | No | — | The temperature value |
thinking | object | No | — | The thinking value |
tool_choice | object | No | — | Tool Choice |
tools | any[] | No | — | The tools value |
top_k | integer | No | — | Top K |
top_p | number | No | — | Top P |
trace | object | No | — | Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations. |
user | string | No | — | A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters. |
openrouter_ai_create_rerank
Submit a rerank request Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
documents | string[] | Yes | — | The list of documents to rerank |
model | string | Yes | — | The rerank model to use |
provider | object | No | — | The provider value |
query | string | Yes | — | The search query to rerank documents against |
top_n | integer | No | — | Number of most relevant documents to return |
openrouter_ai_create_responses
Create a response Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
background | boolean | No | — | The background value |
frequency_penalty | number | No | — | Frequency Penalty |
image_config | object | No | — | Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. |
include | string[] | No | — | Related resources to include |
input | object | Yes | — | Input for a response request - can be a string or array of items |
instructions | string | No | — | The instructions value |
max_output_tokens | integer | No | — | Max Output Tokens |
max_tool_calls | integer | No | — | Max Tool Calls |
metadata | object | No | — | Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed. |
modalities | string[] | No | — | Output modalities for the response. Supported values are “text” and “image”. |
model | string | Yes | — | The model value |
models | string[] | No | — | The models value |
parallel_tool_calls | boolean | No | — | Parallel Tool Calls |
plugins | any[] | No | — | Plugins you want to enable for this request, including their settings. |
presence_penalty | number | No | — | Presence Penalty |
previous_response_id | string | No | — | Previous Response Id |
prompt | object | No | — | The prompt value |
prompt_cache_key | string | No | — | Prompt Cache Key |
provider | object | No | — | When multiple model providers are available, optionally indicate your routing preference. |
reasoning | object | No | — | Configuration for reasoning mode in the response |
route | string | No | — | DEPRECATED Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: “fallback” (maps to “model”), “sort” (maps to “none”). |
safety_identifier | string | No | — | Safety Identifier |
service_tier | string | No | — | Service Tier |
session_id | string | No | — | A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. |
store | boolean | No | — | The store value |
stream | boolean | No | — | The stream value |
temperature | number | No | — | The temperature value |
text | object | No | — | Text output configuration including format and verbosity |
tool_choice | object | No | — | Tool Choice |
tools | any[] | No | — | The tools value |
top_k | integer | No | — | Top K |
top_logprobs | integer | No | — | Top Logprobs |
top_p | number | No | — | Top P |
trace | object | No | — | Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations. |
truncation | string | No | — | The truncation value |
user | string | No | — | A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters. |
openrouter_ai_create_videos
Submit a video generation request Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
aspect_ratio | string | No | — | Aspect ratio of the generated video |
callback_url | string | No | — | URL to receive a webhook notification when the video generation job completes. Overrides the workspace-level default callback URL if set. Must be HTTPS. |
duration | integer | No | — | Duration of the generated video in seconds |
frame_images | any[] | No | — | Images to use as the first and/or last frame of the generated video. Each image must specify a frame_type of first_frame or last_frame. |
generate_audio | boolean | No | — | Whether to generate audio alongside the video. Defaults to the endpoint’s generate_audio capability flag, false if not set. |
input_references | object[] | No | — | Reference images to guide video generation |
model | string | Yes | — | The model value |
prompt | string | Yes | — | The prompt value |
provider | object | No | — | Provider-specific passthrough configuration |
resolution | string | No | — | Resolution of the generated video |
seed | integer | No | — | If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers. |
size | string | No | — | Exact pixel dimensions of the generated video in “WIDTHxHEIGHT” format (e.g. “1280x720”). Interchangeable with resolution + aspect_ratio. |
openrouter_ai_get_generation
Get request & usage metadata for a generation Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The generation ID |
openrouter_ai_get_models
List all models and their properties Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
category | string | No | — | Filter models by use case category |
supported_parameters | string | No | — | Filter models by supported parameter (comma-separated) |
output_modalities | string | No | — | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, audio, embeddings) or “all” to include all models. Defaults to “text”. |
openrouter_ai_get_videos
Poll video generation status Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
jobId | string | Yes | — | Job Id |
openrouter_ai_list_embeddings_models
List all embeddings models Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
openrouter_ai_list_endpoints
List all endpoints for a model Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
author | string | Yes | — | The author/organization of the model |
slug | string | Yes | — | The model slug |
openrouter_ai_list_endpoints_zdr
Preview the impact of ZDR on the available endpoints Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
openrouter_ai_list_generation_content
Get stored prompt and completion content for a generation Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
id | string | Yes | — | The generation ID |
openrouter_ai_list_models_count
Get total count of available models Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
output_modalities | string | No | — | Filter models by output modality. Accepts a comma-separated list of modalities (text, image, audio, embeddings) or “all” to include all models. Defaults to “text”. |
openrouter_ai_list_models_user
List models filtered by user provider preferences, privacy settings, and guardrails Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
openrouter_ai_list_private_models
Get a private model Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
author | string | Yes | — | The author/organization of the model |
slug | string | Yes | — | The model slug |
openrouter_ai_list_private_models_endpoints
List endpoints for a private model Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
author | string | Yes | — | The author/organization of the model |
slug | string | Yes | — | The model slug |
openrouter_ai_list_providers
List all providers Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
openrouter_ai_list_videos_content
Download generated video content Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
jobId | string | Yes | — | Job Id |
index | integer | No | — | The index value |
openrouter_ai_list_videos_models
List all video generation models Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
openrouter_ai_send_chat_completion_request
Create a chat completion Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
HTTP-Referer | string | No | — | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. |
X-OpenRouter-Title | string | No | — | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. |
X-OpenRouter-Categories | string | No | — | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. |
cache_control | object | No | — | Cache Control |
debug | object | No | — | Debug options for inspecting request transformations (streaming only) |
frequency_penalty | number | No | — | Frequency penalty (-2.0 to 2.0) |
image_config | object | No | — | Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. |
logit_bias | object | No | — | Token logit bias adjustments |
logprobs | boolean | No | — | Return log probabilities |
max_completion_tokens | integer | No | — | Maximum tokens in completion |
max_tokens | integer | No | — | Maximum tokens (deprecated, use max_completion_tokens). Note: some providers enforce a minimum of 16. |
messages | any[] | Yes | — | List of messages for the conversation |
metadata | object | No | — | Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values) |
modalities | string[] | No | — | Output modalities for the response. Supported values are “text”, “image”, and “audio”. |
model | string | Yes | — | Model to use for completion |
models | any[] | No | — | Models to use for completion |
parallel_tool_calls | boolean | No | — | Whether to enable parallel function calling during tool use. When true, the model may generate multiple tool calls in a single response. |
plugins | any[] | No | — | Plugins you want to enable for this request, including their settings. |
presence_penalty | number | No | — | Presence penalty (-2.0 to 2.0) |
provider | object | No | — | When multiple model providers are available, optionally indicate your routing preference. |
reasoning | object | No | — | Configuration options for reasoning models |
response_format | object | No | — | Response format configuration |
route | string | No | — | DEPRECATED Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: “fallback” (maps to “model”), “sort” (maps to “none”). |
seed | integer | No | — | Random seed for deterministic outputs |
service_tier | string | No | — | The service tier to use for processing this request. |
session_id | string | No | — | A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. |
stop | object | No | — | Stop sequences (up to 4) |
stream | boolean | No | — | Enable streaming response |
stream_options | object | No | — | Streaming configuration options |
temperature | number | No | — | Sampling temperature (0-2) |
tool_choice | object | No | — | Tool choice configuration |
tools | any[] | No | — | Available tools for function calling |
top_logprobs | integer | No | — | Number of top log probabilities to return (0-20) |
top_p | number | No | — | Nucleus sampling parameter (0-1) |
trace | object | No | — | Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations. |
user | string | No | — | Unique user identifier |

