/v1/models/opencode/gpt-5.1-codex
| rawId | gpt-5.1-codex |
| displayName | GPT-5.1 Codex |
| id | opencode-gpt-5-1-codex |
| activity | chat |
| schemaEndpointId | inference/openai/v1/responses |
| releasedAt | 1762992000 — Nov 13, 2025 |
| firstSeenAt | 1762992000 — Nov 13, 2025 |
| lastSeenAt | 1794559749 — 3m ago |
| pricing | $1.07 / 1M input · $8.5 / 1M output → open calculator input_tokens (usage) · output_tokens (usage) · cache_read_tokens (usage) |
| contextWindow | 400000 |
| maxOutput | 128000 |
| modalities | {"input":["text","image"],"output":["text"]} |
| capabilities | {"tools":true,"reasoning":true,"structured_outputs":true,"vision":true} |
| knowledgeCutoff | "2024-09-30" |
| openWeights | false |
| providerMetadata | {"attachment":true,"canonical_model_id":"openai/gpt-5.1-codex","cost":{"cache_read":0.107,"input":1.07,"output":8.5},"description":"Coding-optimized GPT model for repository edits, reviews, and agentic software work","family":"gpt-codex","id":"gpt-5.1-codex","knowledge":"2024-09-30","last_updated":"2025-11-13","limit":{"context":400000,"input":272000,"output":128000},"modalities":{"input":["text","image"],"output":["text"]},"name":"GPT-5.1 Codex","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":"2025-11-13","structured_output":true,"temperature":false,"tool_call":true} |
| 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.gpt-5.1-codex.limit.context Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| maxOutput | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.limit.output Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| modalities | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.modalities Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| pricing | Source linked above. docs-derived Source trace7c679ba1d370b4f455e84534094cfa25c1a6ce2b3c48479fdfbda654aaddda89 |
| reasoning | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.reasoning_options Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| knowledgeCutoff | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.knowledge Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| openWeights | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.open_weights Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| schemaEndpointId | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.provider Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.tools | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.tool_call Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.reasoning | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.reasoning Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.structured_outputs | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.structured_output Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.vision | https://models.dev/api.json listing opencode.models.gpt-5.1-codex.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
$ 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":"gpt-5.1-codex","usage":{"input_tokens":1200,"output_tokens":400}}'