Volver al catálogo

OpenRouter MCP

openrouter_mcp

Browse OpenRouter's model catalog, rankings, benchmarks and providers, check credits and keys, and run chat, image, speech, transcription, video and batch jobs through OpenRouter's hosted MCP server.

Acciones
33
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (33)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Generate imageOPENROUTER_MCP_GENERATE_IMAGEAcción

Generate an image from a text prompt. When the API can issue a signed URL, it is returned as a resource_link on MCP 2025-06-18 and newer, or as text on older versions. The URL is valid up to 24 hours and opens without an API key. Otherwise the image comes back inline (e.g. Zero Data Retention endpoints). This bills the authenticated user for the generation.

Parámetros de entrada

  • sizeany

    Removed: use aspect_ratio and resolution instead

  • modelstringObligatorio

    Image model slug, e.g. "bytedance-seed/seedream-4.5"

  • promptstringObligatorio

    Text description of the desired image

  • resolutionstringenum

    Resolution tier; exact pixels are chosen per provider. Omit for the model default

    5127681K1.5K2K4K8K
  • aspect_ratiostringenum

    Normalized aspect ratio; providers clamp to what the model supports

    1:11:21:31:41:82:12:33:12.35:13:23:44:1+16
  • reference_image_urlsstring[]

    Reference images (https or data URLs) for image-to-image: a template to edit, faces or products to keep, a style to match. Refer to them in the prompt as "image 1", "image 2", ... in this order. Only for models that accept reference images (the API rejects others).

Parámetros de salida

Sin parámetros.

Generate speechOPENROUTER_MCP_GENERATE_SPEECHAcción

Synthesize speech from text and return it inline as an audio content block (clients that can play audio render it; not all MCP clients can). This bills the authenticated user. Find TTS models via list-models with output_modalities=speech, and each model's voices via get-model (supported_voices). Cost is available afterwards via get-generation.

Parámetros de entrada

  • inputstring

    Text to synthesize (single speaker). Pass either input or turns.

  • modelstringObligatorio

    TTS model slug, e.g. "mistralai/voxtral-mini-tts-2603"

  • speednumber

    Playback speed multiplier; only honored by models that support it

  • turnsobject[]

    Multi-speaker dialogue as ordered turns, each with its own voice (e.g. Gemini TTS). Pass either input or turns.

  • voicestring

    Voice identifier (provider-specific). Omit for the model default. Always pick from get-model supported_voices: ElevenLabs premade voice names stop working on 2026-12-31 and must be replaced by voice IDs.

  • instructionsstring

    Free-text delivery guidance (tone, pace, accent), e.g. "whisper, slightly sad". Honored by instructable models such as openai/gpt-4o-mini-tts and Gemini TTS; ignored elsewhere.

  • response_formatstringenum

    Audio output format; defaults to mp3

    mp3pcm

Parámetros de salida

Sin parámetros.

Generate videoOPENROUTER_MCP_GENERATE_VIDEOAcción

Start a video generation job. Waits up to 20 s and returns the finished video if the job completes that fast; otherwise returns job_id, and you must keep calling get-video every 15-20 s until status is completed, failed, cancelled or expired (jobs usually take 1-5 minutes, so expect several polls). Image inputs are model-dependent: read the argument descriptions and check the model with get-model. Bills the authenticated user, from cents to dollars per clip. Find models with list-models output_modalities=video.

