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.
Übersicht
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 ID | Endpoint | HTTP status | Success | Total tokens | Cost (USD) |
|---|---|---|---|---|---|
| models-1764000000000 | models | 200 | Yes | 0 | 0 |
| chat/completions-1764000001234 | chat/completions | 200 | Yes | 36 | 0.00012 |
| chat/completions-1764000002345 | chat/completions | 429 | No | 0 | 0 |
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.
Eingabe
Parameter, die zum Aufruf dieser App erforderlich sind.
- OpenRouter endpoint
endpointOptionalstring(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.Zulässige Wertez. B. 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 Werte insgesamt; im „Jetzt starten“-Formular durchsuchbar)Standardmodels - Request body (JSON)
request_bodyOptionalstringJSON 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.Standard - Model ID
modelOptionalstringOptional 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.Standard - API key
api_keyOptionalstringYour 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.Standard - Model author
model_authorOptionalstringOnly for the models/endpoints endpoint: the author part of the model slug, for example openai in openai/gpt-4o.Standard - Model slug
model_slugOptionalstringOnly for the models/endpoints endpoint: the model part of the slug, for example gpt-4o in openai/gpt-4o.Standard
Ausgabe
Feldstruktur eines einzelnen Datensatzes.
- Result ID
idstringUnique identifier of this response record, built from the endpoint and a millisecond timestampBeispielmodels-1764000000000 - Endpoint
endpointstringThe OpenRouter endpoint that was calledBeispielmodels - HTTP status
http_statusintegerUpstream HTTP status code; 0 means the request failed before a response arrivedBeispiel200 - Success
successstringtrue when the upstream returned a 2xx status and no transport error, otherwise falseBeispieltrue
Preise
Berechnet nach der Anzahl der erfolgreich zurückgegebenen Datensätze. Fehlgeschlagene Läufe werden nicht berechnet.
Mehrere Abrechnungsereignisse werden unabhängig voneinander kumuliert. Details siehe jeweilige Position. Fehlgeschlagene Läufe werden nicht berechnet.
Credits ansehenJetzt starten
Führt die App einmal echt mit Ihren Parametern aus; abgerechnet gemäß Preise.
Integration
Mit MCP rufen Sie diese Data App direkt aus KI-Clients wie Claude und Cursor auf.
Schon mit Octoparse Data Hub verbunden? Direkt im Chat nutzen
Keine Einrichtung nötig. Kopieren Sie diesen Satz in Ihre KI und schreiben Sie dahinter, was Sie tun möchten:
Noch nicht verbunden? Richten Sie es einmal mit einer der folgenden Methoden ein, danach funktioniert jede Data App.
Client-Konfiguration
Ersetzen Sie YOUR_API_KEY durch Ihren eigenen API Key. Funktioniert in jedem Client, in CI und in Headless-Umgebungen.API Key erhalten →
{
"mcpServers": {
"octoparse_datahub": {
"type": "http",
"url": "https://mcp-v2.octoparse.com",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}Lassen Sie die KI die Einrichtung übernehmen
Sie möchten Konfigurationen nicht von Hand bearbeiten? Kopieren Sie den Installations-Prompt und fügen Sie ihn in einen beliebigen KI-Client ein — er schließt die Einrichtung auf seine eigene Weise ab. (Standardmäßig führt er Sie durch die Anmeldung und fordert Sie nie auf, Ihren API Key im Chat zu senden.)
Hinweise
Anwendungsbereich
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.
Nicht geeignet für
- 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
Ausführung und Abbruch
Diese App läuft asynchron und kann jederzeit abgebrochen werden; vor dem Abbruch zurückgegebene Ergebnisse bleiben erhalten und werden normal abgerechnet.
Fehlerbehandlung
Bei Anbindung über MCP liest die KI diese Hinweise automatisch; bei Nutzung von API oder SDK behandeln Sie sie bitte in Ihrem Code.
- 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
- 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
- 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
- 4If the network call fails before a response arrives, http_status is 0 and the error message is recorded; retry the run
FAQ
Wie wird abgerechnet?
Pro Datensatz: 0,01 $ / Datensatz; fehlgeschlagene Läufe werden nicht berechnet.Siehe Preise →
Wie viel kann ein Lauf erfassen? Gibt es Grenzen?
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.Siehe Hinweise →
Kann ich die App in einem KI-Assistenten oder Agenten nutzen?
Ja. Verbinden Sie Octoparse Data Hub einmal, dann können Sie im Chat jede Data App per Namen aufrufen, auch bzy/openrouter-proxy.Siehe Integration →