v1

latestOpenAPI 3.0.32026-07-2691139249.7 KB
text_generator

Text Generator (Streaming)

Streaming text generation endpoint. Authenticates via API token (X-API-KEY + X-API-ID), validates the request, checks credits, calls the Gemini streaming API, and returns an SSE stream of Gemini-native response chunks on the same connection.

The final SSE chunk includes a creatify object with the generation id and credits_used.

post/sse/text_generator/stream/

Request body

model_namestring required

Name of the Gemini model (e.g. gemini-2.5-flash).

system_instructionstring

Optional system instruction for the model.

webhook_urlstring uri

Webhook URL for async status updates.

syncboolean

If true, the request blocks until generation completes and returns the result directly. Default is false (async).

Response

SSE stream of Gemini response chunks. Content-Type: text/event-stream.