Parámetros de entrada

  • seedinteger

    Seed for repeatable output, when the model honors it

  • sizestring

    Exact "WIDTHxHEIGHT" (e.g. "1280x720") instead of resolution + aspect_ratio

  • modelstringObligatorio

    Video model slug; find them with list-models output_modalities=video

  • promptstring

    What the video should show; optional only for image-to-video models

  • durationinteger

    Length in seconds (model-specific range)

  • resolutionstringenum

    Output resolution; pair with aspect_ratio, or use size instead

    360p480p720p768p1080p1K2K4K
  • aspect_ratiostringenum
    16:99:161:14:33:43:22:321:99:212:15:2
  • generate_audioboolean

    Also generate audio, when the model can

  • last_frame_image_urlstring

    Image the video ends on, for models that accept last frames.

  • reference_image_urlsstring[]

    Input images (https or data URLs), referred to in the prompt as "image 1", "image 2", ... in this order. How it is used depends on the model: a style or subject reference for models that accept reference images, and the start frame for image-to-video models that take their image this way (e.g. Sora, HeyGen, Seedance 1.5, Wan 2.6). The API rejects it for models that accept neither. Combining it with the frame fields is honored by few models (e.g. Gemini Omni); most integrations keep the frames and ignore the reference.

  • first_frame_image_urlstring

    Image the video starts from (https or data URL), for models whose provider integration accepts frame images; the API rejects it otherwise.

Parámetros de salida

  • idstringObligatorio
  • urlsstring[]
  • errorstring
  • usageobject
  • statusstringObligatorioenum
    pendingin_progresscompletedfailedcancelledexpired
  • expires_atinteger
  • polling_urlstringObligatorio
  • generation_idstring
  • unsigned_urlsstring[]
Get batchOPENROUTER_MCP_GET_BATCHAcción

Get the current status of a batch submitted with send-batch: lifecycle state (validating, in_progress, finalizing, completed, failed, expired, cancelling, cancelled), per-request completed/failed counts, the failure reason when the batch failed, and — once the batch is terminal — the inline results keyed by custom_id. Poll it until the status is terminal; batches usually take minutes to hours, so wait between polls rather than looping tightly.

Parámetros de entrada

  • idstringObligatorio

    Batch id returned by send-batch, e.g. "batch_abc123"

Parámetros de salida

  • idstringObligatorio
  • erroranyObligatorio
  • modelstringObligatorio
  • outputobject
  • statusstringObligatorioenum
    validatingin_progressfinalizingcompletedfailedexpiredcancellingcancelled
  • resultsanyObligatorio
  • endpointstringObligatorio
  • request_countsobjectObligatorio
Get creditsOPENROUTER_MCP_GET_CREDITSAcción

Check the remaining account credit balance before running a workload.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataobjectObligatorio
Get current keyOPENROUTER_MCP_GET_CURRENT_KEYAcción

Inspect the API key this MCP session is authenticated with: its label, spend limit, remaining limit and reset cadence, usage so far, whether it is on the free tier, and whether it is a management or provisioning key. First stop after a 402 (credits or key limit exhausted) from any other tool; use get-credits for the account balance. The rate_limit field is a deprecated placeholder and does not explain a 429.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataobjectObligatorio
Get endpoint uptime historyOPENROUTER_MCP_GET_ENDPOINT_UPTIME_HISTORYAcción

Get the hourly uptime history of every provider endpoint serving a model over the last 72 hours — the same per-provider uptime timeline shown on the model page. Use it to find which provider degraded during a window (e.g. "model X was failing between 05:00 and 08:30 UTC — whose uptime dipped?").

Parámetros de entrada

  • tostring

    Optional ISO 8601 UTC end of the window, e.g. "2026-07-23T09:00:00Z". Must be after from; defaults to now.

  • fromstring

    Optional ISO 8601 UTC start of the window, e.g. "2026-07-23T05:00:00Z". Only the last 72 hours are retained, so earlier starts return no data; omit both from and to for the full 72-hour window.

  • slugstringObligatorio

    The model slug, optionally with a variant suffix, e.g. "deepseek-chat" or "deepseek-chat:free"

  • authorstringObligatorio

    The model author/organization, e.g. "deepseek"

Parámetros de salida

Sin parámetros.

Get generationOPENROUTER_MCP_GET_GENERATIONAcción

Inspect cost, token counts, and serving provider for a specific generation id, to debug spend and routing. send-message returns the generation id of each call in its output.

Parámetros de entrada

  • requestobjectObligatorio

Parámetros de salida

  • dataobjectObligatorio
Get modelOPENROUTER_MCP_GET_MODELAcción

