Skip to content

API Reference Overview

GhostMind’s Product API is an OpenAI-compatible API for supported GhostMind capabilities. The base URL is:

https://ghostmind.optdmsa.com/v1

API Surfaces

SurfacePathAuthPurpose
Product API/v1/*API Key (Bearer)For applications and developers
User App API/me/v1/*Cookie (session)For the web app (not for developers)
Admin API/admin/v1/*JWT (admin)Platform administration (private)

Developer documentation focuses on the Product API (/v1/*).

Authentication

All Product API requests require a Bearer token:

Terminal window
Authorization: Bearer sk-gm-...

See Authentication for details.

Available Endpoints

EndpointMethodDescription
/v1/chat/completionsPOSTChat completions (streaming and non-streaming)
/v1/modelsGETList available models
/v1/audio/generationsPOSTCreate async TTS job
/v1/audio/generations/{id}GETGet TTS job status
/v1/audio/generations/{id}/contentGETDownload generated audio
/v1/audio/generations/{id}/cancelPOSTCancel a TTS job
/v1/audio/generations/{id}/retryPOSTRetry a failed TTS job
/v1/audio/generationsGETList TTS jobs
/v1/audio/speechPOSTSync TTS (bounded wait)
/v1/audio/transcriptionsPOSTTranscribe audio to text
/v1/audio/providersGETList TTS providers
/v1/audio/providers/{provider}/voicesGETList voices for a provider

OpenAPI Specification

The full OpenAPI specification is available at:

https://ghostmind.optdmsa.com/openapi.json

You can also view interactive docs at /docs (Swagger UI) or /redoc (ReDoc).

Next Steps