Create Response
Creates a model response, optionally interacting with custom tools via the Model Context Protocol (MCP). This endpoint supports conversational continuation and streaming.
Explore our cookbooks for detailed examples:
Request body
Response
Successful Response
Changes
Changed in 3 of the 27 revisions of this API.7
- ○
added the optional property
detail/items/ctxto the response with the422statusresponse-optional-property-added
- ○
added the optional property
detail/items/inputto the response with the422statusresponse-optional-property-added
- ○
- ○
added the optional property
output/items/anyOf[subschema #2: ToolCall]/argumentsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
output/items/anyOf[subschema #2: ToolCall]/call_idto the response with the200statusresponse-optional-property-added
- ○
added the optional property
output/items/anyOf[subschema #2: ToolCall]/nameto the response with the200statusresponse-optional-property-added
- ○
added the optional property
output/items/anyOf[subschema #2: ToolCall]/statusto the response with the200statusresponse-optional-property-added
- ○
- ○
endpoint added
endpoint-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○