Azinove AI

API documentation

The Azinove AI API speaks the OpenAI protocol, and the Anthropic Messages protocol for Claude Code: use an official OpenAI or Anthropic SDK, or any compatible client, with your base URL and an Azinove API key. Your requests run on the open-weight model of your offer, such as <code>lazuli</code>, on GPUs operated by Azinove. Tokens are never limited.

Base URL: https://api.ai.azinove.com/v1 · Version 2.1.0

Quickstart

Three steps: create a key, keep it in an environment variable, call the API.

  1. In the console, open your project and create an API key. It is shown once: store it in your secret manager.
  2. Expose it to your application as AZINOVE_API_KEY. Never put a key in browser code, a mobile app or a repository.
  3. Point an OpenAI SDK at the base URL https://api.ai.azinove.com/v1. The samples allow 300 seconds, enough for a cold start (see Eco mode).
curl https://api.ai.azinove.com/v1/chat/completions \
  -H "Authorization: Bearer $AZINOVE_API_KEY" \
  -H "Content-Type: application/json" \
  --max-time 300 \
  -d '{
  "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
}'

Authentication and keys

Every request carries the header Authorization: Bearer followed by your key. Keys start with sk_azn_ and are 56 characters long.

A key belongs to one project. A personal key stops working as soon as its creator loses access to the project; a project key survives changes of members.

Azinove keeps only a keyed hash of each key, so nobody can read a key back, Azinove included. A lost key cannot be recovered: create a new one and revoke the old one.

Use one key per application and environment, roll keys regularly, set an expiry where your policy requires one, and revoke a key as soon as you suspect it leaked.

A missing or invalid key returns 401 invalid_api_key. After many failed attempts from one IP address, requests from it are refused with 429 for ten minutes.

Models

GET /v1/models lists the model your key calls. Its id is the name of your organization’s offer, such as lazuli: one model per offer, served under the offer’s name.

curl https://api.ai.azinove.com/v1/models \
  -H "Authorization: Bearer $AZINOVE_API_KEY"
ModelOfferKindContextMax outputCapabilities
lazuliAzinove LazuliChat65,536 tokens8,192 tokens
  • Tool calling
  • Reasoning
  • Structured outputs
  • Thinking toggle

Azinove keeps each offer on a suitable open-weight model and may move it to a newer one. The model id never changes, so your code keeps working. Organization admins are told by email at least 14 days before an upgrade, and the changelog below lists it.

When Azinove names the open-weight model behind an offer, the table shows it with its licence and exact revision.

Parameters and differences from OpenAI

The gateway checks each request completely before it reaches a GPU. A parameter is forwarded, accepted and ignored, or refused. An unknown parameter is refused with 400 unsupported_parameter instead of being dropped, so your code never relies on a setting that has no effect.

Some parameters exist only for models with the matching capability (see the models table); for other models they are refused.

Sending null for an optional parameter is the same as leaving it out.

ParameterEndpointsHandlingNotes
model
  • /v1/chat/completions
  • /v1/completions
  • /v1/embeddings
  • /v1/messages
ForwardedThe id from GET /v1/models: the name of your offer, such as lazuli.
messages
  • /v1/chat/completions
  • /v1/messages
ForwardedThe conversation, oldest first. Chat: roles system, developer, user, assistant and tool. Messages: user and assistant, with text, tool_use and tool_result blocks.
max_tokens
  • /v1/chat/completions
  • /v1/completions
  • /v1/messages
ForwardedUpper bound on generated tokens; values above your plan or the model limit are lowered to that limit.
max_completion_tokens
  • /v1/chat/completions
ForwardedSame as max_tokens (newer name).
temperature
  • /v1/chat/completions
  • /v1/completions
  • /v1/messages
ForwardedSampling temperature, 0 to 2.
top_p
  • /v1/chat/completions
  • /v1/completions
  • /v1/messages
ForwardedNucleus sampling, above 0 and at most 1.
stop
  • /v1/chat/completions
  • /v1/completions
ForwardedUp to 16 sequences where generation stops.
seed
  • /v1/chat/completions
  • /v1/completions
