01/Overview

API Reference

The endpoints the gateway exposes and authentication.


All endpoints require a Bearer token. Interactive docs are available on the running server at /api/docs (Swagger) and /api/redoc.

#OpenAI-compatible

EndpointDescription
POST /v1/chat/completionsChat completion (streaming supported).
POST /v1/completionsLegacy completion.
POST /v1/embeddingsGenerate embeddings.
POST /v1/responsesResponses API.
GET /v1/modelsList of reachable models/groups.

#Ollama-native

EndpointDescription
POST /api/chat · /api/generateOllama chat/generate.
POST /api/embeddings · /api/embedEmbeddings.
GET /api/tags · POST /api/showModel list / detail.

#IDE-specific

Compatible paths are provided for tools like Cursor and Codex (/cursor/chat/completions, /codex/*). These work together with the matching node types (cursor, antigravity, bedrock).