Get full details for one model by author/slug (supports :variant suffixes and slug aliases) without fetching the whole catalog. Use this instead of list-models when the model is already known.

Parámetros de entrada

  • requestobjectObligatorio

Parámetros de salida

Sin parámetros.

Get presetOPENROUTER_MCP_GET_PRESETAcción

Get one saved preset by slug, including its designated version's config bundle (model, system prompt, temperature, and other sampling parameters), to inspect or reuse that configuration in a request. Find slugs with list-presets.

Parámetros de entrada

  • requestobjectObligatorio

Parámetros de salida

Sin parámetros.

Get session costOPENROUTER_MCP_GET_SESSION_COSTAcción

Weekly refreshed cost-per-session statistics for published coding harnesses (apps such as Claude Code, Codex or Ori) by model and turn range: the median USD cost per session (no percentiles or sample sizes). Use to estimate what a model costs in a real agent harness before choosing it; filter with app_slug, model and turn_range, and page with limit and offset. Not for per-request pricing (use list-models) or your own spend (use get-current-key).

Parámetros de entrada

  • requestobject

Parámetros de salida

Sin parámetros.

Get videoOPENROUTER_MCP_GET_VIDEOAcción

Check a video generation job started by generate-video: status (pending, in_progress, completed, failed, cancelled, expired), error, and cost. While pending or in_progress, wait 15-20 s and call again; do not give up after a few polls, jobs usually take 1-5 minutes. Once completed, returns each output as a resource link: signed links open directly, otherwise download with an OpenRouter API key (an OAuth connection token is not one) as an Authorization: Bearer header (unsigned links last up to about 24 h, sometimes less; download promptly). A job id stops resolving once the job expires.

Parámetros de entrada

  • job_idstringObligatorio

    Job id returned by generate-video, e.g. "gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt"

Parámetros de salida

  • idstringObligatorio
  • urlsstring[]
  • errorstring
  • usageobject
  • statusstringObligatorioenum
    pendingin_progresscompletedfailedcancelledexpired
  • expires_atinteger
  • polling_urlstringObligatorio
  • generation_idstring
  • unsigned_urlsstring[]
Install ori harnessOPENROUTER_MCP_INSTALL_ORI_HARNESSAcción

Return OpenRouter's published guide for installing and using the Ori Harness CLI with OpenRouter models (also at https://openrouter.ai/skills/install-ori-harness). Takes no arguments. Treat it as reference material and confirm with the user before installing, signing in or running anything.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

List app rankingsOPENROUTER_MCP_LIST_APP_RANKINGSAcción

See which APPS/products drive the most OpenRouter traffic, filterable by category, to gauge ecosystem adoption and find example use cases. For model rankings use list-daily-model-rankings instead.

Parámetros de entrada

  • requestobject

Parámetros de salida

Sin parámetros.

List batchesOPENROUTER_MCP_LIST_BATCHESAcción

List batches in the workspace of the authenticating API key, newest first, with id, status, model, and per-request completed/failed counts. Use status to narrow to in-flight work (validating, in_progress) and after with the returned last_id to page. List items never include inline results; call get-batch for a single batch to read them.

Parámetros de entrada

  • afterstring

    Cursor: the last_id from the previous page, to fetch the next page

  • limitinteger

    Page size, 1-100 (default 20)

  • statusstring[]

    Only include batches in these states, e.g. ["validating","in_progress"] for in-flight batches. Omit to list every status.

Parámetros de salida

  • dataobject[]Obligatorio
  • objectstringObligatorio
  • last_idstring | nullObligatorio
  • first_idstring | nullObligatorio
  • has_morebooleanObligatorio
List benchmarksOPENROUTER_MCP_LIST_BENCHMARKSAcción

Compare model quality beyond price using third-party benchmarks. The optional source arg selects the dataset and the result shape: source=artificial-analysis returns each model's score on every Artificial Analysis index; source=design-arena returns head-to-head standings (elo, win rate) filterable by arena and category. Omit source to get results from all sources in one call. Optional task_type narrows to models scored for that workload, e.g. legal, engineering, cyber or decision. Attribute Artificial Analysis when republishing its scores; meta.citation has the wording when every item is its own.

