API referenceGemini-compatible API
Gemini: streamGenerateContent
/proxy/gemini/v1beta/models/{model}:streamGenerateContent · 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.
model*stringCatalog model ID; percent-encode the identifier as appropriate.
alt?"sse"Request SSE event framing.
Value in
"sse"application/json- body
contents*array<>generationConfig?Success. Protocol-native response.
- response
Protocol-native JSON. Exact fields and optional features depend on the selected model and surface; not a {code,msg,data} envelope.
[key: string]?anycurl -X POST 'https://api.musespark.ai/proxy/gemini/v1beta/models/string:streamGenerateContent' \ -H 'Content-Type: application/json' \ -d '{ "contents": [ { "parts": [ {} ] } ]}'Example Response
{}