Generate Content
Updated: Nov 11, 2026
POST
Native Gemini format. Supports Gemini models only. For streaming, replace generateContent in the path with streamGenerateContent and add the query parameter alt=sse.
See API Guide - Authentication.
model*stringModel ID, e.g. gemini-3.5-flash.
See API Guide - Common Request Headers.
application/json- body
contents*array<>Conversation contents, in turn order.
systemInstruction?generationConfig?Generation parameters.
tools?array<>Tool definitions.
toolConfig?Tool calling configuration.
safetySettings?array<>Safety filter settings.
Successful response
application/json- response
responseId?stringResponse ID.
modelVersion?stringVersion of the model actually used.
candidates?array<>List of candidates.
usageMetadata?Token usage statistics.
curl -X POST 'https://api.cysuo.com/v1beta/models/string:generateContent' \ -H 'Content-Type: application/json' \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "Hello, please introduce yourself." } ] } ]}'Example Response200
{ "responseId": "string", "modelVersion": "string", "candidates": [ { "content": { "role": "user", "parts": [ { "text": "string", "inlineData": { "mimeType": "string", "data": "string" }, "fileData": { "mimeType": "string", "fileUri": "string" } } ] }, "finishReason": "string", "index": 0 } ], "usageMetadata": { "promptTokenCount": 0, "candidatesTokenCount": 0, "totalTokenCount": 0, "cachedContentTokenCount": 0, "thoughtsTokenCount": 0 }}