ForwardedBest-effort repeatable sampling.
presence_penalty
  • /v1/chat/completions
  • /v1/completions
Forwarded-2 to 2.
frequency_penalty
  • /v1/chat/completions
  • /v1/completions
Forwarded-2 to 2.
logit_bias
  • /v1/chat/completions
  • /v1/completions
ForwardedToken id to bias (-100 to 100), at most 300 entries.
logprobs
  • /v1/chat/completions
  • /v1/completions
ForwardedChat: true or false. Completions: 0 to 5.
top_logprobs
  • /v1/chat/completions
Forwarded0 to 5; requires logprobs true.
tools
  • /v1/chat/completions
  • /v1/messages
Forwarded for models with tool callingAt most 64 functions.
tool_choice
  • /v1/chat/completions
  • /v1/messages
Forwarded for models with tool callingnone, auto, required or a named function; requires tools unless none.
parallel_tool_calls
  • /v1/chat/completions
Forwarded for models with tool callingRequires tools.
response_format
  • /v1/chat/completions
Forwardedtext, json_object or json_schema.
stream
  • /v1/chat/completions
  • /v1/completions
  • /v1/messages
ForwardedServer-sent events.
stream_options
  • /v1/chat/completions
  • /v1/completions
ForwardedOnly include_usage, and only with stream true.
reasoning_effort
  • /v1/chat/completions
Forwarded for reasoning modelslow, medium or high.
chat_template_kwargs
  • /v1/chat/completions
Forwarded for models with the thinking toggleOnly enable_thinking (true or false).
prompt
  • /v1/completions
ForwardedOne string: arrays and token ids are refused.
echo
  • /v1/completions
ForwardedOnly false.
input
  • /v1/embeddings
ForwardedOne string or up to 256 strings.
encoding_format
  • /v1/embeddings
Forwardedfloat or base64.
dimensions
  • /v1/embeddings
Forwarded for models with shorter vectorsShorter vectors.
system
  • /v1/messages
ForwardedMessages: the system prompt, a string or text blocks.
stop_sequences
  • /v1/messages
ForwardedMessages: up to 16 sequences where generation stops.
thinking
  • /v1/messages
Forwarded for reasoning modelsMessages: enabled (or adaptive) or disabled; turns the model’s thinking on or off.
user
  • /v1/chat/completions
  • /v1/completions
  • /v1/embeddings
  • /v1/messages
Accepted and ignoredIgnored.
store
  • /v1/chat/completions
  • /v1/completions
  • /v1/embeddings
  • /v1/messages
Accepted and ignoredIgnored: nothing is stored.
metadata
  • /v1/chat/completions
  • /v1/completions
  • /v1/embeddings
  • /v1/messages
Accepted and ignoredIgnored.
service_tier
  • /v1/chat/completions
  • /v1/completions
  • /v1/embeddings
  • /v1/messages
Accepted and ignoredIgnored.
n
  • /v1/chat/completions
  • /v1/completions
  • /v1/embeddings
  • /v1/messages
Accepted and ignoredMust be 1: one completion per request.

Differences from the OpenAI API

  • One completion per request: n must be 1.
  • Images must be inline data URLs (PNG, JPEG or WebP). Remote image URLs are never fetched.
  • developer messages reach the model as system messages.
  • Legacy completions take one prompt string.
  • You can append an assistant message you received as is: its extra fields are accepted.
  • No Responses, Assistants, Files, batches, fine-tuning, audio, image generation or moderation endpoints.
  • Files are sent inline in the request and read as text (see Files); without a Files API, file_id is refused.
  • user, store, metadata and service_tier are accepted and ignored; nothing is stored.

Refused parameters

These parameters are refused with 400 unsupported_parameter, grouped by reason. Any other unknown parameter is refused too.

ParameterEndpointsReason
  • function_call
  • functions
  • /v1/chat/completions
Deprecated by OpenAI: use tools and tool_choice.
  • audio
  • container
  • mcp_servers
  • modalities
  • prediction
  • prompt_cache_key
  • safety_identifier
  • suffix
  • verbosity
  • web_search_options
  • /v1/chat/completions
  • /v1/completions
  • /v1/messages
