Skip to content
Docs menu

LLM models

Gemini 2.5 Flash

On this page

Gemini 2.5 Flash — frontier reasoning and generation through one API.

modelIdgemini-2-5-flash
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-2-5-flashRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredSend a message
MODELtextoptional
memoryselectoptionalfalse, true
structured_outputsselectoptionalfalse, true
function_callingselectoptionalfalse, true
google_searchselectoptionalfalse, true
thinkingselectoptionalfalse, true

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-2-5-flash","input":{"prompt":"In three vivid sentences, explain what causes the aurora borealis to shimmer in ribbons of green and violet across the polar night sky.","MODEL":"gemini-2.5-flash","memory":"false","structured_outputs":"false","function_calling":"false","google_search":"true","thinking":"true"}}'