EN

OpenRouter API Proxy

Forwards requests to the OpenRouter API through an OpenAI-compatible interface and returns the raw response with parsed token usage and cost. Supports chat completions, messages, responses, embeddings, systemone, model catalogs, providers and generation details.

Developer
30-day success rate
—
Last updated
2026-12-01

Overview

This App gives any workflow direct access to a wide catalog of AI language, embedding and image models through a single compatible connection. Instead of opening accounts with many separate model providers, you make one call here, choose the model and the operation you want, and receive the model's answer together with the exact usage figures for that call.

It is built for teams that want AI calls to be part of a larger automated flow: a step that generates text, produces embeddings for search, or checks which models are available, and then stores the result alongside the rest of the run's data. Each call returns the complete answer in one result, including the raw model output and, for generative operations, the token counts and charge reported by the model service.

Data notes

Each result corresponds to one call you made. The raw answer is kept exactly as the model service returned it, so you can inspect the full content rather than a shortened summary. For generative operations, the token counts and charge are read from the same answer; for catalog lookups these figures are zero because no generation took place.

Catalog lookups such as the list of available models, model counts, providers and zero-data-retention options work without any credential. Generative and account operations need a credential supplied with that call; it is kept out of logs and the run view. The HTTP status and success flag together tell you whether a call succeeded: a non-success call still returns a result, with the service's own explanation in the raw answer and the error column.

No result is invented: every row reflects an actual call made during the run. Streaming delivery of tokens as they are produced is not covered — the complete answer arrives as one row.

What the results look like

Each result is one completed call to the model service.

Result IDEndpointHTTP statusSuccessTotal tokensCost (USD)
models-1764000000000models200Yes00
chat/completions-1764000001234chat/completions200Yes360.00012
chat/completions-1764000002345chat/completions429No00

Other fields include the raw response body, request ID, prompt and completion token counts, a parse indicator, the error message and the elapsed time.

Use cases

  • To generate text with a chosen model, use the "Endpoint" and "Request body (JSON)" fields to send a chat request, then read "Response body" for the answer and "Total tokens" plus "Cost (USD)" to track spend.
  • To discover which models are available before choosing one, run a catalog operation and inspect "Response body"; no credential is needed for this, and "Success" confirms the lookup worked.
  • To monitor reliability across a batch of calls, compare "HTTP status" and "Error" across results and use "Elapsed (ms)" to spot slow responses.

Input

Parameters required to call this App.

  • OpenRouter endpointendpointOptionalstring(enum)
    Which OpenRouter API endpoint to call. Catalog endpoints (models, models/count, providers, embeddings/models, endpoints/zdr, models/endpoints) are public and need no key. Inference endpoints (chat/completions, messages, responses, embeddings, systemone) and account endpoints (generation, models/user) require a key supplied in the api_key field.
    Allowed valuese.g. chat/completions (Chat completions (OpenAI format)) / messages (Messages (Anthropic format)) / responses (Responses (OpenAI Responses API)) / embeddings (Text embeddings) / systemone (System One (typed decisions)) / generation (Generation details) / models (List available models) / models/count (Model count) … (13 values in total; searchable in the Run now form)Defaultmodels
  • Request body (JSON)request_bodyOptionalstring
    JSON object sent as the POST body for inference endpoints, for example {"messages":[{"role":"user","content":"Hello"}],"temperature":0.7}. Ignored for GET endpoints. Leave empty for catalog endpoints such as models or providers.
    Default
  • Model IDmodelOptionalstring
    Optional model for POST endpoints. Added to the request body as the 'model' field only when the body does not already contain it, for example openrouter/auto or google/gemini-2.5-flash-image. Ignored by GET endpoints.
    Default
  • API keyapi_keyOptionalstring
    Your OpenRouter API key for inference and account endpoints. Required for chat/completions, messages, responses, embeddings, systemone, generation and models/user; not needed for public catalog endpoints. Kept out of logs and the run view.
    Default
  • Model authormodel_authorOptionalstring
    Only for the models/endpoints endpoint: the author part of the model slug, for example openai in openai/gpt-4o.
    Default
  • Model slugmodel_slugOptionalstring
    Only for the models/endpoints endpoint: the model part of the slug, for example gpt-4o in openai/gpt-4o.
    Default

