GET

/v1/models/opencode/claude-sonnet-5

provider opencodestatus activefirst seen Jun 30, 2026last seen 11m ago
rawIdclaude-sonnet-5
displayNameClaude Sonnet 5
idopencode-claude-sonnet-5
activitychat
schemaEndpointIdinference/anthropic/v1/messages
releasedAt1782777600 — Jun 30, 2026
firstSeenAt1782777600 — Jun 30, 2026
lastSeenAt1795357190 — 11m ago
pricing
contextWindow1000000
maxOutput128000
modalities{"input":["text","image","pdf"],"output":["text"]}
capabilities{"tools":true,"reasoning":true,"vision":true}
knowledgeCutoff"2026-01-31"
openWeightsfalse
providerMetadata{"attachment":true,"canonical_model_id":"anthropic/claude-sonnet-5","cost":{"cache_read":0.2,"cache_write":2.5,"input":2,"output":10},"description":"Everyday Claude agent model for coding, planning, browsing, and general work","family":"claude-sonnet","id":"claude-sonnet-5","knowledge":"2026-01-31","last_updated":"2026-06-30","limit":{"context":1000000,"output":128000},"modalities":{"input":["text","image","pdf"],"output":["text"]},"name":"Claude Sonnet 5","open_weights":false,"provider":{"api":"https://opencode.ai/inference/anthropic/v1","npm":"@ai-sdk/anthropic"},"reasoning":true,"reasoning_options":[{"type":"effort","values":["low","medium","high","xhigh","max"]}],"release_date":"2026-06-30","temperature":false,"tool_call":true}
weightsUrl · requestMapnot published by this provider’s list endpoint

Endpoints & schemas

GET /v1/schemas/opencode →

endpoints matching this model — the provider has more, see /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-5","usage":{"input_tokens":1200,"output_tokens":400}}'