GET
/v1/models/opencode/grok-4.5
Accept:
| rawId | grok-4.5 |
| displayName | Grok 4.5 |
| id | opencode-grok-4-5 |
| activity | chat |
| schemaEndpointId | inference/openai/v1/responses |
| releasedAt | 1783468800 — Jul 8, 2026 |
| firstSeenAt | 1783468800 — Jul 8, 2026 |
| lastSeenAt | 1794561515 — 2m ago |
| pricing | $2 / 1M input · $6 / 1M output · base rate; long prompts re-quote → open calculator input_tokens (usage) · output_tokens (usage) · cache_read_tokens (usage) |
| contextWindow | 500000 |
| maxOutput | 500000 |
| modalities | {"input":["text","image"],"output":["text"]} |
| capabilities | {"tools":true,"reasoning":true,"structured_outputs":true,"vision":true} |
| openWeights | false |
| providerMetadata | {"attachment":true,"canonical_model_id":"xai/grok-4.5","cost":{"cache_read":0.3,"context_over_200k":{"cache_read":0.6,"input":4,"output":12},"input":2,"output":6,"tiers":[{"cache_read":0.6,"input":4,"output":12,"tier":{"size":200000,"type":"context"}}]},"description":"xAI's Grok model for chat, coding, agentic tools, and lower hallucination risk","family":"grok","id":"grok-4.5","last_updated":"2026-07-08","limit":{"context":500000,"output":500000},"modalities":{"input":["text","image"],"output":["text"]},"name":"Grok 4.5","open_weights":false,"provider":{"api":"https://opencode.ai/inference/openai/v1","npm":"@ai-sdk/openai"},"reasoning":true,"reasoning_options":[{"type":"effort","values":["low","medium","high"]}],"release_date":"2026-07-08","structured_output":true,"temperature":true,"tool_call":true} |
| knowledgeCutoff · weightsUrl · requestMap | not published by this provider’s list endpoint |
Endpoints & schemas
GET /v1/schemas/opencode →| endpoint | activity |
|---|---|
| inference/openai/v1/responses | chat |
endpoints matching this model — the provider has more, see /v1/schemas/opencode
Sources
| field | recorded source |
|---|---|
| contextWindow | https://models.dev/api.json listing opencode.models.grok-4.5.limit.context Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| maxOutput | https://models.dev/api.json listing opencode.models.grok-4.5.limit.output Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| modalities | https://models.dev/api.json listing opencode.models.grok-4.5.modalities Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| pricing | Source linked above. docs-derived Source trace7c679ba1d370b4f455e84534094cfa25c1a6ce2b3c48479fdfbda654aaddda89 |
| reasoning | https://models.dev/api.json listing opencode.models.grok-4.5.reasoning_options Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| openWeights | https://models.dev/api.json listing opencode.models.grok-4.5.open_weights Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| schemaEndpointId | https://models.dev/api.json listing opencode.models.grok-4.5.provider Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.tools | https://models.dev/api.json listing opencode.models.grok-4.5.tool_call Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.reasoning | https://models.dev/api.json listing opencode.models.grok-4.5.reasoning Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.structured_outputs | https://models.dev/api.json listing opencode.models.grok-4.5.structured_output Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.vision | https://models.dev/api.json listing opencode.models.grok-4.5.modalities.input Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| requestMap | https://opencode.ai/docs/zen Value unknown (null); not published in the checked source · checked 2026-10-09. |
| requestMapFields.replayReasoningContent | https://opencode.ai/docs/zen Value unknown (null); not published in the checked source · checked 2026-10-09. |
| activity | Source unknown — no source URL recorded. |
Use it
shell
$ curl https://modelschemas.com/v1/schemas/opencode/chat/inference/openai/v1/responses # request schema
$ curl -X POST https://modelschemas.com/v1/validate -d '{"provider":"opencode","endpointId":"inference/openai/v1/responses","payload":{…}}'
$ curl -X POST https://modelschemas.com/v1/estimate -d '{"provider":"opencode","model":"grok-4.5","usage":{"input_tokens":1200,"output_tokens":400}}'