Preloader Image

If you already have code that talks to the OpenAI API, you do not need to rewrite it. Our endpoint is wire-compatible: same request shape, same response shape, same streaming format. You change the base URL and the key. Everything else stays.

The only two things that change

Your base URL becomes https://api.evolaitech.uk/v1, and your key is the one from your account console. No proxy, no wrapper library, no custom client.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.evolaitech.uk/v1",
    api_key="YOUR_KEY",
)

reply = client.chat.completions.create(
    model="veniceweb/deepseek-v4-1-flash",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)

print(reply.choices[0].message.content)

Node is the same story with the official package:

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.evolaitech.uk/v1",
  apiKey: process.env.EVOAPI_KEY,
});

const reply = await client.chat.completions.create({
  model: "veniceapi/claude-sonnet-5-5",
  messages: [{ role: "user", content: "Summarise this changelog." }],
});

console.log(reply.choices[0].message.content);

Streaming works unchanged

Pass stream=True and iterate as usual. Tokens arrive as server-sent events, exactly like the upstream you already know.

stream = client.chat.completions.create(
    model="veniceweb/zai-org-glm-5-2",
    messages=[{"role": "user", "content": "Write a haiku about latency."}],
    stream=True,
)

for chunk in stream:
    delta = chunk.choices[0].delta.content
    if delta:
        print(delta, end="", flush=True)

Choosing a model

Model IDs are namespaced by family. A few that are available on every plan:

  • veniceweb/deepseek-v4-1-flash — fast, cheap, good default for chat and extraction.
  • veniceweb/qwen3-coder-480b-a35b-instruct-turbo — code generation and refactors.
  • veniceapi/claude-sonnet-5-5 — long documents and careful reasoning.
  • veniceapi/openai-gpt-6-sol — general purpose, strongest instruction following.
  • veniceapi/grok-4-7 — current events style answers.

Call GET /v1/models to list what your key can reach right now. Do not hardcode the list: models are added and retired regularly.

Three mistakes on day one

  1. Adding /v1 twice. The base URL already ends in /v1. The SDK appends the path.
  2. Sending an unnamespaced model. Use the full ID, including the family prefix.
  3. Ignoring the error body. A 400 tells you exactly which field is wrong. Print it before you retry.

That is the whole migration. If you want the reference for every endpoint, read the API gateway guide. If you need a plan first, see pricing.