GET
/v1/models/opencode/grok-4.7
Accept:
| rawId | grok-4.7 |
| displayName | Grok 4.7 |
| id | opencode-grok-4-7 |
| activity | chat |
| schemaEndpointId | inference/openai/v1/responses |
| releasedAt | 1789948800 — Sep 21, 2026 |
| firstSeenAt | 1789948800 — Sep 21, 2026 |
| lastSeenAt | 1795832366 — 9m 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} |
| knowledgeCutoff | "2026-05" |
| openWeights | false |
| providerMetadata | {"id":"grok-4.7","name":"Grok 4.7","description":"xAI's frontier model for long-running agents, coding, knowledge work, and visual projects","family":"grok","attachment":true,"reasoning":true,"reasoning_options":[{"type":"effort","values":["low","medium","high","xhigh"]}],"tool_call":true,"structured_output":true,"temperature":true,"knowledge":"2026-05","release_date":"2026-09-21","last_updated":"2026-09-21","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"limit":{"context":500000,"output":500000},"provider":{"npm":"@ai-sdk/openai","api":"https://opencode.ai/inference/openai/v1"},"cost":{"input":2,"output":6,"cache_read":0.5,"tiers":[{"input":4,"output":12,"cache_read":1,"tier":{"type":"context","size":200000}}],"context_over_200k":{"input":4,"output":12,"cache_read":1}},"canonical_model_id":"xai/grok-4.7"} |
| 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.7.limit.context Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| maxOutput | https://models.dev/api.json listing opencode.models.grok-4.7.limit.output Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| modalities | https://models.dev/api.json listing opencode.models.grok-4.7.modalities Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| reasoning | https://models.dev/api.json listing opencode.models.grok-4.7.reasoning_options Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| knowledgeCutoff | https://models.dev/api.json listing opencode.models.grok-4.7.knowledge Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| openWeights | https://models.dev/api.json listing opencode.models.grok-4.7.open_weights Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| schemaEndpointId | https://models.dev/api.json listing opencode.models.grok-4.7.provider Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| capabilities.tools | https://models.dev/api.json listing opencode.models.grok-4.7.tool_call Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| capabilities.reasoning | https://models.dev/api.json listing opencode.models.grok-4.7.reasoning Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| capabilities.structured_outputs | https://models.dev/api.json listing opencode.models.grok-4.7.structured_output Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| capabilities.vision | https://models.dev/api.json listing opencode.models.grok-4.7.modalities.input Source trace0e9a324d88b32ad6e14075997b9f1a0f71e367be0bebfb25b8404701ca03bd1f |
| pricing | Source linked above. docs-derived Source trace7c679ba1d370b4f455e84534094cfa25c1a6ce2b3c48479fdfbda654aaddda89 |
| 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.7","usage":{"input_tokens":1200,"output_tokens":400}}'