Create Function Calling
POST
/v1/responses
- Register callable functions with the model via
tools(Function calling) - Compatible with the OpenAI Responses API create response endpoint
- Some models (e.g. o3-pro, codex-mini-latest) only support the Response format
- Official docs: Create a model response
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
model
string
Required
ID of the model to use. See the model endpoint compatibility table for which models work with the Responses API.
input
object[]
Required
Text, image, and other inputs for the model to generate a response.
Expand
tool_choice
string
Controls whether the model calls a function, e.g. auto, none, or a specific function name.
tools
object[]
List of tools the model may call; currently supports tools with type function.
Expand
metadata
object
Optional metadata, such as custom fields like model_id.
Responses
application/json
object
id
string
Required
object
string
Required
created
integer
Required
choices
object[]
Required
usage
object
Required