Skip to content
Docs menu

LLM models

GPT-5.2

On this page

GPT-5.2 — frontier reasoning and generation through one API.

modelIdgpt-5-2
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=gpt-5-2Retrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredSend a message
MODELtextoptional
memoryselectoptionalfalse, true
web_searchselectoptionalfalse, 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":"gpt-5-2","input":{"prompt":"Draft a warm, friendly three-sentence welcome message for a new member joining a downtown coworking space.","MODEL":"gpt-5-2","memory":"false","web_search":"true","reasoning_effort":"High"}}'