Skip to content

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/modelsThe models on OpenRouter's catalogue page, newest first, with context length, per-token prices and whether each is free.
GET/openrouter/modelEndpointsThe providers that serve one OpenRouter model, with their prices, context length, quantization and supported parameters.
GET/openrouter/providersThe companies and hosts that serve OpenRouter models, with model counts, headquarters, regions and policy links.

models

GET/v1/openrouter/models

The 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

query
string
Keep models whose id or name contains this text, in any case.
free
string
true keeps the free models, false the paid ones. Omit for both.
truefalse
limit
integer
Items per page, 1 to 100.
default 25e.g. 5
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
completionPricestring
contextLengthinteger (int64)
createdAtstring
descriptionstring
freeboolean
idstring
inputModalitiesstring[]
namestring
outputModalitiesstring[]
promptPricestring
urlstring
curl "https://api.hoshime.com/v1/openrouter/models?limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/modelEndpoints

The providers that serve one OpenRouter model, with their prices, context length, quantization and supported parameters.

scope social:read1 unitcached 30 min

Parameters

id
string
required
Model slug such as openai/gpt-4o, or its openrouter.ai URL.
e.g. openai/gpt-4o
tunnel
string
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.
proxy
string
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.
profileId
string
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
descriptionstring
endpointsModelProvider[]
completionPricestring
contextLengthinteger (int64)
maxCompletionTokensinteger (int64)
namestring
promptPricestring
providerNamestring
providerSlugstring
quantizationstring
supportedParametersstring[]
variantstring
idstring
namestring
urlstring
curl "https://api.hoshime.com/v1/openrouter/modelEndpoints?id=openai%2Fgpt-4o" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/providers

The companies and hosts that serve OpenRouter models, with model counts, headquarters, regions and policy links.

scope social:read1 unitcached 1 hpaginated

Parameters

limit
integer
Items per page, 1 to 200.
default 50e.g. 5
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
headquartersstring
modelCountinteger (int64)
namestring
privacyPolicyUrlstring
regionsstring[]
retainsPromptsboolean
slugstring
termsOfServiceUrlstring
trainsboolean
urlstring
curl "https://api.hoshime.com/v1/openrouter/providers?limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open