GET
/v1/models/opencode/claude-sonnet-4
Accept:
| rawId | claude-sonnet-4 |
| displayName | — |
| id | opencode-claude-sonnet-4 |
| activity | not declared by the provider |
| schemaEndpointId | no bound generation route |
| releasedAt | 1747872000 — May 22, 2025 |
| firstSeenAt | 1747872000 — May 22, 2025 |
| lastSeenAt | 1791741817 — 45d ago |
| pricing | not published by this provider’s list endpoint |
| contextWindow | 1000000 |
| maxOutput | 64000 |
| modalities | {"input":["text","image","pdf"],"output":["text"]} |
| capabilities | {"tools":true,"reasoning":true,"vision":true} |
| knowledgeCutoff | "2025-03-31" |
| openWeights | false |
| providerMetadata | {"attachment":true,"cost":{"cache_read":0.3,"cache_write":3.75,"context_over_200k":{"cache_read":0.6,"cache_write":7.5,"input":6,"output":22.5},"input":3,"output":15,"tiers":[{"cache_read":0.6,"cache_write":7.5,"input":6,"output":22.5,"tier":{"size":200000,"type":"context"}}]},"description":"Balanced Claude model for coding, analysis, agent workflows, and cost control","family":"claude-sonnet","id":"claude-sonnet-4","knowledge":"2025-03-31","last_updated":"2025-05-22","limit":{"context":1000000,"output":64000},"modalities":{"input":["text","image","pdf"],"output":["text"]},"name":"Claude Sonnet 4","open_weights":false,"provider":{"npm":"@ai-sdk/anthropic"},"reasoning":true,"reasoning_options":[{"min":1024,"type":"budget_tokens"}],"release_date":"2025-05-22","temperature":true,"tool_call":true} |
| weightsUrl · requestMap | not published by this provider’s list endpoint |
Endpoints & schemas
GET /v1/schemas/opencode →Use it
shell
$ curl https://modelschemas.com/v1/schemas/opencode/chat/inference/anthropic/v1/messages # request schema
$ curl -X POST https://modelschemas.com/v1/validate -d '{"provider":"opencode","endpointId":"inference/anthropic/v1/messages","payload":{…}}'
$ curl -X POST https://modelschemas.com/v1/estimate -d '{"provider":"opencode","model":"claude-sonnet-4","usage":{"input_tokens":1200,"output_tokens":400}}'