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.
概要
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.
入力
この App の呼び出しに必要なパラメータです。
- OpenRouter endpoint
endpoint任意string(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.選択可能な値例: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 件、「今すぐ実行」フォームで検索可)デフォルトmodels - Request body (JSON)
request_body任意stringJSON 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.デフォルト - Model ID
model任意stringOptional 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.デフォルト - API key
api_key任意stringYour 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.デフォルト - Model author
model_author任意stringOnly for the models/endpoints endpoint: the author part of the model slug, for example openai in openai/gpt-4o.デフォルト - Model slug
model_slug任意stringOnly for the models/endpoints endpoint: the model part of the slug, for example gpt-4o in openai/gpt-4o.デフォルト
出力
1 件のレコードのフィールド構成です。
- Result ID
idstringUnique identifier of this response record, built from the endpoint and a millisecond timestamp例models-1764000000000 - Endpoint
endpointstringThe OpenRouter endpoint that was called例models - HTTP status
http_statusintegerUpstream HTTP status code; 0 means the request failed before a response arrived例200 - Success
successstringtrue when the upstream returned a 2xx status and no transport error, otherwise false例true
料金
正常に返されたレコードの件数に応じて課金されます。失敗した実行には課金されません。
複数の課金イベントはそれぞれ独立して累計されます。詳細は各項目をご覧ください。失敗した実行には課金されません。
Credits を確認今すぐ実行
入力したパラメータで実際に 1 回実行し、料金に従って課金されます。
連携方法
MCP を使えば、Claude や Cursor などの AI クライアントからこの Data App を直接呼び出せます。
Octoparse Data Hub に接続済みですか?チャットでそのまま使えます
追加の設定は不要です。次の一文をコピーして AI に送り、続けてやりたいことを書いてください:
まだ接続していませんか?以下のいずれかの方法で一度設定すれば、以降はすべての Data App をそのまま使えます。
クライアント設定
YOUR_API_KEY をご自身の API Key に置き換えてください。あらゆるクライアント、CI、ヘッドレス環境で利用できます。API Key を取得 →
{
"mcpServers": {
"octoparse_datahub": {
"type": "http",
"url": "https://mcp-v2.octoparse.com",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}AI に設定を任せる
設定を手作業で編集したくない場合は、インストールプロンプトをコピーして任意の AI クライアントに貼り付けてください。AI が自分のやり方でセットアップを完了します(デフォルトではログインを案内し、API Key をチャットに送るよう求めることはありません)。
注意事項
適用範囲
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.
適さない用途
- 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
実行とキャンセル
この App は非同期で実行され、途中でキャンセルできます。キャンセル前に返された結果は保持され、通常どおり課金されます。
失敗時の処理
MCP で接続すると、AI が以下の説明を自動で読み取ります。API や SDK で接続する場合は、コードでこのとおりに処理してください。
- 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
よくある質問
料金はどのように課金されますか?
1 件あたり $0.01 / 件。失敗した実行は課金されません。料金を見る →
1 回でどれくらい収集できますか?制限はありますか?
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.注意事項を見る →
AI アシスタントやエージェントで使えますか?
はい。Octoparse Data Hub を一度接続すれば、チャットで名前を指定してすべての Data App を呼び出せます(bzy/openrouter-proxy も含みます)。連携方法を見る →