API reference

The OpenAI-compatible data plane.

View as Markdown

The Kontinent data plane is OpenAI-compatible. Point any OpenAI SDK at the gateway and use a sk-kt- key:

1import OpenAI from "openai";
2
3const client = new OpenAI({
4 baseURL: "https://api.kontinent.ai/v1",
5 apiKey: process.env.KONTINENT_API_KEY, // sk-kt-…
6});

Base URLs

EnvironmentBase URL
Productionhttps://api.kontinent.ai
Local devhttp://localhost:4000

Endpoints

MethodPathPurpose
POST/v1/chat/completionsChat completions (SSE streaming supported).
POST/v1/embeddingsEmbeddings.
GET/v1/modelsList models with pricing and sovereignty tier.
GET/healthzUnauthenticated liveness probe.

All endpoints except /healthz require a bearer token — see Authentication. Errors follow the OpenAI shape; see Errors.

Conventions

  • Model ids are provider/model, e.g. mistral/mistral-large-latest.
  • Money is integer micro-EUR (1 EUR = 1,000,000 µEUR), quoted per million tokens.
  • Request bodies are capped at 2 MiB.

Use the reference pages in this section to explore each endpoint interactively.