Why this is useful
The OpenAI API is the shape most AI programs and libraries know: packages for Python and Node.js, no-code tools and chat programs. A service with the same shape does not make you install anything. You use the package you already have and point it to another address.
The three lines
base_url https://ai.zeta.nl/v1
api_key your key from the ZETA portal
model a name from GET /v1/models or the models page
The address ends in /v1. An administrator of your organisation makes the key in the portal under AI & Data, Keys. You copy the model name literally from GET /v1/models or from the models page; names of other services do not work.
What does and does not carry over
- Yes: questions and conversations (
/v1/chat/completions), also word by word (streaming), tools, a fixed answer format (JSON), images as base64, embeddings and speech to text. - No: the Responses API, Assistants, files, image generation and spoken answers. More than one answer per question (
ngreater than 1) is refused. - Different: fields that do nothing on our models are left out and named in the header
X-Ignored-Params. Errors have the OpenAI shape plus a fieldfoutin Dutch; our codes differ, so handle errors by HTTP status.
The full table is under OpenAI compatibility.
Common mistakes
| What goes wrong | What you see | What you do |
|---|---|---|
The address without /v1 | 404, onbekend_pad | Use https://ai.zeta.nl/v1 as the base URL. |
| A model name from another service | 404, model_niet_gevonden | Copy a name literally from GET /v1/models. |
| Calling from an address that is not on the key | 403, adres_niet_toegestaan | An administrator adds the public IP address of your server to the key. |
| An image as an internet address | 400, ongeldige_aanvraag | Send the image as base64 inside the request. |
| The key in shared code | A leaked key | Put it in an environment variable. Leaked anyway? Make a new key and switch the old one off. |
| Handling errors by OpenAI's error code | Errors your program does not recognise | Handle by HTTP status; retry 429 and 5xx after Retry-After. |
Every code with cause and solution: Errors.
Questions
Do I have to install a library from ZETA?
No. You use the official OpenAI package for Python or Node.js, or any other program that can work with the OpenAI API, and change the three lines. See Quickstart.
Does my chat program or no-code tool work too?
Any program with an "OpenAI-compatible" setting or its own base URL: n8n, Open WebUI, LibreChat, Continue and more. See Connect n8n, Open WebUI and more.
Do I get the same answers as with OpenAI?
No. The shape is the same, the models are different: open models on our own servers, see the models page. So test your application with our models before you switch.
What is in the field model of the response?
The name you asked for. Behind a name that always points to the newest model, the model itself can change; we announce such a switch 14 days in advance.