OpenRouter
The unified interface for LLMs. Find the best models & prices for your prompts
Authentication
| Method | Kind | Status | Details |
|---|---|---|---|
| API Key | api_key | available | — |
Call a tool
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "OPENROUTER_BULK_ADD_WORKSPACE_MEMBERS", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("OPENROUTER_BULK_ADD_WORKSPACE_MEMBERS", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute OPENROUTER_BULK_ADD_WORKSPACE_MEMBERS --data '{ }'Tool catalog
Available tools
94 callable operations
Bulk add members to a workspaceOPENROUTER_BULK_ADD_WORKSPACE_MEMBERSAdd multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Bulk assign keys to a guardrailOPENROUTER_BULK_ASSIGN_KEYS_TO_GUARDRAILAssign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Bulk assign members to a guardrailOPENROUTER_BULK_ASSIGN_MEMBERS_TO_GUARDRAILAssign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Bulk remove members from a workspaceOPENROUTER_BULK_REMOVE_WORKSPACE_MEMBERSRemove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Bulk unassign keys from a guardrailOPENROUTER_BULK_UNASSIGN_KEYS_FROM_GUARDRAILUnassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Bulk unassign members from a guardrailOPENROUTER_BULK_UNASSIGN_MEMBERS_FROM_GUARDRAILUnassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Create speechOPENROUTER_CREATE_AUDIO_SPEECHSynthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).Connection
Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).
Authentication
Connected account requiredTags
Create transcriptionOPENROUTER_CREATE_AUDIO_TRANSCRIPTIONSTranscribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text.Connection
Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text.
Authentication
Connected account requiredTags
Create a BYOK provider credentialOPENROUTER_CREATE_BYOKKEYCreate a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Deprecated Coinbase Commerce charge endpointOPENROUTER_CREATE_COINBASE_CHARGEDeprecated. The Coinbase APIs used by this endpoint have been deprecated, so Coinbase Commerce charges have been removed. Use the web credits purchase flow instead.Connection
Deprecated. The Coinbase APIs used by this endpoint have been deprecated, so Coinbase Commerce charges have been removed. Use the web credits purchase flow instead.
Authentication
Connected account requiredTags
Submit an embedding requestOPENROUTER_CREATE_EMBEDDINGSSubmits an embedding request to the embeddings routerConnection
Submits an embedding request to the embeddings router
Authentication
Connected account requiredTags
Create a guardrailOPENROUTER_CREATE_GUARDRAILCreate a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Create a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Generate an imageOPENROUTER_CREATE_IMAGESGenerates an image from a text prompt via the image generation routerConnection
Generates an image from a text prompt via the image generation router
Authentication
Connected account requiredTags
Create a new API keyOPENROUTER_CREATE_KEYSCreate a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Create a messageOPENROUTER_CREATE_MESSAGESCreates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.Connection
Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.
Authentication
Connected account requiredTags
Create an observability destinationOPENROUTER_CREATE_OBSERVABILITY_DESTINATIONCreate a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Create a preset from a chat-completions request bodyOPENROUTER_CREATE_PRESETS_CHAT_COMPLETIONSCreates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.Connection
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
Authentication
Connected account requiredTags
Create a preset from a messages request bodyOPENROUTER_CREATE_PRESETS_MESSAGESCreates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.Connection
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
Authentication
Connected account requiredTags
Create a preset from a responses request bodyOPENROUTER_CREATE_PRESETS_RESPONSESCreates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.Connection
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
Authentication
Connected account requiredTags
Submit a rerank requestOPENROUTER_CREATE_RERANKSubmits a rerank request to the rerank routerConnection
Submits a rerank request to the rerank router
Authentication
Connected account requiredTags
Create a responseOPENROUTER_CREATE_RESPONSESCreates a streaming or non-streaming response using OpenResponses API formatConnection
Creates a streaming or non-streaming response using OpenResponses API format
Authentication
Connected account requiredTags
Create a SCIM group mappingOPENROUTER_CREATE_SCIM_GROUP_MAPPINGCreate a SCIM group-to-workspace role mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Create a SCIM group-to-workspace role mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Submit a video generation requestOPENROUTER_CREATE_VIDEOSSubmits a video generation request and returns a polling URL to check statusConnection
Submits a video generation request and returns a polling URL to check status
Authentication
Connected account requiredTags
Create a workspaceOPENROUTER_CREATE_WORKSPACECreate a new workspace for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Create a new workspace for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Delete a BYOK provider credentialOPENROUTER_DELETE_BYOKKEYDelete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Delete a fileOPENROUTER_DELETE_FILEDeletes a file owned by the requesting workspace. Deletion is irreversible.Connection
Deletes a file owned by the requesting workspace. Deletion is irreversible.
Authentication
Connected account requiredTags
Delete a guardrailOPENROUTER_DELETE_GUARDRAILDelete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Delete an API keyOPENROUTER_DELETE_KEYSDelete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Delete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Delete an observability destinationOPENROUTER_DELETE_OBSERVABILITY_DESTINATIONDelete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Delete a SCIM group mappingOPENROUTER_DELETE_SCIM_GROUP_MAPPINGDelete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Delete a workspaceOPENROUTER_DELETE_WORKSPACEDelete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is currently limited to internal OpenRouter administrators while the capability rolls out; other callers receive a 403. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is currently limited to internal OpenRouter administrators while the capability rolls out; other callers receive a 403. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Delete a workspace budgetOPENROUTER_DELETE_WORKSPACE_BUDGETRemove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Remove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Download file contentOPENROUTER_DOWNLOAD_FILE_CONTENTDownloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.Connection
Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.
Authentication
Connected account requiredTags
Get available analytics metrics and dimensionsOPENROUTER_GET_ANALYTICS_METAReturns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Top apps by token usageOPENROUTER_GET_APP_RANKINGSReturns the top public apps on OpenRouter ranked by token usage inside the requested date window, matching the public apps marketplace on openrouter.ai/apps. Token totals are `prompt_tokens + completion_tokens`; hidden and private apps are excluded and traffic from related app aliases is merged into the canonical visible app. `sort=popular` (default) ranks by total token volume inside the window. `sort=trending` ranks by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted, so `trending` may return fewer than `limit` rows. Filter with `category` (marketplace category group, e.g. `coding`) or `subcategory` (e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` — `rank` stays absolute, so the first row of `offset=50` is `rank: 51`. Authenticate with any valid OpenRouter API key (same key used for inference). Rate-limited to 30 requests/minute per key and 500 requests/day per account. When republishing or quoting this dataset, OpenRouter must be cited as: "Source: OpenRouter (openrouter.ai/apps), as of {as_of}." Token counts come from each upstream provider's own tokenizer, so a token attributed to one app is not directly comparable to a token attributed to another app whose traffic flows through a different provider.Connection
Returns the top public apps on OpenRouter ranked by token usage inside the requested date window, matching the public apps marketplace on openrouter.ai/apps. Token totals are `prompt_tokens + completion_tokens`; hidden and private apps are excluded and traffic from related app aliases is merged into the canonical visible app. `sort=popular` (default) ranks by total token volume inside the window. `sort=trending` ranks by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted, so `trending` may return fewer than `limit` rows. Filter with `category` (marketplace category group, e.g. `coding`) or `subcategory` (e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` — `rank` stays absolute, so the first row of `offset=50` is `rank: 51`. Authenticate with any valid OpenRouter API key (same key used for inference). Rate-limited to 30 requests/minute per key and 500 requests/day per account. When republishing or quoting this dataset, OpenRouter must be cited as: "Source: OpenRouter (openrouter.ai/apps), as of {as_of}." Token counts come from each upstream provider's own tokenizer, so a token attributed to one app is not directly comparable to a token attributed to another app whose traffic flows through a different provider.
Authentication
Connected account requiredTags
List BenchmarksOPENROUTER_GET_BENCHMARKSUnified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.Connection
Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
Authentication
Connected account requiredTags
Get a BYOK provider credentialOPENROUTER_GET_BYOKKEYGet a single bring-your-own-key (BYOK) provider credential by its `id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Get a single bring-your-own-key (BYOK) provider credential by its `id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Get remaining creditsOPENROUTER_GET_CREDITSGet total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Get total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Get current API keyOPENROUTER_GET_CURRENT_KEYGet information on the API key associated with the current authentication sessionConnection
Get information on the API key associated with the current authentication session
Authentication
Connected account requiredTags
Get file metadataOPENROUTER_GET_FILE_METADATARetrieves metadata for a single file owned by the requesting workspace.Connection
Retrieves metadata for a single file owned by the requesting workspace.
Authentication
Connected account requiredTags
Get request & usage metadata for a generationOPENROUTER_GET_GENERATIONGet request & usage metadata for a generationConnection
Get request & usage metadata for a generation
Authentication
Connected account requiredTags
Get a guardrailOPENROUTER_GET_GUARDRAILGet a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Get a single API keyOPENROUTER_GET_KEYGet a single API key by hash. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Get a single API key by hash. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Get a model by its slugOPENROUTER_GET_MODELReturns full details for a single model identified by its author and slug (e.g. openai/gpt-4). Supports variant suffixes (e.g. openai/gpt-4:free) and resolves known slug aliases.Connection
Returns full details for a single model identified by its author and slug (e.g. openai/gpt-4). Supports variant suffixes (e.g. openai/gpt-4:free) and resolves known slug aliases.
Authentication
Connected account requiredTags
List all models and their propertiesOPENROUTER_GET_MODELSList all models and their propertiesConnection
List all models and their properties
Authentication
Connected account requiredTags
Get an observability destinationOPENROUTER_GET_OBSERVABILITY_DESTINATIONFetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Get a presetOPENROUTER_GET_PRESETRetrieves a preset by its slug with its currently designated version inline.Connection
Retrieves a preset by its slug with its currently designated version inline.
Authentication
Connected account requiredTags
Get a specific version of a presetOPENROUTER_GET_PRESET_VERSIONRetrieves a specific version of a preset by its slug and version number.Connection
Retrieves a specific version of a preset by its slug and version number.
Authentication
Connected account requiredTags
Daily token totals for top 50 modelsOPENROUTER_GET_RANKINGS_DAILYReturns the top 50 public models per day by total token usage on OpenRouter, plus a single aggregated `other` row per day that sums every model outside that top 50. Token totals are `prompt_tokens + completion_tokens`, matching the public rankings chart on openrouter.ai/rankings. Each row is a distinct `(date, model_permaslug)` pair. The `other` row uses the reserved permaslug `other` and is always returned last within its date, so callers can compute `top-50 traffic / total daily traffic` without a second request. Optional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time grain. `modality` and `context_bucket` narrow the exact dataset by output/input modality (or tool-calling activity) and request context length. `category` and `language_type` instead read a sampled, upsampled dataset whose `total_tokens` are weekly-grain estimates — they cannot be combined with each other or with the exact filters, and reject `period=day` with a 400. Authenticate with any valid OpenRouter API key (same key used for inference). Rate-limited to 30 requests/minute per key and 500 requests/day per account. When republishing or quoting this dataset, OpenRouter must be cited as: "Source: OpenRouter (openrouter.ai/rankings), as of {as_of}." Token counts come from each upstream provider's own tokenizer (Anthropic counts are as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so a token in one row is not directly comparable to a token in another row from a different provider.Connection
Returns the top 50 public models per day by total token usage on OpenRouter, plus a single aggregated `other` row per day that sums every model outside that top 50. Token totals are `prompt_tokens + completion_tokens`, matching the public rankings chart on openrouter.ai/rankings. Each row is a distinct `(date, model_permaslug)` pair. The `other` row uses the reserved permaslug `other` and is always returned last within its date, so callers can compute `top-50 traffic / total daily traffic` without a second request. Optional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time grain. `modality` and `context_bucket` narrow the exact dataset by output/input modality (or tool-calling activity) and request context length. `category` and `language_type` instead read a sampled, upsampled dataset whose `total_tokens` are weekly-grain estimates — they cannot be combined with each other or with the exact filters, and reject `period=day` with a 400. Authenticate with any valid OpenRouter API key (same key used for inference). Rate-limited to 30 requests/minute per key and 500 requests/day per account. When republishing or quoting this dataset, OpenRouter must be cited as: "Source: OpenRouter (openrouter.ai/rankings), as of {as_of}." Token counts come from each upstream provider's own tokenizer (Anthropic counts are as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so a token in one row is not directly comparable to a token in another row from a different provider.
Authentication
Connected account requiredTags
Get a SCIM group mappingOPENROUTER_GET_SCIM_GROUP_MAPPINGGet a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Get a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Cost per session by harness and modelOPENROUTER_GET_SESSION_COSTReturns weekly refreshed, aggregated cost-per-session cells for the published harnesses. Sessions are never pooled across apps. Medians are of per-session USD spend, and privacy-preserving aggregation never exposes clerk_user_id values or per-session rows. Filter by `app_slug`, `model`, or `turn_range`. Filtering by `model` alone works across apps for harness-vs-harness comparison at a fixed model. Results refresh weekly and include the source snapshot window in `meta`.Connection
Returns weekly refreshed, aggregated cost-per-session cells for the published harnesses. Sessions are never pooled across apps. Medians are of per-session USD spend, and privacy-preserving aggregation never exposes clerk_user_id values or per-session rows. Filter by `app_slug`, `model`, or `turn_range`. Filtering by `model` alone works across apps for harness-vs-harness comparison at a fixed model. Results refresh weekly and include the source snapshot window in `meta`.
Authentication
Connected account requiredTags
Task classification market shareOPENROUTER_GET_TASK_CLASSIFICATIONSReturns the market-share breakdown of OpenRouter traffic by task classification (e.g. code generation, web search, summarization) over a trailing time window. Each classification reports its share of classified sampled requests (`usage_share`) and classified sampled token volume (`token_share`) as fractions between 0 and 1. The unclassified `other` bucket is excluded. Absolute volumes are not exposed because the underlying data is sampled. Each classification also includes a `models` array listing the top models by request volume within that classification, with their within-tag usage and token shares. Classifications are grouped into macro-categories (Code, Data, Agent, General) with aggregate shares provided for each. Authenticate with any valid OpenRouter API key (same key used for inference). Rate-limited to 30 requests/minute per key and 500 requests/day per account. When republishing or quoting this data, cite as: "Source: OpenRouter (openrouter.ai/rankings), as of {as_of}."Connection
Returns the market-share breakdown of OpenRouter traffic by task classification (e.g. code generation, web search, summarization) over a trailing time window. Each classification reports its share of classified sampled requests (`usage_share`) and classified sampled token volume (`token_share`) as fractions between 0 and 1. The unclassified `other` bucket is excluded. Absolute volumes are not exposed because the underlying data is sampled. Each classification also includes a `models` array listing the top models by request volume within that classification, with their within-tag usage and token shares. Classifications are grouped into macro-categories (Code, Data, Agent, General) with aggregate shares provided for each. Authenticate with any valid OpenRouter API key (same key used for inference). Rate-limited to 30 requests/minute per key and 500 requests/day per account. When republishing or quoting this data, cite as: "Source: OpenRouter (openrouter.ai/rankings), as of {as_of}."
Authentication
Connected account requiredTags
Get user activity grouped by endpointOPENROUTER_GET_USER_ACTIVITYReturns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Poll video generation statusOPENROUTER_GET_VIDEOSReturns job status and content URLs when completedConnection
Returns job status and content URLs when completed
Authentication
Connected account requiredTags
Get a workspaceOPENROUTER_GET_WORKSPACEGet a single workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Get a single workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Get a workspace budgetOPENROUTER_GET_WORKSPACE_BUDGETRetrieve the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Retrieve the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List API keysOPENROUTER_LISTList all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List BYOK provider credentialsOPENROUTER_LIST_BYOKKEYSList the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List all embeddings modelsOPENROUTER_LIST_EMBEDDINGS_MODELSReturns a list of all available embeddings models and their propertiesConnection
Returns a list of all available embeddings models and their properties
Authentication
Connected account requiredTags
List all endpoints for a modelOPENROUTER_LIST_ENDPOINTSList all endpoints for a modelConnection
List all endpoints for a model
Authentication
Connected account requiredTags
Preview the impact of ZDR on the available endpointsOPENROUTER_LIST_ENDPOINTS_ZDRPreview the impact of ZDR on the available endpointsConnection
Preview the impact of ZDR on the available endpoints
Authentication
Connected account requiredTags
List filesOPENROUTER_LIST_FILESLists files belonging to the workspace of the authenticating API key.Connection
Lists files belonging to the workspace of the authenticating API key.
Authentication
Connected account requiredTags
Get stored prompt, completion, and error content for a generationOPENROUTER_LIST_GENERATION_CONTENTGet stored prompt, completion, and error content for a generationConnection
Get stored prompt, completion, and error content for a generation
Authentication
Connected account requiredTags
List key assignments for a guardrailOPENROUTER_LIST_GUARDRAIL_KEY_ASSIGNMENTSList all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List member assignments for a guardrailOPENROUTER_LIST_GUARDRAIL_MEMBER_ASSIGNMENTSList all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List guardrailsOPENROUTER_LIST_GUARDRAILSList all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List endpoints for an image modelOPENROUTER_LIST_IMAGE_MODEL_ENDPOINTSReturns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist.Connection
Returns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist.
Authentication
Connected account requiredTags
List image generation modelsOPENROUTER_LIST_IMAGE_MODELSLists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records.Connection
Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records.
Authentication
Connected account requiredTags
List all key assignmentsOPENROUTER_LIST_KEY_ASSIGNMENTSList all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List all member assignmentsOPENROUTER_LIST_MEMBER_ASSIGNMENTSList all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Get total count of available modelsOPENROUTER_LIST_MODELS_COUNTGet total count of available modelsConnection
Get total count of available models
Authentication
Connected account requiredTags
List models filtered by user provider preferences, privacy settings, and guardrailsOPENROUTER_LIST_MODELS_USERList models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provider-logging), and [guardrails](https://openrouter.ai/docs/guides/features/guardrails). If requesting through a regional hostname, the results will be filtered to models that satisfy in-region routing for that region.Connection
List models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provider-logging), and [guardrails](https://openrouter.ai/docs/guides/features/guardrails). If requesting through a regional hostname, the results will be filtered to models that satisfy in-region routing for that region.
Authentication
Connected account requiredTags
List observability destinationsOPENROUTER_LIST_OBSERVABILITY_DESTINATIONSList the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List organization membersOPENROUTER_LIST_ORGANIZATION_MEMBERSList all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List versions of a presetOPENROUTER_LIST_PRESET_VERSIONSLists all versions of a preset, ordered by version number ascending (oldest first).Connection
Lists all versions of a preset, ordered by version number ascending (oldest first).
Authentication
Connected account requiredTags
List presetsOPENROUTER_LIST_PRESETSLists all presets for the authenticated user, ordered by most recently updated first.Connection
Lists all presets for the authenticated user, ordered by most recently updated first.
Authentication
Connected account requiredTags
List all providersOPENROUTER_LIST_PROVIDERSList all providersConnection
List all providers
Authentication
Connected account requiredTags
List SCIM group mappingsOPENROUTER_LIST_SCIM_GROUP_MAPPINGSList SCIM group-to-workspace mappings for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List SCIM group-to-workspace mappings for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List SCIM groupsOPENROUTER_LIST_SCIM_GROUPSList SCIM groups for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List SCIM groups for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Download generated video contentOPENROUTER_LIST_VIDEOS_CONTENTStreams the generated video content from the upstream providerConnection
Streams the generated video content from the upstream provider
Authentication
Connected account requiredTags
List all video generation modelsOPENROUTER_LIST_VIDEOS_MODELSReturns a list of all available video generation models and their propertiesConnection
Returns a list of all available video generation models and their properties
Authentication
Connected account requiredTags
List workspace budgetsOPENROUTER_LIST_WORKSPACE_BUDGETSList all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List workspace membersOPENROUTER_LIST_WORKSPACE_MEMBERSList all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
List workspacesOPENROUTER_LIST_WORKSPACESList all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Query analytics dataOPENROUTER_QUERY_ANALYTICSExecute an analytics query with specified metrics, dimensions, filters, and time range. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Execute an analytics query with specified metrics, dimensions, filters, and time range. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Create a chat completionOPENROUTER_SEND_CHAT_COMPLETION_REQUESTSends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.Connection
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
Authentication
Connected account requiredTags
Submit feedback for a generationOPENROUTER_SUBMIT_GENERATION_FEEDBACKSubmit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Update a BYOK provider credentialOPENROUTER_UPDATE_BYOKKEYUpdate an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Update a guardrailOPENROUTER_UPDATE_GUARDRAILUpdate an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Update an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Update an API keyOPENROUTER_UPDATE_KEYSUpdate an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Update an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Update an observability destinationOPENROUTER_UPDATE_OBSERVABILITY_DESTINATIONUpdate an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Update a SCIM group mappingOPENROUTER_UPDATE_SCIM_GROUP_MAPPINGUpdate a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Update a workspaceOPENROUTER_UPDATE_WORKSPACEUpdate an existing workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Update an existing workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags
Create or update a workspace budgetOPENROUTER_UPSERT_WORKSPACE_BUDGETCreate or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.Connection
Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Authentication
Connected account requiredTags