The Call
Request Fields
system (or developer) sets instructions, user is the human turn, assistant replays a previous model turn, and tool carries a function result and must reference its call via tool_call_id. Name a model explicitly so behavior does not change when defaults change.
Response
choices[0].message.contentis the answer. There is exactly one choice.finish_reason:stop,length(token cap),tool_calls, orerror.usage:prompt_tokens,completion_tokens,total_tokens. Reasoning models addreasoning_tokens.system_fingerprintis alwaysnull.
Attested Hardware
Errors
- Empty
messages. At least one is required. - A
toolmessage withouttool_call_id. - Expecting several choices. Nito returns one. For several models on one prompt, use Model Fusion in the Browser App or Plugin.
Related
Stream Your First Response
Streaming.
Check Usage
What a call used.
Chat Completions Endpoint
Full reference.