Not offered by this API.
  • cache_salt
  • chat_template
  • chat_template_kwargs
  • documents
  • guided_choice
  • guided_grammar
  • guided_json
  • guided_regex
  • kv_transfer_params
  • logits_processors
  • media_io_kwargs
  • mm_processor_kwargs
  • priority
  • prompt_embeds
  • request_id
  • structured_outputs
  • vllm_xargs
  • /v1/chat/completions
  • /v1/completions
  • /v1/embeddings
  • /v1/messages
Engine-level setting that could affect other customers or bypass the gateway’s controls.
  • best_of
  • ignore_eos
  • min_tokens
  • prompt_logprobs
  • use_beam_search
  • /v1/chat/completions
  • /v1/completions
Would multiply the work of one request.
  • add_generation_prompt
  • add_special_tokens
  • allowed_token_ids
  • bad_words
  • continue_final_message
  • echo
  • embed_dtype
  • include_stop_str_in_output
  • length_penalty
  • min_p
  • normalize
  • repetition_penalty
  • response_format
  • return_tokens_as_token_ids
  • skip_special_tokens
  • spaces_between_special_tokens
  • stop_token_ids
  • thinking_token_budget
  • top_k
  • truncate_prompt_tokens
  • /v1/chat/completions
  • /v1/completions
  • /v1/embeddings
  • /v1/messages
Not exposed in this version.

Limits per request

LimitValue
Request body2 MiB
Request body when a vision model is enabled8 MiB
logit_bias entries300
top_logprobs5
logprobs (completions)5
Tools per request64
Parameters schema of one tool32 KiB
Response JSON Schema16 KiB
Response JSON Schema nesting10 levels
Embedding inputs per request256
Tool parameters schema nesting32 levels
Tool description8,192 characters
Tool description (/v1/messages)65,536 characters
Tools per request (/v1/messages)256
Messages per request4,096
Content parts per message256
Stop sequences16
Length of one stop sequence256 characters
Images per request4
One image, decoded5 MiB
Pixels of one image16,777,216 pixels
Width or height of one image8,192 pixels
Attached files per request8
One attached file, decoded10 MiB
Text of one attached file, once read2,000,000 characters
Request body of chat and messages requests (attached files included)24 MiB
Model id128 characters
Message name64 characters
Tool call id256 characters
user256 characters
metadata entries16
metadata key64 characters
metadata value512 characters
pattern in a structured-output schema256 characters
min/max items, length or properties in a structured-output schema1,000
$ref in a structured-output schema64
JSON values in a request body250,000
Keys of one JSON object in a request body2,048

Streaming and usage

With stream set to true, the answer arrives as server-sent events: one data: line per chunk, then data: [DONE].

Every response reports its token usage. When streaming, set stream_options.include_usage to true: the last chunk then has an empty choices list and the usage of the whole request.

curl -N https://api.ai.azinove.com/v1/chat/completions \
  -H "Authorization: Bearer $AZINOVE_API_KEY" \
  -H "Content-Type: application/json" \
  --max-time 300 \
  -d '{
  "model": "lazuli",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about Paris in autumn."
    }
  ],
  "stream": true,
  "stream_options": {
    "include_usage": true
  }
}'

While the GPU starts, the stream carries : keep-alive comment lines every 15 seconds, and while it waits for a free channel of its project, : queued lines. SDKs ignore them.

