{"openapi":"3.1.0","info":{"title":"Hubrium OpenAI- and Anthropic-compatible API","version":"1.0.0","description":"OpenAI- and Anthropic-compatible access to configured Chinese AI models. The gateway remains the runtime source of truth for model availability and pricing."},"servers":[{"url":"https://api.hubrium.com/v1"}],"security":[{"bearerAuth":[]}],"paths":{"/models":{"get":{"operationId":"listModels","summary":"List models available to the current API key","responses":{"200":{"description":"Model list"}}}},"/chat/completions":{"post":{"operationId":"createChatCompletion","summary":"Create a chat completion","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}}},"responses":{"200":{"description":"Chat completion or server-sent event stream"}}}},"/responses":{"post":{"operationId":"createResponse","summary":"Create an agent-style response","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input"],"properties":{"model":{"type":"string","enum":["DeepSeek-V4.1-Flash","DeepSeek-V4-Flash","Qwen3.8-27B"]},"input":{}}}}}},"responses":{"200":{"description":"Response object or event stream"}}}},"/messages":{"post":{"operationId":"createMessage","summary":"Create an Anthropic Messages-compatible response","security":[{"apiKeyAuth":[]},{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","max_tokens","messages"],"properties":{"model":{"type":"string","enum":["DeepSeek-V4.1-Flash","DeepSeek-V4-Flash","Qwen3.8-27B"]},"max_tokens":{"type":"integer","minimum":1},"messages":{"type":"array","items":{"type":"object"}},"stream":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Anthropic-compatible message or event stream"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"ChatCompletionRequest":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string","enum":["DeepSeek-V4.1-Flash","DeepSeek-V4-Flash","Qwen3.8-27B"]},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{}}}},"stream":{"type":"boolean","default":false},"tools":{"type":"array","items":{"type":"object"}},"response_format":{"type":"object"}}}}}}