cURL
Chat Completions
curl https://ghostmind.optdmsa.com/v1/chat/completions \ -H "Authorization: Bearer $GHOSTMIND_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "auto", "messages": [{"role": "user", "content": "Hello!"}] }'Streaming
curl https://ghostmind.optdmsa.com/v1/chat/completions \ -H "Authorization: Bearer $GHOSTMIND_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "auto", "stream": true, "messages": [{"role": "user", "content": "Tell me a story."}] }'Audio Generation
curl https://ghostmind.optdmsa.com/v1/audio/generations \ -H "Authorization: Bearer $GHOSTMIND_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": "Hello, world!", "voice": "ar-MA-Standard-A" }'Transcription
curl https://ghostmind.optdmsa.com/v1/audio/transcriptions \ -H "Authorization: Bearer $GHOSTMIND_API_KEY" \ -F "file=@audio.mp3"Next Steps
- Quickstart — Full getting started guide
- Streaming — SSE details