data: {"id":"chatcmpl-5b7e9d10","object":"chat.completion.chunk","created":1790000000,"model":"lazuli","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}

data: {"id":"chatcmpl-5b7e9d10","object":"chat.completion.chunk","created":1790000000,"model":"lazuli","choices":[{"index":0,"delta":{"content":"Golden leaves drift down"},"finish_reason":null}]}

data: {"id":"chatcmpl-5b7e9d10","object":"chat.completion.chunk","created":1790000000,"model":"lazuli","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}

data: {"id":"chatcmpl-5b7e9d10","object":"chat.completion.chunk","created":1790000000,"model":"lazuli","choices":[],"usage":{"prompt_tokens":17,"completion_tokens":19,"total_tokens":36}}

data: [DONE]

Once a stream has started, an error cannot change the HTTP status: if the GPU does not start in time, or no channel frees within the queue time, the last event is an error object with the code gpu_starting or channels_busy and the stream ends. The OpenAI SDKs raise it as an API error.

If you close the connection, generation stops, and only the tokens produced until then are counted.

Tool calling

For models with tool calling, describe your functions in tools. The model answers with tool_calls; your code runs them and sends each result back in a tool message.

At most 64 tools per request, each parameters schema at most 32 KB. tool_choice accepts none, auto, required or a named function.

curl https://api.ai.azinove.com/v1/chat/completions \
  -H "Authorization: Bearer $AZINOVE_API_KEY" \
  -H "Content-Type: application/json" \
  --max-time 300 \
  -d '{
  "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"
}'

Claude Code

Claude Code, the coding agent of Anthropic, connects to the Anthropic-compatible endpoint /v1/messages. Point it at Azinove with one of your API keys: every request then runs on lazuli, on the channels of your project.

In a terminal, set these variables, then start claude. The base URL has no /v1: Claude Code adds it.

export ANTHROPIC_BASE_URL="https://api.ai.azinove.com"
export ANTHROPIC_AUTH_TOKEN="$AZINOVE_API_KEY"
export ANTHROPIC_MODEL="lazuli"
export CLAUDE_CODE_AUTO_COMPACT_WINDOW="57000"
export CLAUDE_CODE_MAX_OUTPUT_TOKENS="8192"
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS="1"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"
claude

To keep them, put the same values in the env block of ~/.claude/settings.json, or of .claude/settings.local.json in a project (keep that file out of git: it holds your key).

settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.ai.azinove.com",
    "ANTHROPIC_AUTH_TOKEN": "sk_azn_…",
    "ANTHROPIC_MODEL": "lazuli",
    "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "57000",
    "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "8192",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
  }
}

Claude Code does not know the context window of lazuli (65536 tokens): CLAUDE_CODE_AUTO_COMPACT_WINDOW makes it summarise the conversation before it gets too long, and CLAUDE_CODE_MAX_OUTPUT_TOKENS matches the output limit of the model.

Claude Code also asks for Claude model names for background tasks and sub-agents: on /v1/messages, any claude-… name is served by your offer, so no request fails on a model name.

PDF and other documents that Claude Code attaches are read as text by the gateway (see Files). For an Excel file, ask Claude Code to read it: it converts the sheets itself, or attaches the file.

Behind a custom endpoint, some features of Claude Code are not available: prompt caching (ignored), images (replaced by a short note for text-only models), web search and the other Anthropic server tools (ignored), and the claude.ai features. Each request of Claude Code uses one channel of your project, like any API request.

Files: Excel, Word, PDF, CSV

Attach files to a request and ask about them. The gateway reads each file in Paris and gives the model its text in place of the file, as if you had pasted the content.

Supported: Excel (.xlsx, .xlsm: every sheet as CSV, with formula results and dates), Word (.docx: headings, lists and tables), PowerPoint (.pptx: the text of each slide), PDF with a text layer, and text files such as CSV, TSV, Markdown, JSON or code (UTF-8, UTF-16 or Windows-1252). Old Office files (.xls, .doc, .ppt) and OpenDocument files must be saved in one of these formats first.

On /v1/chat/completions, add a file content part to a user message: the file in file.file_data, as a data URL (data:&lt;type&gt;;base64,…) or bare base64, and its name in file.filename.

On /v1/messages (Anthropic SDKs, Claude Code), send a document block with a base64, text or content source; its title and context reach the model too. URL sources are refused: the gateway never fetches anything.

FILE_DATA=$(base64 < ventes.xlsx | tr -d "\n")

curl https://api.ai.azinove.com/v1/chat/completions \
  -H "Authorization: Bearer $AZINOVE_API_KEY" \
  -H "Content-Type: application/json" \
  --max-time 300 \
  -d @- <<EOF
{
  "model": "lazuli",
  "messages": [{
    "role": "user",
    "content": [
      {"type": "text", "text": "Which region sold the most in March? Answer with the region and its total."},
      {"type": "file", "file": {"filename": "ventes.xlsx", "file_data": "data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,$FILE_DATA"}}
    ]
  }]
}
EOF

