Parameters
JSON body
Request body
application/jsonmessagesobject[]RequiredFull multi-turn conversation history including the last user turn.
Each array item:
role"user" | "assistant"RequiredcontentstringRequiredLength: 1–24000
model"gemini-flash-latest" | "gemini-2.5-flash-lite" | "gpt-5" | "gpt-4o" | "gpt-5-mini"OptionalAllowed model identifier. Defaults to gemini-flash-latest.
maxStepsstring | integerOptionalMaximum agent-loop steps before stopping. Hard-capped at 12 to bound cost per turn.
One of 2:
Variant 1
stringinteger
Default:
0Variant 2
integer
Maximum agent-loop steps before stopping. Hard-capped at 12 to bound cost per turn.
Range: 1–12
roomIdstringOptionalLength: 24–24