{"openapi":"3.1.0","info":{"title":"Azinove AI API","version":"2.1.0","description":"OpenAI-compatible API for open-weight models on GPUs operated by Azinove.\n\nUse an official OpenAI SDK with the base URL https://api.ai.azinove.com/v1 and an Azinove API key (sk_azn_…).\n\nThe model id is the name of your offer, for example lazuli: one model per offer, upgraded by Azinove with notice under the same name.\n\nTokens are never limited. Each project runs as many requests at once as it has channels, the fastest speed tier first; further requests wait in the project’s queue, then get 429 channels_busy.\n\nUnknown parameters are refused with 400 unsupported_parameter; nothing is dropped silently.\n\nEco mode: when no organization holds channels on it, the GPU may sleep, and the first request after a sleep waits for it to start.\n\nPrompts and answers are never stored; only token counts are recorded, for your usage statistics."},"servers":[{"url":"https://api.ai.azinove.com"}],"security":[{"ApiKey":[]}],"tags":[{"name":"Models"},{"name":"Chat"},{"name":"Completions"},{"name":"Embeddings"},{"name":"Messages","description":"Anthropic-compatible (Claude Code, Anthropic SDKs)"},{"name":"Operations"}],"paths":{"/v1/models":{"get":{"operationId":"listModels","tags":["Models"],"summary":"List the model this key calls","description":"The organization’s offer under its name (for example lazuli), owned by azinove: one model per offer. The open-weight model behind it is not an id you can call; Azinove upgrades it with notice, under the same name. Empty when the offer has no model or the key may not use it.","responses":{"200":{"description":"The model of this key’s offer.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelList"},"example":{"object":"list","data":[{"object":"model","id":"lazuli","created":1790000000,"owned_by":"azinove"}]}}}},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"}}}},"/v1/chat/completions":{"post":{"operationId":"createChatCompletion","tags":["Chat"],"summary":"Create a chat completion","description":"OpenAI-compatible chat completions. Runs on one of the project’s channels (a channel is one request at a time), the fastest speed tier with one free first. When every channel is busy, the request waits in the project’s queue, first in first out, up to the queue time of the plan, then gets 429 channels_busy with Retry-After. Tokens are never limited; a project without channels gets 403 project_has_no_channels. May wait for the GPU to start (eco mode): use a client timeout of at least 300 seconds, prefer streaming, and see the x-azinove-cold-start header.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionsRequest"},"examples":{"chatBasic":{"summary":"A short answer","value":{"model":"lazuli","messages":[{"role":"system","content":"You answer in one short paragraph."},{"role":"user","content":"What does data sovereignty mean for a European company?"}],"max_tokens":256,"temperature":0.2}},"chatStreaming":{"summary":"Streaming with a final usage chunk","value":{"model":"lazuli","messages":[{"role":"user","content":"Write a haiku about Paris in autumn."}],"stream":true,"stream_options":{"include_usage":true}}},"chatTools":{"summary":"Tool calling","value":{"model":"lazuli","messages":[{"role":"user","content":"Is invoice F-2026-0042 paid?"}],"tools":[{"type":"function","function":{"name":"get_invoice_status","description":"Look up the payment status of an invoice.","parameters":{"type":"object","properties":{"invoice_id":{"type":"string","description":"Invoice number"}},"required":["invoice_id"]}}}],"tool_choice":"auto"}},"chatStructured":{"summary":"Structured output with a JSON Schema","value":{"model":"lazuli","messages":[{"role":"user","content":"Extract the company and its country: Azinove SAS, Paris, France."}],"response_format":{"type":"json_schema","json_schema":{"name":"company","strict":true,"schema":{"type":"object","properties":{"name":{"type":"string"},"country":{"type":"string"}},"required":["name","country"],"additionalProperties":false}}}}},"chatThinkingOff":{"summary":"Thinking turned off","value":{"model":"lazuli","messages":[{"role":"user","content":"Translate to French: good morning."}],"chat_template_kwargs":{"enable_thinking":false}}}}}}},"responses":{"200":{"description":"The completion, or a stream of chunks when `stream` is true.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-azinove-cold-start":{"$ref":"#/components/headers/x-azinove-cold-start"},"x-ratelimit-limit-requests":{"$ref":"#/components/headers/x-ratelimit-limit-requests"},"x-ratelimit-remaining-requests":{"$ref":"#/components/headers/x-ratelimit-remaining-requests"},"x-ratelimit-reset-requests":{"$ref":"#/components/headers/x-ratelimit-reset-requests"},"x-azinove-channels-limit":{"$ref":"#/components/headers/x-azinove-channels-limit"},"x-azinove-channels-in-use":{"$ref":"#/components/headers/x-azinove-channels-in-use"},"x-azinove-speed-tier":{"$ref":"#/components/headers/x-azinove-speed-tier"},"x-azinove-queued-ms":{"$ref":"#/components/headers/x-azinove-queued-ms"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletion"},"example":{"id":"chatcmpl-8f3a1c2e","object":"chat.completion","created":1790000000,"model":"lazuli","choices":[{"index":0,"message":{"role":"assistant","content":"It means the company keeps control over where its data is stored and processed, and which laws apply to it.","tool_calls":[]},"finish_reason":"stop","logprobs":null}],"usage":{"prompt_tokens":31,"completion_tokens":24,"total_tokens":55}}},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events: one `data: <chunk JSON>` line per chunk, then `data: [DONE]`. While the GPU starts (eco mode) the stream carries `: keep-alive` comment lines every 15 seconds; a stream that waits longer than that for a free channel of its project is answered at once and carries `: queued` comment lines every 15 seconds until a channel frees. If the GPU does not start in time, or no channel frees within the queue time, the last event is `data: {\"error\": …}` with code gpu_starting or channels_busy and the stream ends."},"x-azinove-event-schema":{"$ref":"#/components/schemas/ChatCompletionChunk"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"413":{"$ref":"#/components/responses/Error413"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}}}},"/v1/completions":{"post":{"operationId":"createCompletion","tags":["Completions"],"summary":"Create a text completion (legacy)","description":"One prompt string, one generation. Runs on one of the project’s channels (a channel is one request at a time), the fastest speed tier with one free first. When every channel is busy, the request waits in the project’s queue, first in first out, up to the queue time of the plan, then gets 429 channels_busy with Retry-After. Tokens are never limited; a project without channels gets 403 project_has_no_channels. May wait for the GPU to start (eco mode): use a client timeout of at least 300 seconds, prefer streaming, and see the x-azinove-cold-start header.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionsRequest"},"examples":{"completionsBasic":{"summary":"Legacy text completion","value":{"model":"lazuli","prompt":"The three primary colours are","max_tokens":32,"temperature":0}}}}}},"responses":{"200":{"description":"The completion, or a stream of chunks when `stream` is true.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-azinove-cold-start":{"$ref":"#/components/headers/x-azinove-cold-start"},"x-ratelimit-limit-requests":{"$ref":"#/components/headers/x-ratelimit-limit-requests"},"x-ratelimit-remaining-requests":{"$ref":"#/components/headers/x-ratelimit-remaining-requests"},"x-ratelimit-reset-requests":{"$ref":"#/components/headers/x-ratelimit-reset-requests"},"x-azinove-channels-limit":{"$ref":"#/components/headers/x-azinove-channels-limit"},"x-azinove-channels-in-use":{"$ref":"#/components/headers/x-azinove-channels-in-use"},"x-azinove-speed-tier":{"$ref":"#/components/headers/x-azinove-speed-tier"},"x-azinove-queued-ms":{"$ref":"#/components/headers/x-azinove-queued-ms"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Completion"},"example":{"id":"cmpl-2c4e6a80","object":"text_completion","created":1790000000,"model":"lazuli","choices":[{"index":0,"text":" red, yellow and blue.","finish_reason":"stop","logprobs":null}],"usage":{"prompt_tokens":6,"completion_tokens":7,"total_tokens":13}}},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events: one `data: <chunk JSON>` line per chunk, then `data: [DONE]`. While the GPU starts (eco mode) the stream carries `: keep-alive` comment lines every 15 seconds; a stream that waits longer than that for a free channel of its project is answered at once and carries `: queued` comment lines every 15 seconds until a channel frees. If the GPU does not start in time, or no channel frees within the queue time, the last event is `data: {\"error\": …}` with code gpu_starting or channels_busy and the stream ends."},"x-azinove-event-schema":{"$ref":"#/components/schemas/Completion"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"413":{"$ref":"#/components/responses/Error413"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}}}},"/v1/embeddings":{"post":{"operationId":"createEmbeddings","tags":["Embeddings"],"summary":"Create embeddings","description":"Available only when the key’s offer is an embedding model (listed by GET /v1/models); otherwise the request ends with 404. Runs on one of the project’s channels (a channel is one request at a time), the fastest speed tier with one free first. When every channel is busy, the request waits in the project’s queue, first in first out, up to the queue time of the plan, then gets 429 channels_busy with Retry-After. Tokens are never limited; a project without channels gets 403 project_has_no_channels. May wait for the GPU to start (eco mode): use a client timeout of at least 300 seconds, prefer streaming, and see the x-azinove-cold-start header.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingsRequest"},"examples":{"embeddingsBasic":{"summary":"Two texts to vectors","value":{"model":"your-embedding-offer","input":["Sovereign AI in Europe","Data hosted in France"]}}}}}},"responses":{"200":{"description":"One vector per input, in input order.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-azinove-cold-start":{"$ref":"#/components/headers/x-azinove-cold-start"},"x-ratelimit-limit-requests":{"$ref":"#/components/headers/x-ratelimit-limit-requests"},"x-ratelimit-remaining-requests":{"$ref":"#/components/headers/x-ratelimit-remaining-requests"},"x-ratelimit-reset-requests":{"$ref":"#/components/headers/x-ratelimit-reset-requests"},"x-azinove-channels-limit":{"$ref":"#/components/headers/x-azinove-channels-limit"},"x-azinove-channels-in-use":{"$ref":"#/components/headers/x-azinove-channels-in-use"},"x-azinove-speed-tier":{"$ref":"#/components/headers/x-azinove-speed-tier"},"x-azinove-queued-ms":{"$ref":"#/components/headers/x-azinove-queued-ms"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingsResponse"},"example":{"object":"list","data":[{"object":"embedding","index":0,"embedding":[0.0123,-0.0456,0.0789]},{"object":"embedding","index":1,"embedding":[0.0321,-0.0654,0.0987]}],"model":"your-embedding-offer","usage":{"prompt_tokens":9,"total_tokens":9}}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"413":{"$ref":"#/components/responses/Error413"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}}}},"/v1/messages":{"post":{"operationId":"createMessage","tags":["Messages"],"summary":"Create a message (Anthropic Messages API)","description":"Anthropic-compatible messages, for Claude Code and the Anthropic SDKs (base URL without /v1, the key as a Bearer token or in x-api-key). Same keys, channels, speed tiers and metering as chat completions. A Claude model name is served by the key’s offer. Unknown optional fields and cache_control are ignored; images are replaced by a text note for text-only models. Runs on one of the project’s channels (a channel is one request at a time), the fastest speed tier with one free first. When every channel is busy, the request waits in the project’s queue, first in first out, up to the queue time of the plan, then gets 429 channels_busy with Retry-After. Tokens are never limited; a project without channels gets 403 project_has_no_channels. May wait for the GPU to start (eco mode): use a client timeout of at least 300 seconds, prefer streaming, and see the x-azinove-cold-start header.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesRequest"}}}},"responses":{"200":{"description":"An Anthropic `message` object, or, when `stream` is true, the Anthropic event stream (message_start, content_block_start / delta / stop, message_delta, message_stop; errors as `event: error`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"x-azinove-cold-start":{"$ref":"#/components/headers/x-azinove-cold-start"},"x-ratelimit-limit-requests":{"$ref":"#/components/headers/x-ratelimit-limit-requests"},"x-ratelimit-remaining-requests":{"$ref":"#/components/headers/x-ratelimit-remaining-requests"},"x-ratelimit-reset-requests":{"$ref":"#/components/headers/x-ratelimit-reset-requests"},"x-azinove-channels-limit":{"$ref":"#/components/headers/x-azinove-channels-limit"},"x-azinove-channels-in-use":{"$ref":"#/components/headers/x-azinove-channels-in-use"},"x-azinove-speed-tier":{"$ref":"#/components/headers/x-azinove-speed-tier"},"x-azinove-queued-ms":{"$ref":"#/components/headers/x-azinove-queued-ms"}},"content":{"application/json":{"schema":{"type":"object","description":"An Anthropic Messages `message` object."}},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events: one `data: <chunk JSON>` line per chunk, then `data: [DONE]`. While the GPU starts (eco mode) the stream carries `: keep-alive` comment lines every 15 seconds; a stream that waits longer than that for a free channel of its project is answered at once and carries `: queued` comment lines every 15 seconds until a channel frees. If the GPU does not start in time, or no channel frees within the queue time, the last event is `data: {\"error\": …}` with code gpu_starting or channels_busy and the stream ends."}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"413":{"$ref":"#/components/responses/Error413"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}}}},"/v1/messages/count_tokens":{"post":{"operationId":"countMessageTokens","tags":["Messages"],"summary":"Estimate the input tokens of a message request","description":"Answered by the gateway itself (an estimate, the same the gateway uses to clamp max_tokens): it takes no channel and never starts the GPU.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesRequest"}}}},"responses":{"200":{"description":"The estimated input tokens.","content":{"application/json":{"schema":{"type":"object","properties":{"input_tokens":{"type":"integer","minimum":0}},"required":["input_tokens"]}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}}}},"/healthz":{"get":{"operationId":"health","tags":["Operations"],"summary":"Gateway liveness","description":"Answers when the gateway process is up. It says nothing about the GPU, whose state is never published.","security":[],"responses":{"200":{"description":"The gateway is running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"},"example":{"ok":true}}}}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"sk_azn_ followed by 49 letters and digits","description":"An Azinove API key, created in the console and shown once. Azinove keeps only a keyed hash of it."}},"schemas":{"ChatCompletionsRequest":{"type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":128,"description":"The model id listed by GET /v1/models for your key: the name of your offer, for example lazuli. Azinove serves one model per offer under that name."},"messages":{"minItems":1,"maxItems":4096,"type":"array","items":{"oneOf":[{"type":"object","properties":{"role":{"type":"string","const":"system"},"content":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false}}]},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]}},"required":["role","content"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","const":"developer"},"content":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false}}]},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]}},"required":["role","content"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","const":"user"},"content":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"file"},"file":{"type":"object","properties":{"file_data":{"description":"The file inline: a data URL (data:<type>;base64,…) or bare base64; at most 10 MB. Excel (.xlsx), Word (.docx), PowerPoint (.pptx), PDF with a text layer, CSV and other text files. `file_id` is not supported (no Files API).","type":"string"},"filename":{"description":"Shown to the model with the file’s text.","anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"file_id":{"description":"Refused: there is no Files API. Send the file inline in `file_data`.","type":"string","maxLength":256}},"additionalProperties":false}},"required":["type","file"],"additionalProperties":false}]}}]},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]}},"required":["role","content"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","const":"assistant"},"content":{"anyOf":[{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false}}]},{"type":"null"}]},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"tool_calls":{"anyOf":[{"maxItems":256,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"arguments":{"type":"string"}},"required":["name","arguments"],"additionalProperties":false}},"required":["id","type","function"],"additionalProperties":false}},{"type":"null"}]},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}]},"reasoning_content":{"anyOf":[{"type":"string"},{"type":"null"}]},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}]},"annotations":{"anyOf":[{"maxItems":1024,"type":"array","items":{}},{"type":"null"}]},"audio":{"type":"null"},"function_call":{"type":"null"}},"required":["role"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","const":"tool"},"content":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false}}]},"tool_call_id":{"type":"string","minLength":1,"maxLength":256},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]}},"required":["role","content","tool_call_id"],"additionalProperties":false}]},"description":"The conversation so far, oldest first."},"max_tokens":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Upper bound on generated tokens for this request. Values above the plan or model limit are lowered to that limit. Tokens are never limited over time."},{"type":"null"}]},"max_completion_tokens":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Upper bound on generated tokens for this request. Values above the plan or model limit are lowered to that limit. Tokens are never limited over time."},{"type":"null"}]},"temperature":{"anyOf":[{"type":"number","minimum":0,"maximum":2,"description":"Sampling temperature, 0 to 2."},{"type":"null"}]},"top_p":{"anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Nucleus sampling: greater than 0, at most 1."},{"type":"null"}]},"stop":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}],"description":"Up to 16 sequences (each at most 256 characters) where generation stops."},{"type":"null"}]},"seed":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Best-effort determinism for repeated requests."},{"type":"null"}]},"presence_penalty":{"anyOf":[{"type":"number","minimum":-2,"maximum":2,"description":"Presence penalty, -2 to 2."},{"type":"null"}]},"frequency_penalty":{"anyOf":[{"type":"number","minimum":-2,"maximum":2,"description":"Frequency penalty, -2 to 2."},{"type":"null"}]},"logit_bias":{"anyOf":[{"type":"object","propertyNames":{"type":"string","pattern":"^\\d{1,10}$"},"additionalProperties":{"type":"number","minimum":-100,"maximum":100},"description":"Token id → bias (-100 to 100), at most 300 entries.","maxProperties":300},{"type":"null"}]},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"top_logprobs":{"description":"0 to 5; requires logprobs: true.","anyOf":[{"type":"integer","minimum":0,"maximum":5},{"type":"null"}]},"response_format":{"description":"text, json_object or json_schema (schema at most 16 KB, 10 levels).","anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_schema"},"json_schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"schema":{"type":"object","description":"The response schema: a JSON object of at most 16 KB and 10 levels of nesting."},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}]}},"required":["name","schema"],"additionalProperties":false}},"required":["type","json_schema"],"additionalProperties":false}]},{"type":"null"}]},"stream":{"anyOf":[{"type":"boolean","description":"Stream the answer as server-sent events. Recommended behind proxies and during cold starts."},{"type":"null"}]},"stream_options":{"anyOf":[{"type":"object","properties":{"include_usage":{"description":"Send a last chunk with the token usage of the whole request (its `choices` is empty).","anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false,"description":"Only allowed when `stream` is true."},{"type":"null"}]},"tools":{"description":"Functions the model may call: at most 64, each parameters schema at most 32 KB.","anyOf":[{"maxItems":64,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"description":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}]},"parameters":{"type":"object","description":"The tool parameters schema: a JSON object of at most 32 KB and 32 levels of nesting."},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}},{"type":"null"}]},"tool_choice":{"description":"Requires `tools` (except \"none\").","anyOf":[{"anyOf":[{"type":"string","enum":["none","auto","required"]},{"type":"object","properties":{"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64}},"required":["name"],"additionalProperties":false}},"required":["type","function"],"additionalProperties":false}]},{"type":"null"}]},"parallel_tool_calls":{"description":"Requires `tools`.","anyOf":[{"type":"boolean"},{"type":"null"}]},"reasoning_effort":{"description":"Reasoning models only.","anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}]},"chat_template_kwargs":{"description":"Only { \"enable_thinking\": boolean }, for models with the thinking toggle.","anyOf":[{"type":"object","properties":{"enable_thinking":{"type":"boolean","description":"false turns the model’s thinking off for this request."}},"required":["enable_thinking"],"additionalProperties":false},{"type":"null"}]},"user":{"description":"Accepted and ignored.","anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"store":{"description":"Accepted and ignored: requests and answers are never stored.","anyOf":[{"type":"boolean"},{"type":"null"}]},"metadata":{"description":"Accepted and ignored.","anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"string","maxLength":512}},{"type":"null"}]},"service_tier":{"description":"Accepted and ignored.","anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"n":{"description":"Accepted when equal to 1, then ignored.","anyOf":[{"type":"number","const":1},{"type":"null"}]}},"required":["model","messages"],"additionalProperties":false},"CompletionsRequest":{"type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":128,"description":"The model id listed by GET /v1/models for your key: the name of your offer, for example lazuli. Azinove serves one model per offer under that name."},"prompt":{"type":"string","minLength":1,"description":"One prompt string (arrays and token ids are refused: one request, one generation)."},"max_tokens":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Upper bound on generated tokens for this request. Values above the plan or model limit are lowered to that limit. Tokens are never limited over time."},{"type":"null"}]},"temperature":{"anyOf":[{"type":"number","minimum":0,"maximum":2,"description":"Sampling temperature, 0 to 2."},{"type":"null"}]},"top_p":{"anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Nucleus sampling: greater than 0, at most 1."},{"type":"null"}]},"stop":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}],"description":"Up to 16 sequences (each at most 256 characters) where generation stops."},{"type":"null"}]},"seed":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Best-effort determinism for repeated requests."},{"type":"null"}]},"presence_penalty":{"anyOf":[{"type":"number","minimum":-2,"maximum":2,"description":"Presence penalty, -2 to 2."},{"type":"null"}]},"frequency_penalty":{"anyOf":[{"type":"number","minimum":-2,"maximum":2,"description":"Frequency penalty, -2 to 2."},{"type":"null"}]},"logit_bias":{"anyOf":[{"type":"object","propertyNames":{"type":"string","pattern":"^\\d{1,10}$"},"additionalProperties":{"type":"number","minimum":-100,"maximum":100},"description":"Token id → bias (-100 to 100), at most 300 entries.","maxProperties":300},{"type":"null"}]},"logprobs":{"description":"0 to 5.","anyOf":[{"type":"integer","minimum":0,"maximum":5},{"type":"null"}]},"stream":{"anyOf":[{"type":"boolean","description":"Stream the answer as server-sent events. Recommended behind proxies and during cold starts."},{"type":"null"}]},"stream_options":{"anyOf":[{"type":"object","properties":{"include_usage":{"description":"Send a last chunk with the token usage of the whole request (its `choices` is empty).","anyOf":[{"type":"boolean"},{"type":"null"}]}},"additionalProperties":false,"description":"Only allowed when `stream` is true."},{"type":"null"}]},"echo":{"description":"Only false.","anyOf":[{"type":"boolean","const":false},{"type":"null"}]},"user":{"description":"Accepted and ignored.","anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"store":{"description":"Accepted and ignored: requests and answers are never stored.","anyOf":[{"type":"boolean"},{"type":"null"}]},"metadata":{"description":"Accepted and ignored.","anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"string","maxLength":512}},{"type":"null"}]},"service_tier":{"description":"Accepted and ignored.","anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"n":{"description":"Accepted when equal to 1, then ignored.","anyOf":[{"type":"number","const":1},{"type":"null"}]}},"required":["model","prompt"],"additionalProperties":false},"EmbeddingsRequest":{"type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":128,"description":"The model id listed by GET /v1/models for your key: the name of your offer, for example lazuli. Azinove serves one model per offer under that name."},"input":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"maxItems":256,"type":"array","items":{"type":"string","minLength":1}}],"description":"One string or up to 256 strings (token ids are not accepted)."},"encoding_format":{"description":"float (default) or base64 (the Node SDK asks for base64).","anyOf":[{"type":"string","enum":["float","base64"]},{"type":"null"}]},"dimensions":{"description":"Shorter vectors, for models that support it.","anyOf":[{"type":"integer","minimum":1,"maximum":65536},{"type":"null"}]},"user":{"description":"Accepted and ignored.","anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"store":{"description":"Accepted and ignored: requests and answers are never stored.","anyOf":[{"type":"boolean"},{"type":"null"}]},"metadata":{"description":"Accepted and ignored.","anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"string","maxLength":512}},{"type":"null"}]},"service_tier":{"description":"Accepted and ignored.","anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"n":{"description":"Accepted when equal to 1, then ignored.","anyOf":[{"type":"number","const":1},{"type":"null"}]}},"required":["model","input"],"additionalProperties":false},"MessagesRequest":{"type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":128,"description":"The model id listed by GET /v1/models for your key: the name of your offer, for example lazuli. Azinove serves one model per offer under that name."},"messages":{"minItems":1,"maxItems":4096,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"image"},"source":{"type":"object","properties":{"type":{"type":"string","maxLength":32}},"required":["type"],"additionalProperties":{}}},"required":["type","source"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"document"},"source":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"base64"},"media_type":{"type":"string","maxLength":255},"data":{"type":"string"}},"required":["type","data"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"text"},"media_type":{"type":"string","maxLength":255},"data":{"type":"string"}},"required":["type","data"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"content"},"content":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}}}]}},"required":["type","content"],"additionalProperties":{}}]},"title":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"context":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}]}},"required":["type","source"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"tool_use"},"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","id","name","input"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"tool_result"},"tool_use_id":{"type":"string","minLength":1,"maxLength":256},"content":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"image"},"source":{"type":"object","properties":{"type":{"type":"string","maxLength":32}},"required":["type"],"additionalProperties":{}}},"required":["type","source"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"document"},"source":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"base64"},"media_type":{"type":"string","maxLength":255},"data":{"type":"string"}},"required":["type","data"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"text"},"media_type":{"type":"string","maxLength":255},"data":{"type":"string"}},"required":["type","data"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"content"},"content":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}}}]}},"required":["type","content"],"additionalProperties":{}}]},"title":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"context":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}]}},"required":["type","source"],"additionalProperties":{}}]}}]},"is_error":{"type":"boolean"}},"required":["type","tool_use_id"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","enum":["thinking","redacted_thinking"]}},"required":["type"],"additionalProperties":{}}]}}]}},"required":["role","content"],"additionalProperties":{}}},"system":{"anyOf":[{"type":"string"},{"maxItems":256,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}}}]},"max_tokens":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Upper bound on generated tokens for this request. Values above the plan or model limit are lowered to that limit. Tokens are never limited over time."},"temperature":{"type":"number","minimum":0,"maximum":1},"top_p":{"type":"number","exclusiveMinimum":0,"maximum":1},"stop_sequences":{"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"stream":{"type":"boolean"},"tools":{"description":"Tools the model may call: at most 256, each input schema at most 32 KB. Anthropic server tools (with a `type`) are ignored.","maxItems":256,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":{"type":"string","maxLength":65536},"input_schema":{"type":"object","description":"The tool input schema: a JSON object of at most 32 KB and 32 levels of nesting."},"type":{"type":"string","maxLength":64}},"required":["name"],"additionalProperties":{}}},"tool_choice":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["auto","any","none"]}},"required":["type"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","const":"tool"},"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"}},"required":["type","name"],"additionalProperties":{}}]},"thinking":{"description":"enabled (or adaptive) lets the model think before answering; disabled turns it off.","anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"enabled"},"budget_tokens":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["type"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","enum":["disabled","adaptive"]}},"required":["type"],"additionalProperties":{}}]}},"required":["model","messages","max_tokens"],"additionalProperties":{}},"ChatCompletion":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"chat.completion"},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"model":{"type":"string","description":"The offer name that answered (for example lazuli)."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"message":{"type":"object","properties":{"role":{"type":"string","const":"assistant"},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"tool_calls":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"function"},"function":{"type":"object","properties":{"name":{"type":"string"},"arguments":{"type":"string"}},"required":["name","arguments"]}},"required":["id","type","function"]}},{"type":"null"}]},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}]},"reasoning":{"description":"Reasoning text of reasoning models, separate from content.","anyOf":[{"type":"string"},{"type":"null"}]},"reasoning_content":{"description":"Older name of `reasoning`, sent by some vLLM versions.","deprecated":true,"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["role","content"]},"finish_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Usually stop, length or tool_calls; null while streaming."},"logprobs":{"anyOf":[{},{"type":"null"}]}},"required":["index","message","finish_reason"]}},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"completion_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"total_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"prompt_tokens_details":{"description":"Prompt tokens served from this project’s own prefix cache.","anyOf":[{"type":"object","properties":{"cached_tokens":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}}},{"type":"null"}]},"completion_tokens_details":{"description":"Reasoning tokens are part of completion_tokens (usage statistics; tokens are never limited).","anyOf":[{"type":"object","properties":{"reasoning_tokens":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}}},{"type":"null"}]}},"required":["prompt_tokens","completion_tokens","total_tokens"],"description":"Token counts of the request (what is metered)."}},"required":["id","object","created","model","choices","usage"]},"ChatCompletionChunk":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"chat.completion.chunk"},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"delta":{"type":"object","properties":{"role":{"anyOf":[{"type":"string","const":"assistant"},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"tool_calls":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"anyOf":[{"type":"string","const":"function"},{"type":"null"}]},"function":{"anyOf":[{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"arguments":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}},"required":["index"]}},{"type":"null"}]},"reasoning":{"description":"Reasoning text of reasoning models, separate from content.","anyOf":[{"type":"string"},{"type":"null"}]},"reasoning_content":{"description":"Older name of `reasoning`, sent by some vLLM versions.","deprecated":true,"anyOf":[{"type":"string"},{"type":"null"}]}}},"finish_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Usually stop, length or tool_calls; null while streaming."},"logprobs":{"anyOf":[{},{"type":"null"}]}},"required":["index","delta","finish_reason"]}},"usage":{"description":"Only with stream_options.include_usage: the last chunk has empty choices and the usage of the whole request.","anyOf":[{"type":"object","properties":{"prompt_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"completion_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"total_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"prompt_tokens_details":{"description":"Prompt tokens served from this project’s own prefix cache.","anyOf":[{"type":"object","properties":{"cached_tokens":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}}},{"type":"null"}]},"completion_tokens_details":{"description":"Reasoning tokens are part of completion_tokens (usage statistics; tokens are never limited).","anyOf":[{"type":"object","properties":{"reasoning_tokens":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}}},{"type":"null"}]}},"required":["prompt_tokens","completion_tokens","total_tokens"],"description":"Token counts of the request (what is metered)."},{"type":"null"}]}},"required":["id","object","created","model","choices"],"description":"One server-sent event of a streamed chat completion."},"Completion":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"text_completion"},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"text":{"type":"string"},"finish_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Usually stop, length or tool_calls; null while streaming."},"logprobs":{"anyOf":[{},{"type":"null"}]}},"required":["index","text","finish_reason"]}},"usage":{"anyOf":[{"type":"object","properties":{"prompt_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"completion_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"total_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"prompt_tokens_details":{"description":"Prompt tokens served from this project’s own prefix cache.","anyOf":[{"type":"object","properties":{"cached_tokens":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}}},{"type":"null"}]},"completion_tokens_details":{"description":"Reasoning tokens are part of completion_tokens (usage statistics; tokens are never limited).","anyOf":[{"type":"object","properties":{"reasoning_tokens":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}}},{"type":"null"}]}},"required":["prompt_tokens","completion_tokens","total_tokens"],"description":"Token counts of the request (what is metered)."},{"type":"null"}]}},"required":["id","object","created","model","choices"]},"EmbeddingsResponse":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"embedding"},"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"embedding":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"string"}],"description":"Floats, or a base64 string of little-endian float32 values with encoding_format base64."}},"required":["object","index","embedding"]}},"model":{"type":"string"},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"total_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["prompt_tokens","total_tokens"]}},"required":["object","data","model","usage"]},"ModelList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The name of the offer (for example lazuli): the id to send as `model`. It never changes when Azinove upgrades the model behind it."},"object":{"type":"string","const":"model"},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Unix time (seconds) since the current model serves the offer."},"owned_by":{"type":"string","description":"Always azinove."}},"required":["id","object","created","owned_by"]}}},"required":["object","data"],"description":"The model this key calls: its organization’s offer (one model per offer)."},"ErrorResponse":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable, English, never contains the model server’s own text."},"type":{"type":"string","description":"OpenAI error type (the SDKs map it to an error class)."},"code":{"type":"string","enum":["invalid_request_error","unsupported_parameter","context_length_exceeded","invalid_api_key","subscription_required","subscription_inactive","organization_suspended","project_archived","project_has_no_channels","not_found","model_not_found","request_too_large","rate_limit_exceeded","channels_busy","internal_error","upstream_error","gpu_starting","gpu_unavailable","maintenance"],"description":"Stable machine code; see the errors table."},"param":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The offending parameter as a path such as messages[0].content, or null."}},"required":["message","type","code","param"]}},"required":["error"],"description":"OpenAI-style error body."},"Health":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}},"headers":{"x-request-id":{"description":"Identifier of this request; quote it when you contact support.","schema":{"type":"string"}},"x-azinove-cold-start":{"description":"true when this request waited for the GPU to start (eco mode). The wait is free; the request is counted in your usage like any other.","schema":{"type":"string","enum":["true","false"]}},"retry-after":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}},"x-azinove-channels-limit":{"description":"Channels of this project: how many requests it can run at the same time (all speed tiers).","schema":{"type":"integer","minimum":0}},"x-azinove-channels-in-use":{"description":"Channels of this project busy when this request started, this one included.","schema":{"type":"integer","minimum":0}},"x-azinove-speed-tier":{"description":"The speed tier of the channel that served this request, for example standard or fast. Absent on a stream answered while it was still waiting for a channel.","schema":{"type":"string"}},"x-azinove-queued-ms":{"description":"Milliseconds this request waited for a free channel of its project (0 when one was free). Absent on a stream answered while it was still waiting for a channel.","schema":{"type":"integer","minimum":0}},"x-ratelimit-limit-requests":{"description":"Requests per minute allowed for this key, only when your plan sets this optional abuse guard.","schema":{"type":"integer","minimum":0}},"x-ratelimit-remaining-requests":{"description":"Requests left in the current window.","schema":{"type":"integer","minimum":0}},"x-ratelimit-reset-requests":{"description":"Time until the request window resets, for example 250ms, 1s or 6m0s.","schema":{"type":"string"}}},"responses":{"Error400":{"description":"invalid_request_error: The body is not valid JSON, or a parameter has a wrong type or value; `param` names it. unsupported_parameter: The request contains a parameter this API does not accept, or not for this model; `param` names it. context_length_exceeded: The request is longer than the model’s context window: the prompt (messages, attached files, tool definitions) plus the output tokens asked for (`max_tokens`) do not fit. The message gives the window size. A stream that had already started receives this as a final error event.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"invalid_request_error":{"summary":"The body is not valid JSON, or a parameter has a wrong type or value; `param` names it.","value":{"error":{"message":"'temperature' must be at most 2","type":"invalid_request_error","code":"invalid_request_error","param":"temperature"}}},"unsupported_parameter":{"summary":"The request contains a parameter this API does not accept, or not for this model; `param` names it.","value":{"error":{"message":"Unsupported parameter: 'functions'. See the supported parameters in the API documentation.","type":"invalid_request_error","code":"unsupported_parameter","param":"functions"}}},"context_length_exceeded":{"summary":"The request is longer than the model’s context window: the prompt (messages, attached files, tool definitions) plus the output tokens asked for (`max_tokens`) do not fit. The message gives the window size. A stream that had already started receives this as a final error event.","value":{"error":{"message":"The request is longer than the model’s context window of 65,536 tokens. Shorten the conversation or the attached files, or ask for fewer output tokens.","type":"invalid_request_error","code":"context_length_exceeded","param":null}}}}}},"x-azinove-error-codes":[{"code":"invalid_request_error","type":"invalid_request_error","meaning":"The body is not valid JSON, or a parameter has a wrong type or value; `param` names it.","whatToDo":"Fix the request. Sending it again unchanged returns the same error.","retry":"fix_request"},{"code":"unsupported_parameter","type":"invalid_request_error","meaning":"The request contains a parameter this API does not accept, or not for this model; `param` names it.","whatToDo":"Remove the parameter (see the parameters table). Unknown parameters are refused rather than dropped, so your code never relies on a setting that has no effect.","retry":"fix_request"},{"code":"context_length_exceeded","type":"invalid_request_error","meaning":"The request is longer than the model’s context window: the prompt (messages, attached files, tool definitions) plus the output tokens asked for (`max_tokens`) do not fit. The message gives the window size. A stream that had already started receives this as a final error event.","whatToDo":"Shorten the request: drop or summarize earlier messages, send only the useful parts of attached files, or ask for fewer output tokens. Sending it again unchanged returns the same error.","retry":"fix_request"}]},"Error401":{"description":"invalid_api_key: The Authorization header is missing or malformed, or the key is unknown, revoked, expired, or its owner no longer has access to the project.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"invalid_api_key":{"summary":"The Authorization header is missing or malformed, or the key is unknown, revoked, expired, or its owner no longer has access to the project.","value":{"error":{"message":"Invalid API key","type":"invalid_request_error","code":"invalid_api_key","param":null}}}}}},"x-azinove-error-codes":[{"code":"invalid_api_key","type":"invalid_request_error","meaning":"The Authorization header is missing or malformed, or the key is unknown, revoked, expired, or its owner no longer has access to the project.","whatToDo":"Send the header `Authorization: Bearer` followed by an active key. A key is shown only once: if it is lost, create a new one in the console and revoke the old one.","retry":"fix_request"}]},"Error403":{"description":"subscription_required: The organization has no subscription: it never subscribed, its free access ended, or its subscription was cancelled. subscription_inactive: The subscription is not active: for example a payment failed and the grace period has ended. organization_suspended: Azinove has suspended the organization. project_archived: The key belongs to an archived project. project_has_no_channels: The project has no channel yet: a channel is one request the project can run at a time, and a project needs at least one to call the API.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"subscription_required":{"summary":"The organization has no subscription: it never subscribed, its free access ended, or its subscription was cancelled.","value":{"error":{"message":"Subscription required","type":"permission_error","code":"subscription_required","param":null}}},"subscription_inactive":{"summary":"The subscription is not active: for example a payment failed and the grace period has ended.","value":{"error":{"message":"Subscription inactive","type":"permission_error","code":"subscription_inactive","param":null}}},"organization_suspended":{"summary":"Azinove has suspended the organization.","value":{"error":{"message":"Organization suspended","type":"permission_error","code":"organization_suspended","param":null}}},"project_archived":{"summary":"The key belongs to an archived project.","value":{"error":{"message":"Project archived","type":"permission_error","code":"project_archived","param":null}}},"project_has_no_channels":{"summary":"The project has no channel yet: a channel is one request the project can run at a time, and a project needs at least one to call the API.","value":{"error":{"message":"Project has no channels","type":"permission_error","code":"project_has_no_channels","param":null}}}}}},"x-azinove-error-codes":[{"code":"subscription_required","type":"permission_error","meaning":"The organization has no subscription: it never subscribed, its free access ended, or its subscription was cancelled.","whatToDo":"An organization admin subscribes in the console (Billing) or contacts Azinove.","retry":"contact"},{"code":"subscription_inactive","type":"permission_error","meaning":"The subscription is not active: for example a payment failed and the grace period has ended.","whatToDo":"An organization admin checks Billing in the console.","retry":"contact"},{"code":"organization_suspended","type":"permission_error","meaning":"Azinove has suspended the organization.","whatToDo":"An organization admin contacts Azinove. Retrying does not help.","retry":"contact"},{"code":"project_archived","type":"permission_error","meaning":"The key belongs to an archived project.","whatToDo":"An organization admin can unarchive the project in the console; an unarchived project needs new keys.","retry":"contact"},{"code":"project_has_no_channels","type":"permission_error","meaning":"The project has no channel yet: a channel is one request the project can run at a time, and a project needs at least one to call the API.","whatToDo":"An organization admin adds channels to the project in the console.","retry":"contact"}]},"Error404":{"description":"not_found: No endpoint exists at this method and path. model_not_found: The model is not the one of your offer: a key calls the model named after its organization’s offer, such as `lazuli`.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"not_found":{"summary":"No endpoint exists at this method and path.","value":{"error":{"message":"Not found","type":"invalid_request_error","code":"not_found","param":null}}},"model_not_found":{"summary":"The model is not the one of your offer: a key calls the model named after its organization’s offer, such as `lazuli`.","value":{"error":{"message":"The model does not exist or is not available to this key","type":"invalid_request_error","code":"model_not_found","param":"model"}}}}}},"x-azinove-error-codes":[{"code":"not_found","type":"invalid_request_error","meaning":"No endpoint exists at this method and path.","whatToDo":"Use one of the documented endpoints and check that the base URL ends with /v1.","retry":"fix_request"},{"code":"model_not_found","type":"invalid_request_error","meaning":"The model is not the one of your offer: a key calls the model named after its organization’s offer, such as `lazuli`.","whatToDo":"Use the id listed by GET /v1/models for your key.","retry":"fix_request"}]},"Error413":{"description":"request_too_large: The body is larger than 2 MB (8 MB when a vision model is enabled).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"request_too_large":{"summary":"The body is larger than 2 MB (8 MB when a vision model is enabled).","value":{"error":{"message":"Request too large","type":"invalid_request_error","code":"request_too_large","param":null}}}}}},"x-azinove-error-codes":[{"code":"request_too_large","type":"invalid_request_error","meaning":"The body is larger than 2 MB (8 MB when a vision model is enabled).","whatToDo":"Send less data per request, for example split long inputs.","retry":"fix_request"}]},"Error429":{"description":"rate_limit_exceeded: Too many requests per minute for this key (an optional guard, off unless your plan sets one), too many invalid requests from this key within a minute, or too many failed authentications from your IP address. channels_busy: Every channel of this project stayed busy for the whole queue wait: the project runs as many requests at once as it has channels, and further requests wait in a queue first. A stream that had already started receives this as a final error event.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"retry-after":{"$ref":"#/components/headers/retry-after"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limit_exceeded":{"summary":"Too many requests per minute for this key (an optional guard, off unless your plan sets one), too many invalid requests from this key within a minute, or too many failed authentications from your IP address.","value":{"error":{"message":"Rate limit exceeded","type":"rate_limit_error","code":"rate_limit_exceeded","param":null}}},"channels_busy":{"summary":"Every channel of this project stayed busy for the whole queue wait: the project runs as many requests at once as it has channels, and further requests wait in a queue first. A stream that had already started receives this as a final error event.","value":{"error":{"message":"Channels busy","type":"rate_limit_error","code":"channels_busy","param":null}}}}}},"x-azinove-error-codes":[{"code":"rate_limit_exceeded","type":"rate_limit_error","meaning":"Too many requests per minute for this key (an optional guard, off unless your plan sets one), too many invalid requests from this key within a minute, or too many failed authentications from your IP address.","whatToDo":"Wait for the Retry-After header (or the x-ratelimit-reset-requests header), then retry with exponential backoff; fix invalid requests first.","retry":"retry_after"},{"code":"channels_busy","type":"rate_limit_error","meaning":"Every channel of this project stayed busy for the whole queue wait: the project runs as many requests at once as it has channels, and further requests wait in a queue first. A stream that had already started receives this as a final error event.","whatToDo":"Retry after the Retry-After header. To run more requests at once, an organization admin adds channels to the project in the console. Tokens are never limited.","retry":"retry_after"}]},"Error500":{"description":"internal_error: An unexpected error happened in the gateway.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"internal_error":{"summary":"An unexpected error happened in the gateway.","value":{"error":{"message":"Internal error","type":"server_error","code":"internal_error","param":null}}}}}},"x-azinove-error-codes":[{"code":"internal_error","type":"server_error","meaning":"An unexpected error happened in the gateway.","whatToDo":"Retry with exponential backoff. If it persists, contact support with the x-request-id header of the response.","retry":"backoff"}]},"Error502":{"description":"upstream_error: The model server returned an error or an invalid response.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"upstream_error":{"summary":"The model server returned an error or an invalid response.","value":{"error":{"message":"Upstream error","type":"server_error","code":"upstream_error","param":null}}}}}},"x-azinove-error-codes":[{"code":"upstream_error","type":"server_error","meaning":"The model server returned an error or an invalid response.","whatToDo":"Retry with exponential backoff; quote the x-request-id header when you report it.","retry":"backoff"}]},"Error503":{"description":"gpu_starting: The GPU was asleep (eco mode) and did not finish starting within the wait time. Streaming requests receive this as a final error event instead of a status code. gpu_unavailable: The GPU could not be started (for example the provider had no capacity) or is in an error state. maintenance: The service is in planned maintenance.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"},"retry-after":{"$ref":"#/components/headers/retry-after"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"gpu_starting":{"summary":"The GPU was asleep (eco mode) and did not finish starting within the wait time. Streaming requests receive this as a final error event instead of a status code.","value":{"error":{"message":"The GPU is starting (eco mode); retry after the Retry-After delay","type":"service_unavailable","code":"gpu_starting","param":null}}},"gpu_unavailable":{"summary":"The GPU could not be started (for example the provider had no capacity) or is in an error state.","value":{"error":{"message":"Gpu unavailable","type":"service_unavailable","code":"gpu_unavailable","param":null}}},"maintenance":{"summary":"The service is in planned maintenance.","value":{"error":{"message":"Maintenance","type":"service_unavailable","code":"maintenance","param":null}}}}}},"x-azinove-error-codes":[{"code":"gpu_starting","type":"service_unavailable","meaning":"The GPU was asleep (eco mode) and did not finish starting within the wait time. Streaming requests receive this as a final error event instead of a status code.","whatToDo":"Retry after the Retry-After header: the GPU keeps starting in the background. Set a client timeout of at least 300 seconds and prefer streaming.","retry":"retry_after"},{"code":"gpu_unavailable","type":"service_unavailable","meaning":"The GPU could not be started (for example the provider had no capacity) or is in an error state.","whatToDo":"Retry later with exponential backoff. Azinove’s operators see the failure on their dashboard.","retry":"backoff"},{"code":"maintenance","type":"service_unavailable","meaning":"The service is in planned maintenance.","whatToDo":"Retry later with exponential backoff.","retry":"backoff"}]}}},"x-azinove-sdk-base-url":"https://api.ai.azinove.com/v1","x-azinove-parameters":{"forwarded":{"chat":["model","messages","max_tokens","max_completion_tokens","temperature","top_p","stop","seed","presence_penalty","frequency_penalty","logit_bias","logprobs","top_logprobs","tools","tool_choice","parallel_tool_calls","response_format","stream","stream_options","reasoning_effort","chat_template_kwargs"],"completions":["model","prompt","max_tokens","temperature","top_p","stop","seed","presence_penalty","frequency_penalty","logit_bias","logprobs","stream","stream_options","echo"],"embeddings":["model","input","encoding_format","dimensions"],"messages":["model","messages","system","max_tokens","temperature","top_p","stop_sequences","stream","tools","tool_choice","thinking"]},"capabilityGated":{"chat":{"tools":"tools","tool_choice":"tools","parallel_tool_calls":"tools","reasoning_effort":"reasoning","chat_template_kwargs":"thinking_toggle"},"completions":{},"embeddings":{"dimensions":"matryoshka"},"messages":{"tools":"tools","tool_choice":"tools","thinking":"reasoning"}},"ignored":["user","store","metadata","service_tier","n"],"rejected":{"chat":{"functions":"deprecated","function_call":"deprecated","modalities":"not_available","audio":"not_available","prediction":"not_available","web_search_options":"not_available","verbosity":"not_available","prompt_cache_key":"not_available","safety_identifier":"not_available","request_id":"tenant_isolation","priority":"tenant_isolation","cache_salt":"tenant_isolation","chat_template":"tenant_isolation","mm_processor_kwargs":"tenant_isolation","media_io_kwargs":"tenant_isolation","kv_transfer_params":"tenant_isolation","vllm_xargs":"tenant_isolation","logits_processors":"tenant_isolation","structured_outputs":"tenant_isolation","guided_json":"tenant_isolation","guided_regex":"tenant_isolation","guided_choice":"tenant_isolation","guided_grammar":"tenant_isolation","documents":"tenant_isolation","prompt_logprobs":"cost_control","use_beam_search":"cost_control","best_of":"cost_control","min_tokens":"cost_control","ignore_eos":"cost_control","thinking_token_budget":"not_in_v1","top_k":"not_in_v1","min_p":"not_in_v1","repetition_penalty":"not_in_v1","length_penalty":"not_in_v1","stop_token_ids":"not_in_v1","bad_words":"not_in_v1","allowed_token_ids":"not_in_v1","include_stop_str_in_output":"not_in_v1","skip_special_tokens":"not_in_v1","spaces_between_special_tokens":"not_in_v1","truncate_prompt_tokens":"not_in_v1","add_generation_prompt":"not_in_v1","continue_final_message":"not_in_v1","add_special_tokens":"not_in_v1","return_tokens_as_token_ids":"not_in_v1","echo":"not_in_v1"},"completions":{"suffix":"not_available","request_id":"tenant_isolation","priority":"tenant_isolation","cache_salt":"tenant_isolation","prompt_embeds":"tenant_isolation","kv_transfer_params":"tenant_isolation","vllm_xargs":"tenant_isolation","logits_processors":"tenant_isolation","structured_outputs":"tenant_isolation","guided_json":"tenant_isolation","guided_regex":"tenant_isolation","guided_choice":"tenant_isolation","guided_grammar":"tenant_isolation","response_format":"not_in_v1","best_of":"cost_control","use_beam_search":"cost_control","prompt_logprobs":"cost_control","min_tokens":"cost_control","ignore_eos":"cost_control","top_k":"not_in_v1","min_p":"not_in_v1","repetition_penalty":"not_in_v1","length_penalty":"not_in_v1","stop_token_ids":"not_in_v1","bad_words":"not_in_v1","allowed_token_ids":"not_in_v1","include_stop_str_in_output":"not_in_v1","skip_special_tokens":"not_in_v1","spaces_between_special_tokens":"not_in_v1","truncate_prompt_tokens":"not_in_v1","add_special_tokens":"not_in_v1","return_tokens_as_token_ids":"not_in_v1"},"embeddings":{"request_id":"tenant_isolation","priority":"tenant_isolation","truncate_prompt_tokens":"not_in_v1","add_special_tokens":"not_in_v1","normalize":"not_in_v1","embed_dtype":"not_in_v1","mm_processor_kwargs":"tenant_isolation"},"messages":{"request_id":"tenant_isolation","priority":"tenant_isolation","cache_salt":"tenant_isolation","chat_template":"tenant_isolation","chat_template_kwargs":"tenant_isolation","kv_transfer_params":"tenant_isolation","vllm_xargs":"tenant_isolation","logits_processors":"tenant_isolation","structured_outputs":"tenant_isolation","guided_json":"tenant_isolation","mcp_servers":"not_available","container":"not_available","top_k":"not_in_v1"}}},"x-azinove-limits":{"bodyBytes":2097152,"bodyBytesWithVision":8388608,"logitBiasEntries":300,"topLogprobs":5,"completionLogprobs":5,"tools":64,"toolSchemaBytes":32768,"responseFormatSchemaBytes":16384,"responseFormatSchemaDepth":10,"embeddingInputs":256,"toolSchemaDepth":32,"toolDescriptionChars":8192,"messagesToolDescriptionChars":65536,"messagesTools":256,"messages":4096,"contentPartsPerMessage":256,"stopSequences":16,"stopSequenceChars":256,"imagesPerRequest":4,"imageBytes":5242880,"imagePixels":16777216,"imageSide":8192,"filesPerRequest":8,"fileBytes":10485760,"fileTextChars":2000000,"bodyBytesWithAttachments":25165824,"modelIdChars":128,"messageNameChars":64,"toolCallIdChars":256,"userChars":256,"metadataEntries":16,"metadataKeyChars":64,"metadataValueChars":512,"grammarPatternChars":256,"grammarRepetition":1000,"grammarRefs":64,"bodyJsonNodes":250000,"bodyObjectKeys":2048},"x-azinove-channels":{"tokenLimits":false,"queue":"fifo_per_project","queuedComment":": queued","keepAliveSeconds":15,"busyError":"channels_busy","noChannelsError":"project_has_no_channels","keyAbuse":{"refusedRequestsPerMinute":60}},"x-azinove-errors":[{"code":"invalid_request_error","status":400,"type":"invalid_request_error","meaning":"The body is not valid JSON, or a parameter has a wrong type or value; `param` names it.","whatToDo":"Fix the request. Sending it again unchanged returns the same error.","retry":"fix_request","retryAfterHeader":false},{"code":"unsupported_parameter","status":400,"type":"invalid_request_error","meaning":"The request contains a parameter this API does not accept, or not for this model; `param` names it.","whatToDo":"Remove the parameter (see the parameters table). Unknown parameters are refused rather than dropped, so your code never relies on a setting that has no effect.","retry":"fix_request","retryAfterHeader":false},{"code":"context_length_exceeded","status":400,"type":"invalid_request_error","meaning":"The request is longer than the model’s context window: the prompt (messages, attached files, tool definitions) plus the output tokens asked for (`max_tokens`) do not fit. The message gives the window size. A stream that had already started receives this as a final error event.","whatToDo":"Shorten the request: drop or summarize earlier messages, send only the useful parts of attached files, or ask for fewer output tokens. Sending it again unchanged returns the same error.","retry":"fix_request","retryAfterHeader":false},{"code":"invalid_api_key","status":401,"type":"invalid_request_error","meaning":"The Authorization header is missing or malformed, or the key is unknown, revoked, expired, or its owner no longer has access to the project.","whatToDo":"Send the header `Authorization: Bearer` followed by an active key. A key is shown only once: if it is lost, create a new one in the console and revoke the old one.","retry":"fix_request","retryAfterHeader":false},{"code":"subscription_required","status":403,"type":"permission_error","meaning":"The organization has no subscription: it never subscribed, its free access ended, or its subscription was cancelled.","whatToDo":"An organization admin subscribes in the console (Billing) or contacts Azinove.","retry":"contact","retryAfterHeader":false},{"code":"subscription_inactive","status":403,"type":"permission_error","meaning":"The subscription is not active: for example a payment failed and the grace period has ended.","whatToDo":"An organization admin checks Billing in the console.","retry":"contact","retryAfterHeader":false},{"code":"organization_suspended","status":403,"type":"permission_error","meaning":"Azinove has suspended the organization.","whatToDo":"An organization admin contacts Azinove. Retrying does not help.","retry":"contact","retryAfterHeader":false},{"code":"project_archived","status":403,"type":"permission_error","meaning":"The key belongs to an archived project.","whatToDo":"An organization admin can unarchive the project in the console; an unarchived project needs new keys.","retry":"contact","retryAfterHeader":false},{"code":"project_has_no_channels","status":403,"type":"permission_error","meaning":"The project has no channel yet: a channel is one request the project can run at a time, and a project needs at least one to call the API.","whatToDo":"An organization admin adds channels to the project in the console.","retry":"contact","retryAfterHeader":false},{"code":"not_found","status":404,"type":"invalid_request_error","meaning":"No endpoint exists at this method and path.","whatToDo":"Use one of the documented endpoints and check that the base URL ends with /v1.","retry":"fix_request","retryAfterHeader":false},{"code":"model_not_found","status":404,"type":"invalid_request_error","meaning":"The model is not the one of your offer: a key calls the model named after its organization’s offer, such as `lazuli`.","whatToDo":"Use the id listed by GET /v1/models for your key.","retry":"fix_request","retryAfterHeader":false},{"code":"request_too_large","status":413,"type":"invalid_request_error","meaning":"The body is larger than 2 MB (8 MB when a vision model is enabled).","whatToDo":"Send less data per request, for example split long inputs.","retry":"fix_request","retryAfterHeader":false},{"code":"rate_limit_exceeded","status":429,"type":"rate_limit_error","meaning":"Too many requests per minute for this key (an optional guard, off unless your plan sets one), too many invalid requests from this key within a minute, or too many failed authentications from your IP address.","whatToDo":"Wait for the Retry-After header (or the x-ratelimit-reset-requests header), then retry with exponential backoff; fix invalid requests first.","retry":"retry_after","retryAfterHeader":true},{"code":"channels_busy","status":429,"type":"rate_limit_error","meaning":"Every channel of this project stayed busy for the whole queue wait: the project runs as many requests at once as it has channels, and further requests wait in a queue first. A stream that had already started receives this as a final error event.","whatToDo":"Retry after the Retry-After header. To run more requests at once, an organization admin adds channels to the project in the console. Tokens are never limited.","retry":"retry_after","retryAfterHeader":true},{"code":"internal_error","status":500,"type":"server_error","meaning":"An unexpected error happened in the gateway.","whatToDo":"Retry with exponential backoff. If it persists, contact support with the x-request-id header of the response.","retry":"backoff","retryAfterHeader":false},{"code":"upstream_error","status":502,"type":"server_error","meaning":"The model server returned an error or an invalid response.","whatToDo":"Retry with exponential backoff; quote the x-request-id header when you report it.","retry":"backoff","retryAfterHeader":false},{"code":"gpu_starting","status":503,"type":"service_unavailable","meaning":"The GPU was asleep (eco mode) and did not finish starting within the wait time. Streaming requests receive this as a final error event instead of a status code.","whatToDo":"Retry after the Retry-After header: the GPU keeps starting in the background. Set a client timeout of at least 300 seconds and prefer streaming.","retry":"retry_after","retryAfterHeader":true},{"code":"gpu_unavailable","status":503,"type":"service_unavailable","meaning":"The GPU could not be started (for example the provider had no capacity) or is in an error state.","whatToDo":"Retry later with exponential backoff. Azinove’s operators see the failure on their dashboard.","retry":"backoff","retryAfterHeader":true},{"code":"maintenance","status":503,"type":"service_unavailable","meaning":"The service is in planned maintenance.","whatToDo":"Retry later with exponential backoff.","retry":"backoff","retryAfterHeader":true}],"x-azinove-stream-example":[{"id":"chatcmpl-5b7e9d10","object":"chat.completion.chunk","created":1790000000,"model":"lazuli","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]},{"id":"chatcmpl-5b7e9d10","object":"chat.completion.chunk","created":1790000000,"model":"lazuli","choices":[{"index":0,"delta":{"content":"Golden leaves drift down"},"finish_reason":null}]},{"id":"chatcmpl-5b7e9d10","object":"chat.completion.chunk","created":1790000000,"model":"lazuli","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]},{"id":"chatcmpl-5b7e9d10","object":"chat.completion.chunk","created":1790000000,"model":"lazuli","choices":[],"usage":{"prompt_tokens":17,"completion_tokens":19,"total_tokens":36}}],"x-azinove-models":[{"id":"lazuli","kind":"chat","context_length":65536,"max_output_tokens":8192,"capabilities":{"tools":true,"vision":false,"reasoning":true,"json_schema":true,"thinking_toggle":true}}]}