The model receives each file as &lt;file name="…" type="…"&gt;, then its text. It does not see layout, pictures, charts or colours.

At most 8 files per request, 10 MB per file and 24 MB for the whole request. The text of the files counts in the context window (65536 tokens for lazuli): a table takes about 25 to 40 tokens per row of 5 or 6 columns (each digit is a token), so about 1,500 rows at most. Send only the sheets, rows, columns or pages the question needs.

Finding, counting, comparing and summarising work well. For heavy arithmetic over many rows, such as totals of hundreds of values, compute the figures in your code, or ask for the method: a reasoning model can spend thousands of tokens adding numbers one by one.

Files are read in memory by an isolated process, then discarded: never written to disk, kept or logged. Only their number, type, size and reading time are recorded.

A file that cannot be read refuses the whole request with 400 invalid_request_error; param names the part, and the message says why:

  • The file data must be base64, or a data URL (data:&lt;type&gt;;base64,…).
  • A file may be at most 10 MB.
  • Old Excel, Word and PowerPoint files (.xls, .doc, .ppt) are not supported: save the file as .xlsx, .docx, .pptx or CSV.
  • OpenDocument files (.ods, .odt, .odp) are not supported: save the file as .xlsx, .docx, .pptx or CSV.
  • Images cannot be sent as files: this model reads text only.
  • This type of file is not supported. Send Excel (.xlsx), Word (.docx), PowerPoint (.pptx), PDF, CSV or another text file.
  • The file is protected by a password: remove the protection and send it again.
  • The PDF has no text layer (a scan or images only): run text recognition (OCR) on it first, or send its text.
  • The file could not be read: it may be damaged or not match its type.
  • The text of the file is too long (more than 2,000,000 characters): send only the useful part.
  • Reading the file took too long: send a smaller file or only the useful part.
  • Too many files are being read right now. Please retry in a few seconds.

Structured outputs

For models with structured outputs, response_format of type json_schema makes the answer follow your JSON Schema; json_object asks for any JSON object.

A schema may be at most 16 KB and 10 levels deep, because every customer shares one generation engine.

curl https://api.ai.azinove.com/v1/chat/completions \
  -H "Authorization: Bearer $AZINOVE_API_KEY" \
  -H "Content-Type: application/json" \
  --max-time 300 \
  -d '{
  "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
      }
    }
  }
}'

Reasoning and the thinking toggle

Reasoning models think before they answer. The reasoning arrives in the reasoning field of the message, separate from content.

Reasoning tokens are part of completion_tokens (usage statistics: tokens are never limited).

reasoning_effort (low, medium or high) is accepted by reasoning models.

For models with the thinking toggle, set chat_template_kwargs.enable_thinking to false to skip thinking: faster answers and fewer tokens.

With the Python SDK, pass parameters it does not declare through extra_body.

curl https://api.ai.azinove.com/v1/chat/completions \
  -H "Authorization: Bearer $AZINOVE_API_KEY" \
  -H "Content-Type: application/json" \
  --max-time 300 \
  -d '{
  "model": "lazuli",
  "messages": [
    {
      "role": "user",
      "content": "Translate to French: good morning."
    }
  ],
  "chat_template_kwargs": {
    "enable_thinking": false
  }
}'

Embeddings

POST /v1/embeddings turns up to 256 strings into vectors.

It is available only when your offer is an embedding model, as listed by GET /v1/models; otherwise requests end with 404.

The Node.js SDK asks for base64 encoding by default and decodes it for you.

No embedding model is published yet.

Errors

Errors use the OpenAI JSON shape, so the SDKs raise their usual exception classes. Messages are in English. Quote the x-request-id response header when you contact support.

