MuseSpark
MuseSpark
LLM integrationGemini protocol

Gemini protocol

Use native Generate Content and streaming requests.

Native Gemini requests place the model ID in the URL and send contents containing parts.

OperationPath
Generate Content/proxy/gemini/v1beta/models/{model}:generateContent
Stream Generate Content/proxy/gemini/v1beta/models/{model}:streamGenerateContent?alt=sse

Integration path

Authentication

Send Authorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY. The gateway does not accept x-goog-api-key or the key= query parameter for authentication.

Select a model

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

The native response has a models array. Use its model identifier and check the selected item's detailed guide.