Explore all defined operations, data models and types for this version. For live editing and client SDK generators, inspect on TypeHub.
Creates a model response for the given chat conversation.
Creates a Fill-In-the-Middle (FIM) code completion.
Deletes a file.
Returns a list of files that belong to the user, with cursor-based pagination.
Returns information about a specific file.
Uploads an image file (JPEG, PNG, GIF or WebP, max 64 MiB) which can later be referenced by its file_id. Form fields: file, purpose (user_data) and optionally expires_after[anchor] (created_at) and expires_after[seconds] (3600-2592000).
Lists the currently available models.
Creates a model response in the OpenAI Responses API format. The API is stateless, so the full conversation history must be sent on each request.
Retrieves the current user account balance information.
A choice generated by the chat completion model.
Log probability information for the choice.
A content part of a user or tool message.
File content part.
Image content part.
Image source details.
Text content part.
Base message struct for conversation context.
Assistant message object.
System message object.
Tool message object.
User message object.
Request payload for chat completion.
Response structure for chat completion.
An object specifying the format that the model must output.
Options for streaming responses.
Controls the switch between thinking and non-thinking mode.
Log probability information for a token.
Top log probability element.
Tool definition for function calling.
A tool call generated by the model.
The function call details.
Forces the model to call a specific function.
The function to call.
Function declaration details.
Usage statistics for the completion request.
Breakdown of tokens used in the completion.
Breakdown of tokens used in the prompt.
Standard error response wrapper.
Detailed error message information.
An uploaded file object.
A paginated list of files.
File deletion status.
Completion choice for FIM requests.
Log probability information for a FIM completion choice.
Request payload for Fill-In-the-Middle (FIM) completion.
Response payload for FIM completion.
Model behavior declared per API protocol.
Capabilities for the Anthropic Messages API.
The effort levels available when thinking mode is enabled.
Model details.
Response containing available models.
A content part of a Responses API input item.
Input image content part.
Input text content part.
Output text content part.
Reasoning text content part.
The error object of a failed response.
The details about why the response is incomplete.
An input item for the Responses API.
A function call input item.
A function call output input item.
A message input item.
A reasoning input item.
An output item generated by the model.
A content part of an output item.
Configuration of the thinking mode.
Request payload for the Responses API.
A model response of the Responses API.
Configuration of the text output.
The output format.
A tool the model may call.
Forces the model to call a specific function.
Token usage statistics for the response.
Breakdown of the input tokens.
Breakdown of the output tokens.
Detailed currency balance info.
Response structure for user balance query.