GET

/v1/models/openrouter/openrouter-openai-gpt-4

provider openrouterstatus activefirst seen May 28, 2023last seen 5m ago
rawIdopenai/gpt-4
displayNameOpenAI: GPT-4
idopenrouter-openai-gpt-4
activitychat
schemaEndpointIdchat/completions
releasedAt1685232000 — May 28, 2023
firstSeenAt1685232000 — May 28, 2023
lastSeenAt1794574839 — 5m ago
pricing
contextWindow8191
maxOutput4096
modalities{"input":["text"],"output":["text"]}
capabilities{"frequency_penalty":true,"logit_bias":true,"logprobs":true,"max_completion_tokens":true,"presence_penalty":true,"response_format":true,"seed":true,"stop":true,"temperature":true,"tool_choice":true,"tools":true,"top_logprobs":true,"top_p":true,"max_tokens":true,"reasoning_effort":true,"top_k":true,"structured_outputs":true}
knowledgeCutoff · openWeights · weightsUrl · requestMap · providerMetadatanot published by this provider’s list endpoint
endpointactivity
chat/completionschat

endpoints matching this model — the provider has more, see /v1/schemas/openrouter

Sources

fieldrecorded source
contextWindowSource unknown — no source URL recorded.

listing

maxOutputSource unknown — no source URL recorded.

listing

modalitiesSource unknown — no source URL recorded.

listing

pricingSource unknown — no source URL recorded.

listing

capabilities.frequency_penaltySource unknown — no source URL recorded.

listing

capabilities.logit_biasSource unknown — no source URL recorded.

listing

capabilities.logprobsSource unknown — no source URL recorded.

listing

capabilities.max_completion_tokensSource unknown — no source URL recorded.

listing

capabilities.presence_penaltySource unknown — no source URL recorded.

listing

capabilities.response_formatSource unknown — no source URL recorded.

listing

capabilities.seedSource unknown — no source URL recorded.

listing

capabilities.stopSource unknown — no source URL recorded.

listing

capabilities.temperatureSource unknown — no source URL recorded.

listing

capabilities.tool_choiceSource unknown — no source URL recorded.

listing

capabilities.toolsSource unknown — no source URL recorded.

listing

capabilities.top_logprobsSource unknown — no source URL recorded.

listing

capabilities.top_pSource unknown — no source URL recorded.

listing

capabilities.max_tokenshttps://openrouter.ai/openapi.json

upstream-spec

/properties/max_completion_tokens

Source trace
a698ac85ec9c7ae8bfa6add30d28e5f95c6b042ac547450e30ff6940ef6e5bd4
{
  "endpointId": "chat/completions",
  "fetchedAt": 1794202205
}
capabilities.reasoning_efforthttps://openrouter.ai/openapi.json

upstream-spec

/properties/reasoning/properties/effort

Source trace
a698ac85ec9c7ae8bfa6add30d28e5f95c6b042ac547450e30ff6940ef6e5bd4
{
  "endpointId": "chat/completions",
  "fetchedAt": 1794202205
}
capabilities.top_khttps://openrouter.ai/openapi.json

upstream-spec

/properties/top_k

Source trace
a698ac85ec9c7ae8bfa6add30d28e5f95c6b042ac547450e30ff6940ef6e5bd4
{
  "endpointId": "chat/completions",
  "fetchedAt": 1794202205
}
capabilities.structured_outputshttps://openrouter.ai/openapi.json

upstream-spec

/properties/response_format

Source trace
a698ac85ec9c7ae8bfa6add30d28e5f95c6b042ac547450e30ff6940ef6e5bd4
{
  "endpointId": "chat/completions",
  "fetchedAt": 1794202205
}
sameAshttps://openrouter.ai/api/v1/models

listing

data[].id

activitySource unknown — no source URL recorded.
reasoningSource unknown — no source URL recorded.
requestMapSource unknown — no source URL recorded.
schemaEndpointIdSource unknown — no source URL recorded.

Use it

shell
$ curl https://modelschemas.com/v1/schemas/openrouter/chat/chat/completions # request schema
$ curl -X POST https://modelschemas.com/v1/validate -d '{"provider":"openrouter","endpointId":"chat/completions","payload":{…}}'
$ curl -X POST https://modelschemas.com/v1/estimate -d '{"provider":"openrouter","model":"openai/gpt-4","usage":{"input_tokens":1200,"output_tokens":400}}'