OpenAPI specification (Swagger)
Machine-readable OpenAPI 3.1 specification of the SovrGPT API — importable into Swagger UI, Redoc, Postman and code generators.
The complete SovrGPT API is available as an OpenAPI 3.1 specification — machine-readable and importable into every common tool.
Specification: https://sovrgpt.com/openapi.json
Using it
- Swagger UI / Swagger Editor: open editor.swagger.io
→ File → Import URL →
https://sovrgpt.com/openapi.json. - Redoc:
npx @redocly/cli preview-docs https://sovrgpt.com/openapi.json. - Postman / Insomnia: Import → Link → paste the URL → you get a ready-made request collection with every endpoint.
- Generating client SDKs:
openapi-generator,openapi-typescriptand friends consume the file directly.
Endpoints covered
| Endpoint | Purpose | Scope |
|---|---|---|
GET /models | Query the available models (chat/embeddings/rerank/TTS/STT) | – |
POST /chat/completions | Chat completion (LLM) | chat |
POST /embeddings | Text embeddings | embeddings |
POST /rerank | Relevance re-ordering | rerank |
POST /audio/speech | Text-to-speech (Supertonic / CosyVoice / Mistral) | speech |
POST /audio/transcriptions | Speech-to-text (Voxtral) | transcribe |
The specification is the machine-readable reference; the detailed, explained examples live on the individual documentation pages (Audio, Chat, Models).