GET
/v1/models/opencode/gpt-5.2
Accept:
| rawId | gpt-5.2 |
| displayName | GPT-5.2 |
| id | opencode-gpt-5-2 |
| activity | chat |
| schemaEndpointId | inference/openai/v1/responses |
| releasedAt | 1765411200 — Dec 11, 2025 |
| firstSeenAt | 1765411200 — Dec 11, 2025 |
| lastSeenAt | 1795386842 — 14m ago |
| pricing | $1.75 / 1M input · $14 / 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 | "2025-08-31" |
| openWeights | false |
| providerMetadata | {"id":"gpt-5.2","name":"GPT-5.2","description":"GPT model for general reasoning, writing, coding, and tool-assisted tasks","family":"gpt","attachment":true,"reasoning":true,"reasoning_options":[{"type":"effort","values":["none","low","medium","high","xhigh"]}],"tool_call":true,"structured_output":true,"temperature":true,"knowledge":"2025-08-31","release_date":"2025-12-11","last_updated":"2025-12-11","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"limit":{"context":400000,"input":272000,"output":128000},"provider":{"npm":"@ai-sdk/openai","api":"https://opencode.ai/inference/openai/v1"},"cost":{"input":1.75,"output":14,"cache_read":0.175},"canonical_model_id":"openai/gpt-5.2"} |
| 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.2.limit.context Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| maxOutput | https://models.dev/api.json listing opencode.models.gpt-5.2.limit.output Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| modalities | https://models.dev/api.json listing opencode.models.gpt-5.2.modalities Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| pricing | Source linked above. docs-derived Source trace94f8c32c0a7362524151b4cf447e51f655f2ddfe461a18d782f5990e9a0fcb51 |
| reasoning | https://models.dev/api.json listing opencode.models.gpt-5.2.reasoning_options Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| knowledgeCutoff | https://models.dev/api.json listing opencode.models.gpt-5.2.knowledge Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| openWeights | https://models.dev/api.json listing opencode.models.gpt-5.2.open_weights Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| schemaEndpointId | https://models.dev/api.json listing opencode.models.gpt-5.2.provider Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| capabilities.tools | https://models.dev/api.json listing opencode.models.gpt-5.2.tool_call Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| capabilities.reasoning | https://models.dev/api.json listing opencode.models.gpt-5.2.reasoning Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| capabilities.structured_outputs | https://models.dev/api.json listing opencode.models.gpt-5.2.structured_output Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| capabilities.vision | https://models.dev/api.json listing opencode.models.gpt-5.2.modalities.input Source traceeb90d6a80d8314e9be093bd5af9a13fd9cb926d959ffa9c9b5ac6963bf80ae74 |
| 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":"gpt-5.2","usage":{"input_tokens":1200,"output_tokens":400}}'