Skip to content
Docs menu

LLM models

Gemini 3.1 Pro

On this page

Gemini 3.1 Pro — frontier reasoning and generation through one API.

modelIdgemini-3-1-pro
Modalitytext
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to completionPOST /api/v1/generateBase generation from a text prompt.
Poll taskGET /api/v1/task/{id}?model=gemini-3-1-proRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredSend a message
MODELtextoptional
memoryselectoptionalfalse, true
google_searchselectoptionalfalse, true
thinkingselectoptionalfalse, true
reasoning_effortselectoptionalLow, High

Example request

bash
curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer $YOUBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"gemini-3-1-pro","input":{"prompt":"Explain how honeybees tell the hive where flowers are, using one clear everyday analogy anyone can picture.","MODEL":"gemini-3.1-pro","memory":"false","google_search":"true","thinking":"true","reasoning_effort":"High"}}'