API referenceOpenAI-compatible API
OpenAI: Generate speech
/proxy/openai/v1/audio/speech · POST
Required access: llm_compat with llm:invoke. Authentication.
POST
header
AuthorizationBearer <token>MuseSpark API key. Tasks accept a case-insensitive Bearer prefix; compatibility extraction requires Bearer with this casing.
application/json- body
model*stringinput*stringvoice*stringresponse_format?stringSuccess. Protocol-native response.
response?unknowncurl -X POST 'https://api.musespark.ai/proxy/openai/v1/audio/speech' \ -H 'Content-Type: application/json' \ -d '{ "model": "string", "input": "string", "voice": "string"}'Example Response
null