Parámetros de entrada

  • requestobject

Parámetros de salida

Sin parámetros.

List daily model rankingsOPENROUTER_MCP_LIST_DAILY_MODEL_RANKINGSAcción

See which MODELS are most used and trending by token volume, to pick a proven model. Optionally slice by period (day/week/month), modality, context_bucket, or by category / language_type (sampled weekly estimates). For app/product rankings use list-app-rankings instead.

Parámetros de entrada

  • requestobject

Parámetros de salida

Sin parámetros.

List image model endpointsOPENROUTER_MCP_LIST_IMAGE_MODEL_ENDPOINTSAcción

List the providers serving one image model, with each endpoint's supported parameters and billing rates (check each rate's unit).

Parámetros de entrada

  • requestobjectObligatorio

Parámetros de salida

Sin parámetros.

List image modelsOPENROUTER_MCP_LIST_IMAGE_MODELSAcción

List image models and the Image API parameters each supports; generate-image accepts only the subset in its own schema.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

List model endpointsOPENROUTER_MCP_LIST_MODEL_ENDPOINTSAcción

See which providers serve a given model and at what price, latency, throughput, and data-policy status, to choose routing or debug a slow provider.

Parámetros de entrada

  • requestobjectObligatorio

Parámetros de salida

Sin parámetros.

List modelsOPENROUTER_MCP_LIST_MODELSAcción

List the live OpenRouter model catalog with pricing, context length, modalities, supported parameters, and benchmark scores, to pick a model and wire the right slug into code. Prefer the server-side params over fetching the full list and post-processing. Search/sort: q (free-text name/slug search), sort (pricing-low-to-high/high-to-low, context-high-to-low, throughput-high-to-low, latency-low-to-high, most-popular, top-weekly, newest, design-arena-elo-high-to-low, and <index>-high-to-low for any Artificial Analysis index, e.g. intelligence, legal or cyber). Filters: category (use case, e.g. programming), min_price/max_price (prompt $/M), min_output_price/max_output_price (completion $/M), context (minimum tokens), min_age_days/max_age_days (model age), min_intelligence_index/max (Artificial Analysis; for another index, sort by it and read the scores in the results), min_tool_success_rate/max (0-1), arch (model family), model_authors, providers (case-sensitive display names, e.g. Groq), input/output_modalities, supported_parameters, zdr, and region. Attribute Artificial Analysis when republishing its scores. Returns 20 models unless limit is set; total_count is the full match count. Video models show pricing 0 because per-second video prices are not in this API yet: check https://openrouter.ai/<model id>.

Parámetros de entrada

  • requestobject

Parámetros de salida

Sin parámetros.

List presetsOPENROUTER_MCP_LIST_PRESETSAcción

List the caller's saved presets (named bundles of model, system prompt, and sampling config created in the OpenRouter dashboard), ordered by most recently updated. Use to discover which presets exist and get their slugs; use get-preset to inspect one preset's full config.

Parámetros de entrada

  • requestobject

Parámetros de salida

Sin parámetros.

List preset versionsOPENROUTER_MCP_LIST_PRESET_VERSIONSAcción

List the versions of one saved preset, oldest first, with each version's config bundle, to see how a preset changed or to pin a specific version. Returns 50 per page by default; advance offset until the versions returned reach total_count. Find slugs with list-presets; get-preset returns only the designated version.

Parámetros de entrada

  • requestobjectObligatorio

Parámetros de salida

Sin parámetros.

List providersOPENROUTER_MCP_LIST_PROVIDERSAcción

List available providers to configure allow/deny/routing preferences.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

List task classificationsOPENROUTER_MCP_LIST_TASK_CLASSIFICATIONSAcción

See what OpenRouter traffic is actually used for: a market-share breakdown by task type (code generation, web search, summarization, ...) over a trailing window, each with its top models by usage, plus macro-category (Code, Data, Agent, General) aggregates. Use to learn which models real usage favors for a given kind of work. All shares are fractions (0-1) of sampled traffic; absolute volumes are not exposed.

