技
OpenRouter API
3 endpointsDeveloper & TechGlobalsocial:read
Model catalogue, per-provider prices and the providers page from openrouter.ai public pages.
View as Markdown| GET | /openrouter/models | The models on OpenRouter's catalogue page, newest first, with context length, per-token prices and whether each is free. |
| GET | /openrouter/modelEndpoints | The providers that serve one OpenRouter model, with their prices, context length, quantization and supported parameters. |
| GET | /openrouter/providers | The companies and hosts that serve OpenRouter models, with model counts, headquarters, regions and policy links. |
models
GET
/v1/openrouter/modelsThe models on OpenRouter's catalogue page, newest first, with context length, per-token prices and whether each is free.
scope social:read1 unitcached 30 minpaginated
Parameters
querystring | Keep models whose id or name contains this text, in any case. |
freestring | true keeps the free models, false the paid ones. Omit for both.truefalse |
limitinteger | Items per page, 1 to 100. default 25e.g. 5 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
author | string |
completionPrice | string |
contextLength | integer (int64) |
createdAt | string |
description | string |
free | boolean |
id | string |
inputModalities | string[] |
name | string |
outputModalities | string[] |
promptPrice | string |
url | string |
curl "https://api.hoshime.com/v1/openrouter/models?limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openrouter/models?limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openrouter/models?limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": "…", "completionPrice": "…", "contextLength": 0, "createdAt": "2026-11-06T09:41:00Z", "description": "…", "free": false, "id": "abc123", "inputModalities": [ "…" ], "name": "…", "outputModalities": [ "…" ], "promptPrice": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "models", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openrouter", "requestId": "req_2Xb9kQ…", "units": 1 } }
modelEndpoints
GET
/v1/openrouter/modelEndpointsThe providers that serve one OpenRouter model, with their prices, context length, quantization and supported parameters.
scope social:read1 unitcached 30 min
Parameters
idstring required | Model slug such as openai/gpt-4o, or its openrouter.ai URL. e.g. openai/gpt-4o |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
15 fields
description | string |
endpoints | ModelProvider[] |
completionPrice | string |
contextLength | integer (int64) |
maxCompletionTokens | integer (int64) |
name | string |
promptPrice | string |
providerName | string |
providerSlug | string |
quantization | string |
supportedParameters | string[] |
variant | string |
id | string |
name | string |
url | string |
curl "https://api.hoshime.com/v1/openrouter/modelEndpoints?id=openai%2Fgpt-4o" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openrouter/modelEndpoints?id=openai%2Fgpt-4o", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openrouter/modelEndpoints?id=openai%2Fgpt-4o", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "…", "endpoints": [ { "completionPrice": "…", "contextLength": 0, "maxCompletionTokens": 0, "name": "…", "promptPrice": "…", "providerName": "…", "providerSlug": "…", "quantization": "…", "supportedParameters": [], "variant": "…" } ], "id": "abc123", "name": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "modelEndpoints", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "openrouter", "requestId": "req_2Xb9kQ…", "units": 1 } }
providers
GET
/v1/openrouter/providersThe companies and hosts that serve OpenRouter models, with model counts, headquarters, regions and policy links.
scope social:read1 unitcached 1 hpaginated
Parameters
limitinteger | Items per page, 1 to 200. default 50e.g. 5 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
headquarters | string |
modelCount | integer (int64) |
name | string |
privacyPolicyUrl | string |
regions | string[] |
retainsPrompts | boolean |
slug | string |
termsOfServiceUrl | string |
trains | boolean |
url | string |
curl "https://api.hoshime.com/v1/openrouter/providers?limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openrouter/providers?limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openrouter/providers?limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "headquarters": "…", "modelCount": 1280, "name": "…", "privacyPolicyUrl": "https://…", "regions": [ "…" ], "retainsPrompts": false, "slug": "…", "termsOfServiceUrl": "https://…", "trains": false, "url": "https://…" } ], "meta": { "cached": false, "endpoint": "providers", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openrouter", "requestId": "req_2Xb9kQ…", "units": 1 } }