MuseSpark
MuseSpark
LLM integrationOpenAI protocol

OpenAI protocol

Use OpenAI-shaped requests for text, embeddings, images, and audio.

Configure your client with base URL https://api.musespark.ai/proxy/openai/v1 and a MuseSpark API key.

Integration path

  1. Follow the quickstart for a complete request.
  2. Read streaming before enabling stream.
  3. Find the operation you need in the API reference.
  4. Open the selected item's model documentation for parameter combinations and model-specific behavior.

Select an authorized model

curl --fail-with-body 'https://api.musespark.ai/proxy/openai/v1/models' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY"

The response is a native {"object":"list","data":[...]} object. Use an identifier from data.

Response families

Chat Completions and Responses return their native objects or SSE. Embeddings and rerank return JSON. Speech returns audio bytes; transcription and translation accept multipart file uploads.

Model support varies by operation. A model listed in the catalog does not automatically support every OpenAI endpoint.