HTTP statusCodeTypeMeaningWhat to do
400invalid_request_errorinvalid_request_errorThe body is not valid JSON, or a parameter has a wrong type or value; param names it.Fix the request. Sending it again unchanged returns the same error.
400unsupported_parameterinvalid_request_errorThe request contains a parameter this API does not accept, or not for this model; param names it.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.
400context_length_exceededinvalid_request_errorThe 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.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.
401invalid_api_keyinvalid_request_errorThe Authorization header is missing or malformed, or the key is unknown, revoked, expired, or its owner no longer has access to the project.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.
403subscription_requiredpermission_errorThe organization has no subscription: it never subscribed, its free access ended, or its subscription was cancelled.An organization admin subscribes in the console (Billing) or contacts Azinove.
403subscription_inactivepermission_errorThe subscription is not active: for example a payment failed and the grace period has ended.An organization admin checks Billing in the console.
403organization_suspendedpermission_errorAzinove has suspended the organization.An organization admin contacts Azinove. Retrying does not help.
403project_archivedpermission_errorThe key belongs to an archived project.An organization admin can unarchive the project in the console; an unarchived project needs new keys.
403project_has_no_channelspermission_errorThe 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.An organization admin adds channels to the project in the console.
404not_foundinvalid_request_errorNo endpoint exists at this method and path.Use one of the documented endpoints and check that the base URL ends with /v1.
404model_not_foundinvalid_request_errorThe model is not the one of your offer: a key calls the model named after its organization’s offer, such as lazuli.Use the id listed by GET /v1/models for your key.
413request_too_largeinvalid_request_errorThe body is larger than 2 MB (8 MB when a vision model is enabled).Send less data per request, for example split long inputs.
429rate_limit_exceededrate_limit_errorToo 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.Wait for the Retry-After header (or the x-ratelimit-reset-requests header), then retry with exponential backoff; fix invalid requests first.
429channels_busyrate_limit_errorEvery 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.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.
500internal_errorserver_errorAn unexpected error happened in the gateway.Retry with exponential backoff. If it persists, contact support with the x-request-id header of the response.
502upstream_errorserver_errorThe model server returned an error or an invalid response.Retry with exponential backoff; quote the x-request-id header when you report it.
503gpu_startingservice_unavailableThe 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.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.
503gpu_unavailableservice_unavailableThe GPU could not be started (for example the provider had no capacity) or is in an error state.Retry later with exponential backoff. Azinove’s operators see the failure on their dashboard.
503maintenanceservice_unavailableThe service is in planned maintenance.Retry later with exponential backoff.
import os

import openai
from openai import OpenAI

client = OpenAI(
    base_url="https://api.ai.azinove.com/v1",
    api_key=os.environ["AZINOVE_API_KEY"],
    timeout=300,  # seconds: room for a cold start (eco mode)
)

try:
    response = client.chat.completions.create(
        model="lazuli",
        messages=[{"role": "user", "content": "Hello"}],
    )
except openai.RateLimitError as error:  # 429: channels_busy (or rate_limit_exceeded)
    print(error.code, error.response.headers.get("retry-after"))
except openai.APIStatusError as error:  # any other status
    print(error.status_code, error.code, error.response.headers.get("x-request-id"))

Channels, speed and queueing

Tokens are never limited: no request is refused because of how much you use. Your plan sets how many requests each project runs at the same time, and how fast: its channels.

A channel is one request a project can run at a time. Each project has its own channels, shared by all its keys and never by other projects. Organization admins add channels to a project in the console.

Each channel has a speed tier, such as standard, fast or max. A request takes a free channel of the fastest tier its project has, and faster tiers are served first when the GPU is busy.

A tier may cap the output speed of streamed answers: the answer is the same, its tokens only arrive at most at that speed.

When every channel of the project is busy, the request waits in the project’s queue, first in, first out, for up to the queue time of your plan. If no channel frees in time, it gets 429 channels_busy with Retry-After; when the queue itself is full, it gets that answer at once.

A streaming request that waits longer than 15 seconds receives its response then, with : queued comment lines every 15 seconds until a channel frees. Its x-azinove-speed-tier and x-azinove-queued-ms headers are then absent: they were not known yet.

A project without any channel gets 403 project_has_no_channels until an organization admin adds one.

An optional limit of requests per minute per key applies only when your plan sets one; the x-ratelimit-*-requests headers are sent only then.

