MuseSpark
MuseSpark
API referenceGemini-compatible API

Gemini: streamGenerateContent

/proxy/gemini/v1beta/models/{model}:streamGenerateContent · POST

Required access: llm_compat with llm:invoke. Authentication.

POST
/proxy/gemini/v1beta/models/{model}:streamGenerateContent

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

model*string

Catalog model ID; percent-encode the identifier as appropriate.

Query Parameters

alt?"sse"

Request SSE event framing.

Value in"sse"

Request Body

application/json
  1. body
contents*array<>
generationConfig?

Response Body

Success. Protocol-native response.

  1. response

Protocol-native JSON. Exact fields and optional features depend on the selected model and surface; not a {code,msg,data} envelope.

[key: string]?any
Example Request
curl -X POST 'https://api.musespark.ai/proxy/gemini/v1beta/models/string:streamGenerateContent' \  -H 'Content-Type: application/json' \  -d '{  "contents": [    {      "parts": [        {}      ]    }  ]}'
Example Response
{}