curl -X POST 'https://octopusx.ai/v1beta/models/gemini-3-flash-preview:generateContent' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "your prompt"
}
]
}
],
"generationConfig": {
"maxOutputTokens": 4608,
"thinkingConfig": {
"thinkingLevel": "LOW"
}
}
}'
# Result: candidates[].content.parts[].text (json)Replace <YOUR_API_KEY> with the API key generated on your token management page.
Authentication
Authorization: Bearer ${API_KEY}
Endpoint Path
POST
Supported Parameters
ParameterTypeRequiredDefaultDescription
textareaRequired—Prompt
Response extraction
candidates[].content.parts[].textjson