Chat & Responses
Generate Gemini Content
Creates standard or streaming content using the Gemini-compatible interface.
POST
/v1beta/models/{model}:{GenerateContentType}Parameters
| Parameter | Type / location | Description |
|---|---|---|
modelRequired | stringpath | Gemini-compatible model ID. |
GenerateContentTypeRequired | stringpath | Generation method appended after the model name. generateContentstreamGenerateContent |
contentsRequired | arraybody | Conversation content and parts. |
generationConfigOptional | objectbody | Optional sampling and output configuration. |
Request examples
cURL
curl --request POST \
--url 'https://api.juhenextvip.com/v1beta/models/gemini-3.5-flash:generateContent' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role": "user",
"parts": [
{ "text": "Explain edge computing in one paragraph." }
]
}
]
}'Response examples
JSON
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{ "text": "Edge computing processes data closer..." }
]
},
"finishReason": "STOP"
}
]
}