MuseSpark
MuseSpark
API referenceOpenAI-compatible API

OpenAI: Generate speech

/proxy/openai/v1/audio/speech · POST

Required access: llm_compat with llm:invoke. Authentication.

POST
/proxy/openai/v1/audio/speech

Authorization

headerAuthorizationBearer <token>

MuseSpark API key. Tasks accept a case-insensitive Bearer prefix; compatibility extraction requires Bearer with this casing.

Request Body

application/json
  1. body
model*string
input*string
voice*string
response_format?string

Response Body

Success. Protocol-native response.

response?unknown
Example Request
curl -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