OpenRouter
The unified interface for LLMs. Find the best models & prices for your prompts
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| API Key | api_key | available | — |
调用示例
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 目录
可用 Tools
94 个可调用操作
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Create speechOPENROUTER_CREATE_AUDIO_SPEECHSynthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).需要连接
Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
Submit an embedding requestOPENROUTER_CREATE_EMBEDDINGSSubmits an embedding request to the embeddings router需要连接
Submits an embedding request to the embeddings router
认证
需要 Connected AccountTags
Create a guardrailOPENROUTER_CREATE_GUARDRAILCreate a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Create a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Generate an imageOPENROUTER_CREATE_IMAGESGenerates an image from a text prompt via the image generation router需要连接
Generates an image from a text prompt via the image generation router
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
Create a messageOPENROUTER_CREATE_MESSAGESCreates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.需要连接
Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
Submit a rerank requestOPENROUTER_CREATE_RERANKSubmits a rerank request to the rerank router需要连接
Submits a rerank request to the rerank router
认证
需要 Connected AccountTags
Create a responseOPENROUTER_CREATE_RESPONSESCreates a streaming or non-streaming response using OpenResponses API format需要连接
Creates a streaming or non-streaming response using OpenResponses API format
认证
需要 Connected AccountTags
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.需要连接
Create a SCIM group-to-workspace role mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Submit a video generation requestOPENROUTER_CREATE_VIDEOSSubmits a video generation request and returns a polling URL to check status需要连接
Submits a video generation request and returns a polling URL to check status
认证
需要 Connected AccountTags
Create a workspaceOPENROUTER_CREATE_WORKSPACECreate a new workspace for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Create a new workspace for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
Delete a fileOPENROUTER_DELETE_FILEDeletes a file owned by the requesting workspace. Deletion is irreversible.需要连接
Deletes a file owned by the requesting workspace. Deletion is irreversible.
认证
需要 Connected AccountTags
Delete a guardrailOPENROUTER_DELETE_GUARDRAILDelete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Delete an API keyOPENROUTER_DELETE_KEYSDelete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Delete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
Delete a workspace budgetOPENROUTER_DELETE_WORKSPACE_BUDGETRemove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Remove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Download file contentOPENROUTER_DOWNLOAD_FILE_CONTENTDownloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.需要连接
Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.
认证
需要 Connected AccountTags
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.需要连接
Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
Get a single bring-your-own-key (BYOK) provider credential by its `id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Get remaining creditsOPENROUTER_GET_CREDITSGet total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Get total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Get current API keyOPENROUTER_GET_CURRENT_KEYGet information on the API key associated with the current authentication session需要连接
Get information on the API key associated with the current authentication session
认证
需要 Connected AccountTags
Get file metadataOPENROUTER_GET_FILE_METADATARetrieves metadata for a single file owned by the requesting workspace.需要连接
Retrieves metadata for a single file owned by the requesting workspace.
认证
需要 Connected AccountTags
Get request & usage metadata for a generationOPENROUTER_GET_GENERATIONGet request & usage metadata for a generation需要连接
Get request & usage metadata for a generation
认证
需要 Connected AccountTags
Get a guardrailOPENROUTER_GET_GUARDRAILGet a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Get a single API keyOPENROUTER_GET_KEYGet a single API key by hash. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Get a single API key by hash. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
List all models and their propertiesOPENROUTER_GET_MODELSList all models and their properties需要连接
List all models and their properties
认证
需要 Connected AccountTags
Get an observability destinationOPENROUTER_GET_OBSERVABILITY_DESTINATIONFetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Get a presetOPENROUTER_GET_PRESETRetrieves a preset by its slug with its currently designated version inline.需要连接
Retrieves a preset by its slug with its currently designated version inline.
认证
需要 Connected AccountTags
Get a specific version of a presetOPENROUTER_GET_PRESET_VERSIONRetrieves a specific version of a preset by its slug and version number.需要连接
Retrieves a specific version of a preset by its slug and version number.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
Get a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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`.需要连接
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`.
认证
需要 Connected AccountTags
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}."需要连接
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}."
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
Poll video generation statusOPENROUTER_GET_VIDEOSReturns job status and content URLs when completed需要连接
Returns job status and content URLs when completed
认证
需要 Connected AccountTags
Get a workspaceOPENROUTER_GET_WORKSPACEGet a single workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Get a single workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Get a workspace budgetOPENROUTER_GET_WORKSPACE_BUDGETRetrieve the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Retrieve the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
List API keysOPENROUTER_LISTList all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
List all embeddings modelsOPENROUTER_LIST_EMBEDDINGS_MODELSReturns a list of all available embeddings models and their properties需要连接
Returns a list of all available embeddings models and their properties
认证
需要 Connected AccountTags
List all endpoints for a modelOPENROUTER_LIST_ENDPOINTSList all endpoints for a model需要连接
List all endpoints for a model
认证
需要 Connected AccountTags
Preview the impact of ZDR on the available endpointsOPENROUTER_LIST_ENDPOINTS_ZDRPreview the impact of ZDR on the available endpoints需要连接
Preview the impact of ZDR on the available endpoints
认证
需要 Connected AccountTags
List filesOPENROUTER_LIST_FILESLists files belonging to the workspace of the authenticating API key.需要连接
Lists files belonging to the workspace of the authenticating API key.
认证
需要 Connected AccountTags
Get stored prompt, completion, and error content for a generationOPENROUTER_LIST_GENERATION_CONTENTGet stored prompt, completion, and error content for a generation需要连接
Get stored prompt, completion, and error content for a generation
认证
需要 Connected AccountTags
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.需要连接
List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
List guardrailsOPENROUTER_LIST_GUARDRAILSList all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
Returns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist.
认证
需要 Connected AccountTags
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.需要连接
Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records.
认证
需要 Connected AccountTags
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.需要连接
List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Get total count of available modelsOPENROUTER_LIST_MODELS_COUNTGet total count of available models需要连接
Get total count of available models
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
List versions of a presetOPENROUTER_LIST_PRESET_VERSIONSLists all versions of a preset, ordered by version number ascending (oldest first).需要连接
Lists all versions of a preset, ordered by version number ascending (oldest first).
认证
需要 Connected AccountTags
List presetsOPENROUTER_LIST_PRESETSLists all presets for the authenticated user, ordered by most recently updated first.需要连接
Lists all presets for the authenticated user, ordered by most recently updated first.
认证
需要 Connected AccountTags
List all providersOPENROUTER_LIST_PROVIDERSList all providers需要连接
List all providers
认证
需要 Connected AccountTags
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.需要连接
List SCIM group-to-workspace mappings for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
List SCIM groupsOPENROUTER_LIST_SCIM_GROUPSList SCIM groups for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
List SCIM groups for the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Download generated video contentOPENROUTER_LIST_VIDEOS_CONTENTStreams the generated video content from the upstream provider需要连接
Streams the generated video content from the upstream provider
认证
需要 Connected AccountTags
List all video generation modelsOPENROUTER_LIST_VIDEOS_MODELSReturns a list of all available video generation models and their properties需要连接
Returns a list of all available video generation models and their properties
认证
需要 Connected AccountTags
List workspace budgetsOPENROUTER_LIST_WORKSPACE_BUDGETSList all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
List all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
List workspacesOPENROUTER_LIST_WORKSPACESList all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
Execute an analytics query with specified metrics, dimensions, filters, and time range. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.
认证
需要 Connected AccountTags
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.需要连接
Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
Update an API keyOPENROUTER_UPDATE_KEYSUpdate an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Update an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags
Update a SCIM group mappingOPENROUTER_UPDATE_SCIM_GROUP_MAPPINGUpdate a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
Update a workspaceOPENROUTER_UPDATE_WORKSPACEUpdate an existing workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.需要连接
Update an existing workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.
认证
需要 Connected AccountTags
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.需要连接
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.
认证
需要 Connected AccountTags