Open Connector
所有 Tools

OpenRouter logoOpenRouter

The unified interface for LLMs. Find the best models & prices for your prompts

openroutervcatalog-v194 个 Tools

认证方式

方式底层类型状态说明
API Keyapi_keyavailable

调用示例

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 Account

Tags

Workspaces
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 Account

Tags

Guardrails
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 Account

Tags

Guardrails
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 Account

Tags

Workspaces
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 Account

Tags

Guardrails
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 Account

Tags

Guardrails
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 Account

Tags

TTS
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 Account

Tags

STT
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 Account

Tags

BYOK
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 Account

Tags

Credits
Submit an embedding requestOPENROUTER_CREATE_EMBEDDINGSSubmits an embedding request to the embeddings router

Submits an embedding request to the embeddings router

认证

需要 Connected Account

Tags

Embeddings
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 Account

Tags

Guardrails
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 Account

Tags

Images
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 Account

Tags

API Keys
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 Account

Tags

Anthropic Messages
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 Account

Tags

Observability
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 Account

Tags

Presets
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 Account

Tags

Presets
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 Account

Tags

Presets
Submit a rerank requestOPENROUTER_CREATE_RERANKSubmits a rerank request to the rerank router

Submits a rerank request to the rerank router

认证

需要 Connected Account

Tags

Rerank
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 Account

Tags

Responsesbeta.responses
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 Account

Tags

SCIM
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 Account

Tags

Video Generation
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 Account

Tags

Workspaces
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 Account

Tags

BYOK
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 Account

Tags

Files
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 Account

Tags

Guardrails
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 Account

Tags

API Keys
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 Account

Tags

Observability
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 Account

Tags

SCIM
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 Account

Tags

Workspaces
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 Account

Tags

Workspaces
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 Account

Tags

Files
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 Account

Tags

beta.Analytics
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 Account

Tags

Datasets
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 Account

Tags

Benchmarks
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 Account

Tags

BYOK
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 Account

Tags

Credits
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 Account

Tags

API Keys
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 Account

Tags

Files
Get request & usage metadata for a generationOPENROUTER_GET_GENERATIONGet request & usage metadata for a generation

Get request & usage metadata for a generation

认证

需要 Connected Account

Tags

Generations
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 Account

Tags

Guardrails
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 Account

Tags

API Keys
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 Account

Tags

Models
List all models and their propertiesOPENROUTER_GET_MODELSList all models and their properties

List all models and their properties

认证

需要 Connected Account

Tags

Models
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 Account

Tags

Observability
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 Account

Tags

Presets
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 Account

Tags

Presets
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 Account

Tags

Datasets
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 Account

Tags

SCIM
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 Account

Tags

Datasets
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 Account

Tags

Classifications
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 Account

Tags

Analytics
Poll video generation statusOPENROUTER_GET_VIDEOSReturns job status and content URLs when completed

Returns job status and content URLs when completed

认证

需要 Connected Account

Tags

Video Generation
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 Account

Tags

Workspaces
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 Account

Tags

Workspaces
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 Account

Tags

API Keys
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 Account

Tags

BYOK
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 Account

Tags

Embeddings
List all endpoints for a modelOPENROUTER_LIST_ENDPOINTSList all endpoints for a model

List all endpoints for a model

认证

需要 Connected Account

Tags

Endpoints
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 Account

Tags

Endpoints
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 Account

Tags

Files
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 Account

Tags

Generations
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 Account

Tags

Guardrails
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 Account

Tags

Guardrails
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 Account

Tags

Guardrails
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 Account

Tags

Images
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 Account

Tags

Images
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 Account

Tags

Guardrails
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 Account

Tags

Guardrails
Get total count of available modelsOPENROUTER_LIST_MODELS_COUNTGet total count of available models

Get total count of available models

认证

需要 Connected Account

Tags

Models
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 Account

Tags

Models
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 Account

Tags

Observability
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 Account

Tags

Organization
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 Account

Tags

Presets
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 Account

Tags

Presets
List all providersOPENROUTER_LIST_PROVIDERSList all providers

List all providers

认证

需要 Connected Account

Tags

Providers
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 Account

Tags

SCIM
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 Account

Tags

SCIM
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 Account

Tags

Video Generation
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 Account

Tags

Video Generation
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 Account

Tags

Workspaces
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 Account

Tags

Workspaces
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 Account

Tags

Workspaces
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 Account

Tags

beta.Analytics
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 Account

Tags

Chat
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 Account

Tags

Generations
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 Account

Tags

BYOK
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 Account

Tags

Guardrails
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 Account

Tags

API Keys
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 Account

Tags

Observability
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 Account

Tags

SCIM
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 Account

Tags

Workspaces
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 Account

Tags

Workspaces

Provider 资源