{"openapi": "3.0.3", "info": {"title": "Calder Inference inference preview", "version": "2026.11.26", "contact": {"name": "Workspace and API support", "email": "support@calderinference.com", "url": "https://calderinference.com/about#contact"}}, "servers": [{"url": "https://api.calderinference.com"}], "paths": {"/v1/models": {"get": {"summary": "List available model identifiers", "responses": {"200": {"description": "Successful response"}, "400": {"description": "Invalid request"}}}}, "/v1/chat/completions": {"post": {"summary": "Create a chat completion; JSON or SSE", "responses": {"200": {"description": "Successful response"}, "400": {"description": "Invalid request"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["messages"], "properties": {"model": {"type": "string", "default": "calder-chat-8b"}, "messages": {"type": "array", "minItems": 1, "maxItems": 128, "items": {"type": "object", "required": ["role"], "properties": {"role": {"type": "string", "enum": ["system", "developer", "user", "assistant", "tool"]}, "content": {"type": "string", "nullable": true}, "tool_call_id": {"type": "string"}, "tool_calls": {"type": "array", "items": {"type": "object"}}}}}, "stream": {"type": "boolean"}, "max_tokens": {"type": "integer", "minimum": 1, "maximum": 4096}, "tools": {"type": "array", "maxItems": 128, "items": {"type": "object"}}, "tool_choice": {"oneOf": [{"type": "string", "enum": ["auto", "required", "none"]}, {"type": "object"}]}}}}}}, "description": "Function planning supports get_weather, get_current_weather, list_projects and get_project with bounded schemas. Tools run in the client. Unsupported required tools return 400. Token accounting is approximate in this preview."}}}}