> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.kontinent.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.kontinent.ai/_mcp/server.

# API reference

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

```ts
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.kontinent.ai/v1",
  apiKey: process.env.KONTINENT_API_KEY, // sk-kt-…
});
```

## Base URLs

| Environment | Base URL                   |
| ----------- | -------------------------- |
| Production  | `https://api.kontinent.ai` |
| Local dev   | `http://localhost:4000`    |

## Endpoints

| Method | Path                   | Purpose                                        |
| ------ | ---------------------- | ---------------------------------------------- |
| `POST` | `/v1/chat/completions` | Chat completions (SSE streaming supported).    |
| `POST` | `/v1/embeddings`       | Embeddings.                                    |
| `GET`  | `/v1/models`           | List models with pricing and sovereignty tier. |
| `GET`  | `/healthz`             | Unauthenticated liveness probe.                |

All endpoints except `/healthz` require a bearer token — see
[Authentication](/authentication). Errors follow the OpenAI shape; see
[Errors](/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.