deepseek

0.1.0

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 (9)

Creates a model response for the given chat conversation.

POST /chat/completions Completion_Response 1 argument
Operation

Creates a Fill-In-the-Middle (FIM) code completion.

POST /beta/completions Fim_Completion_Response 1 argument
Operation

Deletes a file.

DELETE /files/:file_id File_Deleted 1 argument
Operation

Returns a list of files that belong to the user, with cursor-based pagination.

GET /files File_Collection 4 arguments
Operation

Returns information about a specific file.

GET /files/:file_id File 1 argument
Operation

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).

POST /files File 1 argument
Operation

Lists the currently available models.

GET /models Model_List_Response 0 arguments
Operation

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.

POST /responses Response_Response 1 argument
Operation

Retrieves the current user account balance information.

GET /user/balance User_Balance_Response 0 arguments
Operation
Types (68)
Completion_Choice

A choice generated by the chat completion model.

Type
Completion_Choice_Logprobs

Log probability information for the choice.

Type
Completion_Content_Part

A content part of a user or tool message.

Type
Completion_Content_Part_File

File content part.

Type
Completion_Content_Part_Image

Image content part.

Type
Completion_Content_Part_Image_Url

Image source details.

Type
Completion_Content_Part_Text

Text content part.

Type
Completion_Message

Base message struct for conversation context.

Type
Completion_Message_Assistant

Assistant message object.

Type
Completion_Message_System

System message object.

Type
Completion_Message_Tool

Tool message object.

Type
Completion_Message_User

User message object.

Type
Completion_Request

Request payload for chat completion.

Type
Completion_Response

Response structure for chat completion.

Type
Completion_Response_Format

An object specifying the format that the model must output.

Type
Completion_Stream_Options

Options for streaming responses.

Type
Completion_Thinking

Controls the switch between thinking and non-thinking mode.

Type
Completion_Token_Logprob

Log probability information for a token.

Type
Completion_Token_Top_Logprob

Top log probability element.

Type
Completion_Tool

Tool definition for function calling.

Type
Completion_Tool_Call

A tool call generated by the model.

Type
Completion_Tool_Call_Function

The function call details.

Type
Completion_Tool_Choice

Forces the model to call a specific function.

Type
Completion_Tool_Choice_Function

The function to call.

Type
Completion_Tool_Function

Function declaration details.

Type
Completion_Usage

Usage statistics for the completion request.

Type
Completion_Usage_Completion_Details

Breakdown of tokens used in the completion.

Type
Completion_Usage_Prompt_Details

Breakdown of tokens used in the prompt.

Type
Error

Standard error response wrapper.

Type
Error_Detail

Detailed error message information.

Type
File

An uploaded file object.

Type
File_Collection

A paginated list of files.

Type
File_Deleted

File deletion status.

Type
Fim_Completion_Choice

Completion choice for FIM requests.

Type
Fim_Completion_Logprobs

Log probability information for a FIM completion choice.

Type
Fim_Completion_Request

Request payload for Fill-In-the-Middle (FIM) completion.

Type
Fim_Completion_Response

Response payload for FIM completion.

Type
Model_Api_Capabilities

Model behavior declared per API protocol.

Type
Model_Api_Capabilities_Anthropic

Capabilities for the Anthropic Messages API.

Type
Model_Effort

The effort levels available when thinking mode is enabled.

Type
Model_Item

Model details.

Type
Model_List_Response

Response containing available models.

Type
Response_Content_Part

A content part of a Responses API input item.

Type
Response_Content_Part_InputImage

Input image content part.

Type
Response_Content_Part_InputText

Input text content part.

Type
Response_Content_Part_OutputText

Output text content part.

Type
Response_Content_Part_ReasoningText

Reasoning text content part.

Type
Response_Error

The error object of a failed response.

Type
Response_Incomplete_Details

The details about why the response is incomplete.

Type
Response_Input

An input item for the Responses API.

Type
Response_Input_FunctionCall

A function call input item.

Type
Response_Input_FunctionCallOutput

A function call output input item.

Type
Response_Input_Message

A message input item.

Type
Response_Input_Reasoning

A reasoning input item.

Type
Response_Output

An output item generated by the model.

Type
Response_Output_Content

A content part of an output item.

Type
Response_Reasoning

Configuration of the thinking mode.

Type
Response_Request

Request payload for the Responses API.

Type
Response_Response

A model response of the Responses API.

Type
Response_Text

Configuration of the text output.

Type
Response_Text_Format

The output format.

Type
Response_Tool

A tool the model may call.

Type
Response_Tool_Choice

Forces the model to call a specific function.

Type
Response_Usage

Token usage statistics for the response.

Type
Response_Usage_Input_Details

Breakdown of the input tokens.

Type
Response_Usage_Output_Details

Breakdown of the output tokens.

Type
User_Balance_Info

Detailed currency balance info.

Type
User_Balance_Response

Response structure for user balance query.

Type
part of the Apioo-Project