openai

0.2.2

Explore all defined operations, data models and types for this version. For live editing and client SDK generators, inspect on TypeHub.

Open in TypeHub
Operations (4)

Creates a model response for the given chat conversation.

POST /v1/chat/completions Completion_Response 1 argument
Operation

Delete a stored chat completion. Only Chat Completions that have been created with the store parameter set to true can be deleted.

DELETE /v1/chat/completions/:completion_id Completion_Deleted 1 argument
Operation

List stored Chat Completions. Only Chat Completions that have been stored with the store parameter set to true will be returned.

GET /v1/chat/completions Completion_Collection 4 arguments
Operation

Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model's response.

POST /v1/responses Response_Response 1 argument
Operation
Types (36)
Completion_Choice
Type
Completion_Collection
Type
Completion_Deleted
Type
Completion_Message
Type
Completion_Message_Assistant
Type
Completion_Message_Developer
Type
Completion_Message_System
Type
Completion_Message_Tool
Type
Completion_Message_User
Type
Completion_Request
Type
Completion_Response
Type
Completion_Tokens_Details
Type
Completion_Usage
Type
Error
Type
Error_Detail
Type
Prompt_Tokens_Details
Type
Response_MCP_Tool
Type
Response_Prompt
Type
Response_Reasoning
Type
Response_Request
Type
Response_Request_Input

An item representing part of the context for the response to be generated by the model. Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.

Type
Response_Request_Input_FunctionCall

A tool call to run a function. See the function calling guide for more information.

Type
Response_Request_Input_FunctionCallOutput

The output of a function tool call.

Type
Response_Request_Input_McpListTools

A list of tools available on an MCP server.

Type
Response_Request_Input_Message
Type
Response_Request_Text
Type
Response_Request_Text_Format
Type
Response_Request_Text_Format_JsonSchema
Type
Response_Request_Text_Format_Text
Type
Response_Request_Tool
Type
Response_Request_Tool_Function

Defines a function in your own code the model can choose to call.

Type
Response_Response
Type
Response_Response_Error
Type
Response_Response_Output
Type
Response_Response_Output_FunctionCall
Type
Response_Response_Output_Message

An output message from the model.

Type
part of the Apioo-Project