{ "routes": { "/api/model": [ { "id": "claude-sonnet", "modelID": "claude-sonnet", "providerID": "anthropic", "name": "Claude Sonnet", "status": "active", "enabled": true, "capabilities": { "input": [ "text", "image" ], "output": [ "text" ], "tools": true }, "cost": [ { "input": 3, "output": 15, "cache": { "read": 0, "write": 0 } } ], "limit": { "context": 200000, "output": 32000 }, "time": { "released": 0 }, "variants": [ { "id": "low" }, { "id": "high" } ] }, { "id": "claude-haiku", "modelID": "claude-haiku", "providerID": "anthropic", "name": "Claude Haiku", "status": "active", "enabled": true, "capabilities": { "input": [ "text", "image" ], "output": [ "text" ], "tools": true }, "cost": [ { "input": 1, "output": 5, "cache": { "read": 0, "write": 0 } } ], "limit": { "context": 200000, "output": 32000 }, "time": { "released": 0 }, "variants": [] }, { "id": "gpt-5", "modelID": "gpt-5", "providerID": "openai", "name": "GPT-5", "status": "active", "enabled": true, "capabilities": { "input": [ "text", "image" ], "output": [ "text" ], "tools": true }, "cost": [ { "input": 1.25, "output": 6.25, "cache": { "read": 0, "write": 0 } } ], "limit": { "context": 200000, "output": 32000 }, "time": { "released": 0 }, "variants": [] }, { "id": "gpt-4", "modelID": "gpt-4", "providerID": "openai", "name": "GPT-4", "status": "deprecated", "enabled": true, "capabilities": { "input": [ "text", "image" ], "output": [ "text" ], "tools": true }, "cost": [ { "input": 30, "output": 150, "cache": { "read": 0, "write": 0 } } ], "limit": { "context": 200000, "output": 32000 }, "time": { "released": 0 }, "variants": [] }, { "id": "gpt-5-mini", "modelID": "gpt-5-mini", "providerID": "openai", "name": "GPT-5 mini", "status": "active", "enabled": true, "capabilities": { "input": [ "text", "image" ], "output": [ "text" ], "tools": true }, "cost": [ { "input": 0.25, "output": 1.25, "cache": { "read": 0, "write": 0 } } ], "limit": { "context": 200000, "output": 32000 }, "time": { "released": 0 }, "variants": [] }, { "id": "big-pickle", "modelID": "big-pickle", "providerID": "opencode", "name": "Big Pickle", "status": "active", "enabled": true, "capabilities": { "input": [ "text", "image" ], "output": [ "text" ], "tools": true }, "cost": [ { "input": 0, "output": 0, "cache": { "read": 0, "write": 0 } } ], "limit": { "context": 200000, "output": 32000 }, "time": { "released": 0 }, "variants": [] }, { "id": "grok-code", "modelID": "grok-code", "providerID": "opencode", "name": "Grok Code", "status": "active", "enabled": true, "capabilities": { "input": [ "text", "image" ], "output": [ "text" ], "tools": true }, "cost": [ { "input": 2, "output": 10, "cache": { "read": 0, "write": 0 } } ], "limit": { "context": 2000000, "output": 32000 }, "time": { "released": 0 }, "variants": [] } ], "/api/provider": [ { "id": "anthropic", "name": "Anthropic", "activation": "auto", "package": "@ai-sdk/test" }, { "id": "openai", "name": "OpenAI", "activation": "auto", "package": "@ai-sdk/test" }, { "id": "opencode", "name": "OpenCode", "integrationID": "opencode", "activation": "auto", "package": "@ai-sdk/test" } ], "/api/agent": [ { "id": "build", "name": "build", "description": "The default agent", "mode": "primary", "hidden": false, "permissions": [], "request": { "settings": {}, "headers": {}, "body": {} }, "model": { "providerID": "anthropic", "id": "claude-sonnet", "variant": "high" } }, { "id": "plan", "name": "plan", "description": "Plans without editing", "mode": "primary", "hidden": false, "permissions": [], "request": { "settings": {}, "headers": {}, "body": {} } }, { "id": "general", "name": "general", "description": "A subagent", "mode": "subagent", "hidden": false, "permissions": [], "request": { "settings": {}, "headers": {}, "body": {} } } ], "/api/integration": [ { "id": "opencode", "name": "OpenCode Console", "methods": [ { "id": "device", "type": "oauth", "label": "Sign in with OpenCode" } ], "connections": [ { "type": "credential", "id": "cred_1", "label": "Acme", "method": "oauth" } ] } ], "/api/experimental/usage/limits": { "workspace": { "id": "wrk_1", "name": "Acme", "usageURL": "https://opencode.ai/console/wrk_1/usage" }, "budgets": [ { "id": "all", "limit": 50, "spent": 40, "scope": "combined", "per": "set", "coverage": "all", "models": [], "vendors": [], "picked": false, "shared": true, "resetsAt": 1894708800000 }, { "id": "sonnet", "limit": 10, "spent": 0, "scope": "each", "per": "model", "coverage": "models", "models": [ { "providerID": "anthropic", "modelID": "claude-sonnet", "name": "Claude Sonnet", "spent": 9.5 } ], "vendors": [], "picked": false, "shared": false, "resetsAt": 1894708800000 } ] } }, "preferences": { "recent": [ { "providerID": "anthropic", "modelID": "claude-haiku" } ], "favorite": [ { "providerID": "openai", "modelID": "gpt-5" } ], "variant": {} } }