A key that sends more than 60 invalid requests in a minute (rejected with 400, 404 or 413) is refused with 429 rate_limit_exceeded until the minute ends. Valid requests never count.

Responses carry the headers below. On 429, wait for Retry-After and retry with exponential backoff; the OpenAI SDKs do this for you.

HeaderMeaning
x-request-idIdentifier of the request: quote it when you contact support.
x-azinove-cold-starttrue when the request waited for the GPU to start.
retry-afterSeconds to wait before retrying (on 429, including channels_busy, and on 503 gpu_starting).
x-azinove-channels-limitChannels of the project: how many requests it runs at the same time.
x-azinove-channels-in-useChannels of the project busy when the request started, itself included.
x-azinove-speed-tierSpeed tier of the channel that served the request. Absent on a stream answered while it still waited for a channel.
x-azinove-queued-msMilliseconds the request waited for a free channel of its project, 0 when one was free.
x-ratelimit-limit-requestsRequests per minute allowed for the key, only when the plan sets this optional guard.
x-ratelimit-remaining-requestsRequests left in the current minute.
x-ratelimit-reset-requestsTime until the request count resets, such as 1s or 6m0s.

A request waiting for a cold start keeps its channel.

Eco mode and cold starts

Azinove Lazuli runs on shared GPU capacity. The GPU stays on while organizations hold channels on it; when none does, it may sleep after a period without requests (eco mode) and wake on the next request. The first request after a sleep waits for the GPU to start: a cold start.

Allow at least 180 seconds for a cold start.

Set your client timeout to at least 300 seconds and prefer streaming: proxies with a short idle timeout can otherwise cut a waiting request.

The response header x-azinove-cold-start is true when a request waited for a start.

The wait is free: a request that waited for a cold start is counted in your usage like any other request.

If the GPU does not start in time, a non-streaming request gets 503 gpu_starting with Retry-After, and a streaming request gets a final error event.

No keep-warm window is scheduled at the moment.

Organization admins can wake the GPU ahead of time from the console, at most once every 10 minutes.

The live state of the GPU is not shown to customers: it would reveal when other customers use it.

Data handling and region

Azinove does not write prompts or answers to disk or to logs. They are held in memory while a request runs; derived data can stay in your project’s part of the GPU cache until it is evicted or the GPU sleeps.

For your usage statistics, Azinove records counts only: tokens, timings, model, key and project. Never text.

The prompt cache is isolated per project: a request can only reuse cache entries created by the same project.

The GPU is shared: requests from different customers are processed together in the same batches. Customers who need a GPU of their own should ask Azinove.

Models run in Scaleway’s Paris region (France). Account data, usage records and audit logs are kept in a database in the European Union.

Azinove does not train models on your requests; they are not kept, so they cannot be used for training.

Per-request usage records are kept 12 months and daily totals 10 years (accounting rules). Sign-in attempt records are kept 30 days.

Sub-processors

The companies that process data for the service are listed in the legal documents of your organization, in the Legal section of the console.

Changelog

  • 2026-09-28: files. Excel, Word, PowerPoint, PDF and text files attached to chat and messages requests are read as text by the gateway (see Files).
  • 2026-09-27: lazuli moves to a newer model. Lazuli moves to a newer model generation, with the same API, the same model name (lazuli) and the same channels and limits. Very long prompts may take a little longer before the first word. — Lazuli passe à une génération de modèle plus récente, avec la même API, le même nom de modèle (lazuli) et les mêmes canaux et limites. Les très longs textes en entrée peuvent mettre un peu plus de temps avant le premier mot.
  • 2026-09-27: lazuli moves to a newer model. Launch model, benchmarked on the L40S on 2026-09-26 (BENCHMARK-2026-09-26.md).
  • 2026-09-26: one model per offer, called by the offer name (lazuli); channels and speed tiers instead of token limits; the errors channels_busy and project_has_no_channels; the x-azinove-channels-limit, x-azinove-channels-in-use, x-azinove-speed-tier and x-azinove-queued-ms headers.
  • 2026-09-26: first version of the API: models, chat completions, completions and embeddings.