ES

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.

Desarrollador
Tasa de éxito de 30 días
—
Última actualización
2026-12-01

Descripción general

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.

Entrada

Parámetros necesarios para llamar a esta App.

  • OpenRouter endpointendpointOpcionalstring(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.
    Valores permitidosp. ej. 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 valores en total; se pueden buscar en el formulario de "Ejecutar ahora")Predeterminadomodels
  • Request body (JSON)request_bodyOpcionalstring
    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.
    Predeterminado
  • Model IDmodelOpcionalstring
    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.
    Predeterminado
  • API keyapi_keyOpcionalstring
    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.
    Predeterminado
  • Model authormodel_authorOpcionalstring
    Only for the models/endpoints endpoint: the author part of the model slug, for example openai in openai/gpt-4o.
    Predeterminado
  • Model slugmodel_slugOpcionalstring
    Only for the models/endpoints endpoint: the model part of the slug, for example gpt-4o in openai/gpt-4o.
    Predeterminado

Salida

Estructura de campos de un registro.

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

Precios

Per response record

Se cobra según el número de registros devueltos correctamente. Las ejecuciones fallidas no se cobran.

0,01 US$/ registro

Los distintos eventos de facturación se acumulan de forma independiente. Consulta cada elemento para más detalles. Las ejecuciones fallidas no se cobran.

Ver créditos

Ejecutar ahora

Ejecuta la App una vez de verdad con los parámetros que indiques; se factura según los Precios.

Parámetros de entrada

Integración

Con MCP puedes llamar a esta Data App directamente desde clientes de IA como Claude y Cursor.

¿Ya conectaste Octoparse Data Hub? Úsala directamente en el chat

No hace falta configurar nada. Copia esta frase en tu IA y continúa con lo que quieras hacer:

Usa la Data App "bzy/openrouter-proxy" para: describe aquí lo que quieres que haga esta Data App.

¿Aún no la conectaste? Configúrala una vez con cualquiera de los métodos siguientes y todas las Data Apps funcionarán a partir de entonces.

Configuración del cliente

Sustituye YOUR_API_KEY por tu propia API Key. Funciona en cualquier cliente, CI o entorno sin interfaz.Obtener API Key →

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

Deja que la IA lo configure por ti

¿No quieres editar configuraciones a mano? Copia el prompt de instalación y pégalo en cualquier cliente de IA: completará la configuración a su manera. (De forma predeterminada te guía para iniciar sesión y nunca te pide que envíes tu API Key en el chat.)

Notas

Alcance

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.

No adecuado para

  • 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

Ejecución y cancelación

Esta App se ejecuta de forma asíncrona y se puede cancelar a mitad; los resultados devueltos antes de cancelar se conservan y se facturan con normalidad.

Gestión de fallos

Si te conectas por MCP, la IA lee estas indicaciones automáticamente; si usas la API o el SDK, gestiónalas en tu código.

  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

¿Cómo se factura?

Por registro: 0,01 US$ / registro; las ejecuciones fallidas no se facturan.Ver Precios →

¿Cuánto puede recopilar una ejecución? ¿Hay límites?

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.Ver Notas →

¿Puedo usarla en un asistente de IA o un agente?

Sí. Conecta Octoparse Data Hub una vez y podrás llamar a cualquier Data App por su nombre en el chat, incluida bzy/openrouter-proxy.Ver Integración →

0,01 US$ / registro