Output

Field structure of a single record.

  • Result IDidstring
    Unique identifier of this response record, built from the endpoint and a millisecond timestamp
    Examplemodels-1764000000000
  • Endpointendpointstring
    The OpenRouter endpoint that was called
    Examplemodels
  • HTTP statushttp_statusinteger
    Upstream HTTP status code; 0 means the request failed before a response arrived
    Example200
  • Successsuccessstring
    true when the upstream returned a 2xx status and no transport error, otherwise false
    Exampletrue

Pricing

Per response record

Charged by the number of records successfully returned. Failed runs are not charged.

$0.01/ record

Multiple billing events accumulate independently. See each item for details. Failed runs are not charged.

View credits

Run now

Runs once for real with the parameters you enter, billed per Pricing.

Input parameters

Integration

With MCP you can call this Data App directly from AI clients such as Claude and Cursor.

Already connected to Octoparse Data Hub? Use it right in your chat

No setup needed. Copy this sentence to your AI and continue with what you want to do:

Use the "bzy/openrouter-proxy" Data App to: describe what you want this Data App to do.

Not connected yet? Set it up once with any method below, and every Data App works from then on.

Client config

Replace YOUR_API_KEY with your own API key; works with all clients, CI and headless environments.Get API key →

mcpServers config
{
  "mcpServers": {
    "octoparse_datahub": {
      "type": "http",
      "url": "https://mcp-v2.octoparse.com",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

Let AI set it up for you

Don't want to edit configs by hand? Copy the install prompt and paste it into any AI client. It will complete the setup its own way. (By default it guides you through signing in, and never asks you to send your API key in the chat.)

Notes

Scope

Forwards one request per run to the public OpenRouter API at openrouter.ai/api/v1. Public catalog endpoints need no credential; inference and account endpoints require an API key supplied per run through the sensitive api_key input. The raw upstream response is returned verbatim; token usage and cost are read from the response when present. No request or response is fabricated.

Not suitable for

  • You need a hosted model served directly by this platform — use the platform's own model invocation instead
  • You need streaming responses delivered token by token — this App returns the complete response in one record
  • You want to avoid external API charges — inference calls are billed by OpenRouter to the configured key
  • You need to call a provider other than OpenRouter or a private/local model endpoint

Running and canceling

This App runs asynchronously and can be canceled midway; results returned before you cancel are kept and billed as usual.

Failure handling

When connected via MCP, the AI reads these notes automatically; when using the API or SDK, handle them in your code.

  1. 1If an inference endpoint is selected without an api_key, the run fails with missing-credentials; supply the key in the sensitive api_key input and retry
  2. 2If the endpoint value is unknown or the request body is not valid JSON, the run fails with a clear reason; correct the input and retry
  3. 3If OpenRouter returns a 4xx or 5xx status, the status and raw response are still emitted in the record with success=false — inspect the response body for the upstream error and adjust the request
  4. 4If the network call fails before a response arrives, http_status is 0 and the error message is recorded; retry the run

FAQ

How is it billed?

Per record: $0.01 / record; failed runs are not billed.See Pricing →

How much can one run collect? Any limits?

Forwards one request per run to the public OpenRouter API at openrouter.ai/api/v1. Public catalog endpoints need no credential; inference and account endpoints require an API key supplied per run through the sensitive api_key input. The raw upstream response is returned verbatim; token usage and cost are read from the response when present. No request or response is fabricated.See Notes →

Can I use it in an AI assistant or agent?

Yes. Connect Octoparse Data Hub once and you can call every Data App by name in your chat, including bzy/openrouter-proxy.See Integration →

$0.01 / record