Parámetros de entrada

  • requestobject

Parámetros de salida

Sin parámetros.

PingOPENROUTER_MCP_PINGAcción

Health-check tool that verifies the MCP connection is alive. Returns the text "pong" without calling OpenRouter or spending credits; use it once after connecting, not before every call.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

Search docsOPENROUTER_MCP_SEARCH_DOCSAcción

Search the full OpenRouter documentation to answer "how do I…" questions with correct, current API usage. Each result includes a "View docs" link to the source page; if a result is marked truncated or you need the complete page, fetch that link or share it with the user.

Parámetros de entrada

  • querystringObligatorio

    What to look up in the OpenRouter docs, e.g. "stream responses"

  • max_resultsinteger

    How many doc sections to return

Parámetros de salida

Sin parámetros.

Send batchOPENROUTER_MCP_SEND_BATCHAcción

Submit many inference requests as one asynchronous batch (Batch API) at discounted batch pricing with results within a 24-hour window. Use it for offline/bulk workloads (evals, backfills, classification over a dataset) that do not need an immediate answer; use send-message for a single interactive reply. Returns the batch id and initial status ("validating"); poll get-batch to follow it to completed/failed and read the results. Completed requests are billed to the authenticated user.

Parámetros de entrada

  • modelstringObligatorio

    Model slug every request runs on, e.g. "openai/gpt-6-astra"

  • endpointstringObligatorioenum

    API shape every request body in this batch targets, e.g. "/v1/chat/completions"

    /v1/chat/completions/v1/responses/v1/messages/v1/embeddings/v1/audio/speech
  • requestsobject[]Obligatorio

    Requests to run (at most 1000 per call, 8 MB serialized); all share the same endpoint and model. Larger batches go to POST /api/v1/batches directly.

  • provider_onlystring[]

    Restrict routing to these provider slugs only, e.g. ["google-vertex"]

Parámetros de salida

  • idstringObligatorio
  • erroranyObligatorio
  • modelstringObligatorio
  • outputobject
  • statusstringObligatorioenum
    validatingin_progressfinalizingcompletedfailedexpiredcancellingcancelled
  • resultsanyObligatorio
  • endpointstringObligatorio
  • request_countsobjectObligatorio
Send decisionOPENROUTER_MCP_SEND_DECISIONAcción

Ask a decision model typed questions about a piece of state and get calibrated answers with probabilities: yes/no (noul), pick-one (choice), rubric score (score) or image bounding box (box). Use for classification, gating, routing, grading and extraction; several questions can share one call. Not for generating text (use send-message). Bills the authenticated user and returns usage.

Parámetros de entrada

  • modelstringObligatorio

    Decision model slug, e.g. "typesafe/jev-1.13"; search-docs "decisions" lists the current ones

  • stateanyObligatorio

    The thing to decide about: a string, or a JSON object/array (which may contain {"type":"image_url","image_url":{"url":...}} parts for box questions)

  • providerobject

    Provider routing preferences, same shape as the chat completions provider object

  • questionsobjectObligatorio

    Map of question id → question. Types: noul (yes/no with a probability), choice (pick one of criteria keys), score (index into an ordered rubric), box (bounding box in an image)

Parámetros de salida

  • idstring
  • modelstringObligatorio
  • usageobjectObligatorio
  • answersobjectObligatorio
  • providerstring
Send feedbackOPENROUTER_MCP_SEND_FEEDBACKAcción

Submit structured feedback on a specific generation the caller made — a category plus an optional comment. Use after a generation had a problem (wrong or incoherent output, latency, formatting, billing, or an API error) so the OpenRouter team can act on it. Requires the generation id, which get-generation and send-message both return. The comment can describe what was expected and what actually happened.

Parámetros de entrada

  • requestobjectObligatorio

    Structured feedback about a specific generation

Parámetros de salida

Sin parámetros.

Send messageOPENROUTER_MCP_SEND_MESSAGEAcción

