Quickstart
Call konduit with the OpenAI SDK you already have, in under five minutes.
konduit speaks the OpenAI chat completions and embeddings APIs, and serves code
editors legacy and fill-in-the-middle completions; audio transcription follows
once a transcription model is listed in GET /v1/models. If you already have
code that talks to OpenAI, you change two settings — the base URL and the key —
and nothing else.
https://api.konduit.eu/v1Running konduit locally
Every example on this site is written against the production host. If you are
working in the repository instead, mise run dev brings up the compose stack and
the services, and the two things that change are the base URL and the key:
export KONDUIT_API_KEY="kdt-localdevseedkeydonotuseinproduct"
curl http://127.0.0.1:8080/v1/chat/completions \
-H "Authorization: Bearer $KONDUIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"mock-small","messages":[{"role":"user","content":"hello"}]}'The gateway listens on 127.0.0.1:8080, mise run dev:seed prints that fixed
key, and the local catalog serves mock-small and mock-large on
/v1/chat/completions — mock-small on /v1/completions and
/v1/fim/completions as well — mock-embed on /v1/embeddings and
mock-whisper on /v1/audio/transcriptions, from a fake
provider. The key is refused by any gateway that is not explicitly a
local development instance, so it cannot leak anywhere useful. The repository's
README has the rest.
1. Get a key
API keys are created in the console. A key looks
like kdt- followed by 32 characters, and it is shown exactly once, at creation
time: konduit stores only its hash, so a key that was not written down has to be
replaced rather than recovered.
Keep it out of your source tree. Every example below reads it from the environment:
export KONDUIT_API_KEY="kdt-..."2. Send a request
curl https://api.konduit.eu/v1/chat/completions \
-H "Authorization: Bearer $KONDUIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistral-small-3.2",
"messages": [
{ "role": "user", "content": "Say hello in one word." }
]
}'The response body is the provider's own, relayed unchanged. Two response headers are konduit's:
| Header | What it says |
|---|---|
Konduit-Provider | Which operator actually ran the weights. |
Konduit-Deployment | konduit's full deployment id, variant included. Send it back as model to pin exactly this deployment. |
They are worth reading even when you do not pin anything. konduit may fall back to a second provider when the first refuses, so the operator that served a request is not always the one you would have predicted.
3. See what is available
curl https://api.konduit.eu/v1/models \
-H "Authorization: Bearer $KONDUIT_API_KEY"Each entry starts with OpenAI's four model fields, so an OpenAI SDK lists konduit's models without knowing anything about konduit. After them come konduit's own: what the deployment costs, who operates it, in which country it runs, which certifications that operator holds, whether the operator itself calls this particular service an experiment, and where to read that operator's own compliance overview.
One entry, with the field names and value shapes konduit sends. The ids, prices
and badges below are illustrative — the authoritative list is whatever your own
/v1/models returns.
{
"id": "scaleway/mistral-small-3.2:fp8",
"object": "model",
"created": 1754870400,
"owned_by": "scaleway",
"display_name": "Mistral Small 3.2",
"modality": "chat",
"context_window": 128000,
"max_output_tokens": 8192,
"reasoning": false,
"capabilities": { "streaming": true, "tools": true, "json_mode": true, "vision": true },
"deployment": {
"provider": "scaleway",
"provider_display_name": "Scaleway",
"model": "mistral-small-3.2",
"variant": "fp8",
"upstream_model": "mistral-small-3.2-24b-instruct-2506",
"region": "fr-par",
"status": "active",
"experimental": false,
"experimental_note": null,
"compliance_url": "https://www.scaleway.com/en/security-and-compliance/",
"endpoints": ["/v1/chat/completions", "/v1/completions"]
},
"pricing": {
"currency": "EUR",
"unit": "micro_eur_per_million_tokens",
"input": 60000,
"output": 180000
},
"sovereignty": {
"hosting_country": "FR",
"ownership": "eu",
"zero_retention": true,
"tier": "declared",
"note": null,
"certifications": []
}
}Prices are integers, and the unit travels with them
micro_eur_per_million_tokens means the input above is 0.06 EUR per million
input tokens. Reading the number as euros per token would be wrong by twelve
orders of magnitude, which is why the unit is a field rather than a convention.
output is null on a deployment that produces no completion, such as an
embedding model.
certifications is never null. An operator that has attested nothing sends
[], and every entry that is there carries the link to its evidence — a badge
konduit cannot point at is a badge konduit does not publish.
experimental is the operator's own label for its service, not konduit's
judgement of it. It has no effect on routing: a request against an
experimental deployment is served exactly like any other. experimental_note is null when experimental is
false, and otherwise says what "experimental" means for that operator, in
its own words.
capabilities.vision says whether the model accepts image input in a chat:
image_url content parts in a chat message (or the Responses API's
input_image), as a base64 data URL or an https URL. On
POST /v1/chat/completions, konduit sends an image only to deployments where it
is true, and answers 400 with model_does_not_support_images when the model
you asked for has none. vision describes chat input only: the multimodal
embedding model stackit/qwen3-vl-embedding-8b takes images on
/v1/embeddings although its vision is false — see
Embeddings. Request bodies may
be up to 20 MiB, and base64 adds a third to an image, so downscale large photos
before sending them.
endpoints lists the routes that serve this deployment, and konduit sends it a
request on no other. Every chat deployment serves /v1/chat/completions; some
also serve the text and code completions routes,
/v1/completions and /v1/fim/completions. An embedding deployment serves
/v1/embeddings.
compliance_url is the operator's own compliance overview page — one level up
from a single certificate's evidence_url, where you can read everything an
operator holds in its own words rather than one attestation at a time. null
when the operator publishes no such page, which is most of them: konduit never
invents a link nobody published.
To read one deployment, ask for it by id. The answer is that id's entry from the list, unchanged:
curl https://api.konduit.eu/v1/models/scaleway/gpt-oss-120b \
-H "Authorization: Bearer $KONDUIT_API_KEY"The / inside the id may be sent as is or as %2F — an OpenAI SDK's
models.retrieve sends scaleway%2Fgpt-oss-120b — and the : before a
variant, where an id has one, needs no encoding. Only an exact deployment id matches — a bare
gpt-oss-120b names a model, which several deployments may serve — and an
id konduit does not serve, a retired one included, is 404 model_not_found.
GET /v1/models needs a key like every other endpoint. A public list of what
konduit serves — without prices and without the sovereignty detail — is on
konduit.eu.
4. Choose where it runs
The part that is not OpenAI-compatible is one optional object in the request body:
curl https://api.konduit.eu/v1/chat/completions \
-H "Authorization: Bearer $KONDUIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistral-small-3.2",
"messages": [{ "role": "user", "content": "Say hello in one word." }],
"provider": {
"countries": ["DE", "FR"],
"zero_retention": true
}
}'That request will be served in Germany or France, by an operator that stores
neither the prompt nor the completion, or it will be refused with
no_deployment_matches_policy — it will not quietly go somewhere else. The full
vocabulary is on Routing and sovereignty.
Where to go next
Authentication
Key format, the one header, and what each refusal means.
Routing and sovereignty
How `model` resolves, and the whole `provider` policy.
Streaming
Server-sent events, and the usage rules that surprise people.
Embeddings
Vectors for search and retrieval, and what one costs.
Text and code completions
Fill-in-the-middle for code editors, and OpenAI's legacy completions.
Transcriptions
Speech to text, once a transcription model is listed.
Errors
Every code konduit sends, and which ones mean retry.
Rate limits
What is limited, and how to back off correctly.
API reference
The OpenAPI document for every endpoint.