> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenRouter

> How to set up the OpenRouter connector, plus the actions that are available.

![OpenRouter](https://stackone-logos.com/api/openrouter/filled/svg)

Previewv0.1.0[See changelog](https://docs.stackone.com/connectors/openrouter/changelog.md)

[170 actions](#actions) · 2 auth methods

AI
IAM

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [Management API Key · Connector Profile](https://docs.stackone.com/connectors/openrouter/guides/connector-profile/management-api-key.md)
>
> Uses an organization-scoped management key. A Read only key is enough for user, role and workspace reads; write actions...

> [card] [API Key · Connector Profile](https://docs.stackone.com/connectors/openrouter/guides/connector-profile/api-key.md)
>
> Inference key for models, chat, files and batches. Cannot read organization members.

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [Management API Key · Link Account](https://docs.stackone.com/connectors/openrouter/guides/link-account/management-api-key.md)

> [card] [API Key · Link Account](https://docs.stackone.com/connectors/openrouter/guides/link-account/api-key.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

Authentication type

Select all
|
Clear

API Key

Management API Key

No auth methods found

170 actions

ActionDescription

Create Decision`openrouter_create_decision`

Ask an OpenRouter Decisions model typed questions about some content.

Create Extraction`openrouter_create_extraction`

Extract typed fields from text and images with an OpenRouter Extractions model.

Get User Activity`openrouter_get_user_activity`

Get OpenRouter usage for the last 30 days, grouped by date, model and endpoint.

Get Analytics Meta`openrouter_get_analytics_meta`

List the metrics, dimensions, filter operators and time granularities the analytics query accepts.

Query Analytics`openrouter_query_analytics`

Run an OpenRouter analytics query over requests, tokens and spend.

List Batches`openrouter_list_batches`

List the batches of the OpenRouter workspace, newest first.

Create Batch`openrouter_create_batch`

Submit a batch of model requests that OpenRouter runs asynchronously.

Get Batch`openrouter_get_batch`

Get one OpenRouter batch with its status, counts and results.

Delete Batch`openrouter_delete_batch`

Delete an ended OpenRouter batch with its stored requests and results.

List Benchmarks`openrouter_list_benchmarks`

List model benchmark scores from Artificial Analysis, Design Arena and OpenRouter.

List BYOK Credentials`openrouter_list_byok_credentials`

List the bring-your-own-key provider credentials of an OpenRouter workspace.

Create BYOK Credential`openrouter_create_byok_credential`

Add a provider API key to OpenRouter as a bring-your-own-key credential.

Get BYOK Credential`openrouter_get_byok_credential`

Get one bring-your-own-key provider credential from OpenRouter.

Update BYOK Credential`openrouter_update_byok_credential`

Change or rotate a bring-your-own-key provider credential in OpenRouter.

Delete BYOK Credential`openrouter_delete_byok_credential`

Delete a bring-your-own-key provider credential from OpenRouter.

Create Chat Completion`openrouter_create_chat_completion`

Send a conversation to a model through OpenRouter and get the reply.

Get Task Classifications`openrouter_get_task_classifications`

Get the share of OpenRouter traffic by task type, such as code generation or summarization.

List Container Files`openrouter_list_container_files`

List the files in an OpenRouter tool container.

Get Container File`openrouter_get_container_file`

Get the details of one file in an OpenRouter tool container.

Promote Container File`openrouter_promote_container_file`

Copy a container file into the workspace documents so it outlives the container.

Get Credits`openrouter_get_credits`

Get the credits purchased and used on the OpenRouter account.

Get Credit Purchase`openrouter_get_credit_purchase`

Get the status of an OpenRouter agent credit purchase.

Get App Rankings`openrouter_get_app_rankings`

Get the top public apps on OpenRouter ranked by token usage.

Get Daily Model Rankings`openrouter_get_daily_model_rankings`

Get daily token totals for the top 50 public models on OpenRouter.

Get Session Costs`openrouter_get_session_costs`

Get the median cost per session by coding harness and model on OpenRouter.

Create Embeddings`openrouter_create_embeddings`

Turn text or other input into embedding vectors with an OpenRouter embeddings model.

List Embeddings Models`openrouter_list_embeddings_models`

List the embeddings models available on OpenRouter.

List ZDR Endpoints`openrouter_list_zdr_endpoints`

List the model endpoints that stay available when zero data retention is enforced.

List Model Endpoints`openrouter_list_model_endpoints`

List the provider endpoints that serve one OpenRouter model.

List External Users`openrouter_list_external_users`

List the external user tracking ids registered in the OpenRouter organization.

Create External User`openrouter_create_external_user`

Register an external user tracking id in the OpenRouter organization.

Get External User`openrouter_get_external_user`

Get one external user registration from the OpenRouter organization.

Update External User`openrouter_update_external_user`

Activate or deactivate an external user registration in OpenRouter.

Deactivate External User`openrouter_deactivate_external_user`

Deactivate an external user registration in OpenRouter, keeping its tracking id.

List Files`openrouter_list_files`

List the files stored in the OpenRouter workspace of the API key.

Get File Metadata`openrouter_get_file_metadata`

Get the metadata of one file in the OpenRouter workspace.

Delete File`openrouter_delete_file`

Delete one file from the OpenRouter workspace.

Get Generation`openrouter_get_generation`

Get the request, cost and token metadata of one OpenRouter generation.

Get Generation Content`openrouter_get_generation_content`

Get the stored prompt, completion and error of one OpenRouter generation.

Submit Generation Feedback`openrouter_submit_generation_feedback`

Report a problem with one of your OpenRouter generations, such as latency or a wrong answer.

List Workspace-Wide Policies`openrouter_list_account_policies`

List the workspace-wide guardrail policies that apply across the workspaces of the OpenRouter account.

Create Workspace-Wide Policy`openrouter_create_account_policy`

Create a workspace-wide budget, moderation or model availability policy in OpenRouter.

Update Workspace-Wide Policy`openrouter_update_account_policy`

Replace a workspace-wide guardrail policy and the workspaces it covers in OpenRouter.

Delete Workspace-Wide Policy`openrouter_delete_account_policy`

Delete a workspace-wide guardrail policy from OpenRouter.

Get API Key Policy Assignment`openrouter_get_api_key_policy_assignment`

Get the guardrail policies of one type that apply to an API key in an OpenRouter workspace.

Change API Key Policy Assignment`openrouter_change_api_key_policy_assignment`

Assign or unassign one guardrail policy for an API key in OpenRouter.

Get Member Policy Assignment`openrouter_get_member_policy_assignment`

Get the guardrail policies of one type that apply to a member in an OpenRouter workspace.

Change Member Policy Assignment`openrouter_change_member_policy_assignment`

Assign or unassign one guardrail policy for a member in OpenRouter.

List Budget Policies`openrouter_list_budget_policies`

List the budget policies of an OpenRouter workspace.

Create Budget Policy`openrouter_create_budget_policy`

Create a budget policy in an OpenRouter workspace.

Get Budget Policy`openrouter_get_budget_policy`

Get one budget policy of an OpenRouter workspace with its member and API key assignments.

Update Budget Policy`openrouter_update_budget_policy`

Replace the name, settings and optionally the assignments of a budget policy in OpenRouter.

Delete Budget Policy`openrouter_delete_budget_policy`

Delete a budget policy from an OpenRouter workspace.

List Moderation Policies`openrouter_list_moderation_policies`

List the moderation policies of an OpenRouter workspace.

Create Moderation Policy`openrouter_create_moderation_policy`

Create a moderation policy in an OpenRouter workspace.

Get Moderation Policy`openrouter_get_moderation_policy`

Get one moderation policy of an OpenRouter workspace with its member and API key assignments.

Update Moderation Policy`openrouter_update_moderation_policy`

Replace the name, settings and optionally the assignments of a moderation policy in OpenRouter.

Delete Moderation Policy`openrouter_delete_moderation_policy`

Delete a moderation policy from an OpenRouter workspace.

List Model Availability Policies`openrouter_list_model_availability_policies`

List the model availability policies of an OpenRouter workspace.

Create Model Availability Policy`openrouter_create_model_availability_policy`

Create a model availability policy in an OpenRouter workspace.

Get Model Availability Policy`openrouter_get_model_availability_policy`

Get one model availability policy of an OpenRouter workspace with its member and API key assignments.

Update Model Availability Policy`openrouter_update_model_availability_policy`

Replace the name, settings and optionally the assignments of a model availability policy in OpenRouter.

Delete Model Availability Policy`openrouter_delete_model_availability_policy`

Delete a model availability policy from an OpenRouter workspace.

List Guardrails`openrouter_list_guardrails`

List the guardrails of an OpenRouter workspace.

Create Guardrail`openrouter_create_guardrail`

Create a guardrail with spending, model, provider and data rules in OpenRouter.

Get Guardrail`openrouter_get_guardrail`

Get one OpenRouter guardrail with its rules.

Update Guardrail`openrouter_update_guardrail`

Change the rules of an OpenRouter guardrail.

Delete Guardrail`openrouter_delete_guardrail`

Delete a guardrail from OpenRouter.

List Key Assignments`openrouter_list_key_assignments`

List which API keys each OpenRouter guardrail is assigned to.

List Member Assignments`openrouter_list_member_assignments`

List which organization members each OpenRouter guardrail is assigned to.

List Guardrail Key Assignments`openrouter_list_guardrail_key_assignments`

List the API keys one OpenRouter guardrail is assigned to.

Bulk Assign Keys To Guardrail`openrouter_bulk_assign_keys_to_guardrail`

Assign API keys to an OpenRouter guardrail.

Bulk Unassign Keys From Guardrail`openrouter_bulk_unassign_keys_from_guardrail`

Remove API keys from an OpenRouter guardrail.

List Guardrail Member Assignments`openrouter_list_guardrail_member_assignments`

List the organization members one OpenRouter guardrail is assigned to.

Bulk Assign Members To Guardrail`openrouter_bulk_assign_members_to_guardrail`

Assign organization members to an OpenRouter guardrail.

Bulk Unassign Members From Guardrail`openrouter_bulk_unassign_members_from_guardrail`

Remove organization members from an OpenRouter guardrail.

Get Unified Credentials`openrouter_unified_get_me`

Get the current OpenRouter connection's unified credentials and identity.

List Unified Groups`openrouter_unified_list_groups`

List unified groups (workspaces) in an OpenRouter organization.

Get Unified Group`openrouter_unified_get_group`

Get a unified OpenRouter group (workspace) by ID.

List Unified Resource Types`openrouter_unified_list_resource_types`

List unified resource types in OpenRouter.

List Unified Resource Users`openrouter_unified_list_resource_users`

List unified resource users for an OpenRouter workspace.

List Unified Roles`openrouter_unified_list_roles`

List unified roles in OpenRouter.

Get Unified Role`openrouter_unified_get_role`

Get a unified OpenRouter role by ID.

List Unified Users`openrouter_unified_list_users`

List unified users in an OpenRouter organization.

Get Unified User`openrouter_unified_get_user`

Get a unified OpenRouter user by ID.

Create Images`openrouter_create_images`

Generate images from a text prompt with an OpenRouter image model.

List Image Models`openrouter_list_image_models`

List the image generation models available on OpenRouter.

List Image Model Endpoints`openrouter_list_image_model_endpoints`

List the provider endpoints that serve one OpenRouter image model.

Get Current Key`openrouter_get_current_key`

Get the OpenRouter key the connection uses, with its usage, limits and budgets.

List Keys`openrouter_list_keys`

List the API keys of an OpenRouter workspace.

Get Key`openrouter_get_key`

Get one OpenRouter API key by hash.

Create Key`openrouter_create_key`

Create an OpenRouter API key.

Update Key`openrouter_update_key`

Update an OpenRouter API key.

Delete Key`openrouter_delete_key`

Delete an OpenRouter API key.

Create Message`openrouter_create_message`

Send a conversation to a model in the Anthropic Messages format through OpenRouter.

List Models`openrouter_get_models`

List the models available on OpenRouter, with filters and sorting.

Get Model`openrouter_get_model`

Get one OpenRouter model by its author and slug.

Get Model Count`openrouter_list_models_count`

Count the models available on OpenRouter.

List Models For User`openrouter_list_models_user`

List the OpenRouter models the API key can use under its provider preferences, privacy settings and guardrails.

List OAuth Signing Keys`openrouter_list_oauth_jwks`

Get the public keys OpenRouter signs its access tokens with.

List Observability Destinations`openrouter_list_observability_destinations`

List the observability destinations an OpenRouter workspace forwards traces to.

Create Observability Destination`openrouter_create_observability_destination`

Add a destination that OpenRouter forwards request traces to, such as Langfuse, Datadog or S3.

Get Observability Destination`openrouter_get_observability_destination`

Get one OpenRouter observability destination.

Update Observability Destination`openrouter_update_observability_destination`

Change the settings of an OpenRouter observability destination.

Delete Observability Destination`openrouter_delete_observability_destination`

Delete an OpenRouter observability destination.

List Organization Members`openrouter_list_organization_members`

List the members of the OpenRouter organization.

Get Organization Settings`openrouter_get_organization_settings`

Get the settings of the OpenRouter organization.

Update Organization Settings`openrouter_update_organization_settings`

Update the settings of the OpenRouter organization.

List Presets`openrouter_list_presets`

List the presets of an OpenRouter workspace, most recently updated first.

Get Preset`openrouter_get_preset`

Get one OpenRouter preset with its current configuration.

Create Preset From Chat Completions Request`openrouter_create_presets_chat_completions`

Save a preset, or a new preset version, from a chat completions request body.

Create Preset From Messages Request`openrouter_create_presets_messages`

Save a preset, or a new preset version, from an Anthropic Messages request body.

Create Preset From Responses Request`openrouter_create_presets_responses`

Save a preset, or a new preset version, from a Responses API request body.

Delete Preset`openrouter_delete_preset`

Archive an OpenRouter preset so it no longer resolves for inference.

Restore Preset`openrouter_restore_preset`

Bring back an archived OpenRouter preset.

List Preset Versions`openrouter_list_preset_versions`

List every version of an OpenRouter preset, oldest first.

Get Preset Version`openrouter_get_preset_version`

Get one version of an OpenRouter preset by its number.

List Private Endpoints`openrouter_list_private_endpoints`

List the private endpoints of the OpenRouter organization, drafts included.

Create Private Endpoint`openrouter_create_private_endpoint`

Register your own model deployment as a private OpenRouter endpoint.

Get Private Endpoint`openrouter_get_private_endpoint`

Get one OpenRouter private endpoint with its upstream settings and pricing.

Update Private Endpoint`openrouter_update_private_endpoint`

Change the pricing, settings or upstream of an OpenRouter private endpoint.

Delete Private Endpoint`openrouter_delete_private_endpoint`

Delete an OpenRouter private endpoint and stop routing to it.

Validate Private Endpoint`openrouter_validate_private_endpoint`

Send a live test request to a draft OpenRouter private endpoint.

Activate Private Endpoint`openrouter_activate_private_endpoint`

Make a validated draft OpenRouter private endpoint routable.

Disable Private Endpoint`openrouter_disable_private_endpoint`

Stop routing to an active OpenRouter private endpoint without deleting it.

Enable Private Endpoint`openrouter_enable_private_endpoint`

Resume routing to a disabled OpenRouter private endpoint.

List Private Providers`openrouter_list_private_providers`

List the private bring-your-own-key providers of the OpenRouter organization.

Create Private Provider`openrouter_create_private_provider`

Add a private bring-your-own-key provider that only your OpenRouter organization sees.

Get Private Provider`openrouter_get_private_provider`

Get one private provider of the OpenRouter organization.

Update Private Provider`openrouter_update_private_provider`

Change the display name or base URL of an OpenRouter private provider.

Delete Private Provider`openrouter_delete_private_provider`

Delete an OpenRouter private provider.

List Providers`openrouter_list_providers`

List the model providers OpenRouter routes to, with their policies and data centers.

Rerank Documents`openrouter_create_rerank`

Rank documents by relevance to a query with an OpenRouter rerank model.

Create Response`openrouter_create_responses`

Send input to a model in the OpenAI Responses format through OpenRouter.

List SCIM Groups`openrouter_list_scim_groups`

List the SCIM groups your identity provider pushed to OpenRouter.

List SCIM Group Mappings`openrouter_list_scim_group_mappings`

List the mappings from SCIM groups to OpenRouter workspace roles.

Get SCIM Group Mapping`openrouter_get_scim_group_mapping`

Get one mapping from a SCIM group to an OpenRouter workspace role.

Create SCIM Group Mapping`openrouter_create_scim_group_mapping`

Map a SCIM group to a role in an OpenRouter workspace.

Update SCIM Group Mapping`openrouter_update_scim_group_mapping`

Change the workspace role a SCIM group mapping grants.

Delete SCIM Group Mapping`openrouter_delete_scim_group_mapping`

Delete a mapping from a SCIM group to an OpenRouter workspace role.

Create SCIM Sync Job`openrouter_create_scim_sync_job`

Start a SCIM directory sync in OpenRouter.

Get SCIM Sync Job`openrouter_get_scim_sync_job`

Get the status of an OpenRouter SCIM directory sync.

Create System One Request`openrouter_create_systemone`

Ask a System One model such as Jev typed questions about some content.

List Server Tools`openrouter_list_tools`

List the server tools OpenRouter can run for a model, such as web search.

Get Server Tool`openrouter_get_tool`

Get one OpenRouter server tool with the models that run it natively.

Create Transcription`openrouter_create_audio_transcriptions`

Transcribe audio into text with an OpenRouter speech-to-text model.

List Workspace Secrets`openrouter_list_vault_secrets`

List the vault secrets of the API key's OpenRouter workspace, without their values.

Store Workspace Secret`openrouter_store_vault_secret`

Create or replace a host-bound secret in the API key's OpenRouter workspace vault.

Delete Workspace Secret`openrouter_delete_vault_secret`

Delete a secret from the API key's OpenRouter workspace vault.

List Intern Secrets`openrouter_list_intern_vault_secrets`

List the vault secrets stored for one OpenRouter intern, without their values.

List Secrets An Intern Receives`openrouter_list_intern_effective_vault_secrets`

List, one per name, the vault secret each of an OpenRouter intern's outbound requests receives.

Store Intern Secret`openrouter_store_intern_vault_secret`

Create or replace a host-bound secret for one OpenRouter intern.

Delete Intern Secret`openrouter_delete_intern_vault_secret`

Delete a secret stored for one OpenRouter intern.

Copy Workspace Secrets To Intern`openrouter_copy_vault_secrets_to_intern`

Copy named workspace vault secrets to one OpenRouter intern without sending their values.

List Intern Connections`openrouter_list_intern_connections`

List the connections, such as GitHub, Slack or an MCP server, that one OpenRouter intern can use.

Create Video`openrouter_create_videos`

Start an OpenRouter video generation job from a prompt or images.

Get Video Job`openrouter_get_videos`

Get the status of an OpenRouter video generation job, with its output links once done.

List Video Models`openrouter_list_videos_models`

List the video generation models available on OpenRouter, with their supported settings.

List Workspaces`openrouter_list_workspaces`

List the workspaces of the OpenRouter organization.

Get Workspace`openrouter_get_workspace`

Get one OpenRouter workspace by id or slug.

Create Workspace`openrouter_create_workspace`

Create an OpenRouter workspace.

Update Workspace`openrouter_update_workspace`

Update an OpenRouter workspace.

Delete Workspace`openrouter_delete_workspace`

Delete an OpenRouter workspace.

List Workspace Members`openrouter_list_workspace_members`

List the members of an OpenRouter workspace with their workspace role.

Bulk Add Workspace Members`openrouter_bulk_add_workspace_members`

Add organization members to an OpenRouter workspace.

Bulk Remove Workspace Members`openrouter_bulk_remove_workspace_members`

Remove members from an OpenRouter workspace.

List Workspace Budgets`openrouter_list_workspace_budgets`

List the spending budgets of an OpenRouter workspace.

Get Workspace Budget`openrouter_get_workspace_budget`

Get the budget of an OpenRouter workspace for one interval.

Upsert Workspace Budget`openrouter_upsert_workspace_budget`

Create or change the budget of an OpenRouter workspace for one interval.

Delete Workspace Budget`openrouter_delete_workspace_budget`

Remove the budget of an OpenRouter workspace for one interval.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.