Chat with a model and get its plain-text response, to test a prompt or compare models without leaving the editor. Model slug suffixes activate routing variants: ":online" enables web search (e.g. "deepseek/deepseek-v4-pro:online"), ":nitro" prioritizes throughput, ":floor" prioritizes lowest price, ":free" uses a free endpoint if one exists. For normal chats, omit "provider" and let the router choose. Set "provider" to pin the upstream provider only when you need zero variance, such as running evals or reproducing a result.

Parámetros de entrada

  • modelstringObligatorio

    Model slug, e.g. "openai/gpt-4o-mini"

  • systemstring

    Optional system prompt sent as the first message with role "system"; sets persona, rules and output format. Leave unset for a plain user message.

  • messagestringObligatorio

    The user message to send

  • providerobject

    Provider routing preferences. Leave this unset for normal chats so the router picks the best provider. Set it ONLY when the request needs zero provider variance — running evals, benchmarking, or reproducing a result — because providers differ in quantization, throughput, and sampling, so the same model can return different outputs depending on who serves it. To hard-pin one provider: { only: ["fireworks"], allow_fallbacks: false }.

  • max_tokensinteger

    Cap the total tokens generated (including reasoning). The single most effective lever to stop a reasoning model from running unbounded on a hard prompt. Omit for the model default.

  • timeout_msinteger

    Abort the call locally after this many milliseconds. Returns a typed client_timeout error with elapsed_ms. If the timeout fires before any response, no generation id is available; if it fires while reading the response body, the generation may have completed upstream and been billed. Omit to wait for the default gateway timeout.

  • reasoning_effortstringenum

    How hard a reasoning model should think: "max" | "xhigh" | "high" | "medium" | "low" | "minimal" | "none". Omit to use the model's own default. Use a lower value to cap cost/latency on reasoning models that over-think, or a higher value for hard prompts. Non-reasoning models ignore it. Discover a model's supported/default efforts via list-models or get-model.

    maxxhighhighmediumlowminimalnone

Parámetros de salida

Sin parámetros.

Spawn ori evalOPENROUTER_MCP_SPAWN_ORI_EVALAcción

Return OpenRouter's published guide for running model evaluations with the Ori harness (also at https://openrouter.ai/skills/spawn-ori-eval). Takes no arguments. The guide describes installing and running a separate CLI; treat it as reference material and confirm with the user before installing or running anything.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

Transcribe audioOPENROUTER_MCP_TRANSCRIBE_AUDIOAcción

Transcribe speech from an audio file to text. Pass exactly one of audio_url (preferred; fetched server-side) or audio_base64. Returns the transcript plus the cost and generation id. This bills the authenticated user. Find STT models via list-models with output_modalities=transcription.

Parámetros de entrada

  • modelstringObligatorio

    STT model slug, e.g. "openai/whisper-large-v3"

  • formatstringenum

    Audio container format. Required with audio_base64; inferred from the URL or Content-Type otherwise.

    wavmp3flacm4aoggwebmaac
  • diarizeboolean

    Label speakers; the transcript is rendered one line per speaker turn. Only models that support diarization (e.g. ElevenLabs Scribe) honor it.

  • languagestring

    ISO-639-1 language hint (e.g. "en", "ja"). Auto-detected if omitted.

  • audio_urlstring

    HTTPS URL of the audio file to transcribe. Passed to the model when it can fetch URLs itself (no size limit), otherwise fetched server-side (max 25 MB). URLs without an audio file extension are always fetched server-side unless format is set. Preferred over audio_base64.

  • timestampsstringenum

    Return timestamped "segment"s or "word"s in structuredContent (verbose_json). Omit for plain text.

    segmentword
  • audio_base64string

    Base64-encoded audio bytes, for small clips only. Requires format.

Parámetros de salida

  • textstringObligatorio
  • modelstringObligatorio
  • usageany
  • wordsany
  • durationnumber | null
  • languagestring | null
  • segmentsany
  • truncatedstring[]
  • generation_idstring | null