Complete Reference · May 2026
modelstring — required
messagesarray — [{role, content}]
temperature0–2 · 0=deterministic, 1=balanced
streambool — SSE streaming
response_format{type:"json_schema"} structured output
toolsarray — function definitions
tool_choice"auto" | "none" | force function
parallel_tool_callsbool — multiple tools at once
seedint — deterministic outputs (best effort)
reasoning_effort"low"|"medium"|"high" — o-series only
max_completion_tokensint — max response tokens
logprobsbool — token log probabilities
userstring — unique user ID for abuse detection
json_schema with strict:true for guaranteed JSON. Avoids hallucinated fields.client.beta.assistantsgpt-4o-transcribe — audio → text, multi-languagetts-1, tts-1-hd, gpt-4o-mini-tts — 6 voices, MP3/Opusgpt-4o-realtime-preview — bidirectional audio WebSocket, sub-300msjson_schema with strict:true. Eliminates parsing errors.reasoning_effort:"high" for hard problems.OPENAI_API_KEY, no trailing whitespace.stream:true for long outputs. Increase client timeout.