Skip to main content
Server path: /deepseek | Type: Application | PCID required: Yes

Tools

ToolDescription
deepseek_create_chat_completionCreate a chat completion
deepseek_create_completionCreate a text completion (FIM)
deepseek_get_user_balanceGet user balance
deepseek_list_modelsList available models

deepseek_create_chat_completion

Create a chat completion Parameters:
ParameterTypeRequiredDefaultDescription
logprobsbooleanNoWhether to return log probabilities of the output tokens.
max_tokensintegerNoThe maximum number of tokens to generate in the response.
messagesobject[]YesA list of messages comprising the conversation so far.
modelstringYesID of the model to use.
reasoning_effortstringNoControls how much reasoning effort the model uses. Top-level parameter alongside thinking.
response_formatobjectNoAn object specifying the format of the response.
stopstring[]NoUp to 16 sequences where the API will stop generating further tokens.
streambooleanNoIf true, partial message deltas will be sent as server-sent events.
stream_optionsobjectNoOptions for streaming responses.
temperaturenumberNoSampling temperature between 0 and 2. Higher values make output more random.
thinkingobjectNoConfiguration for the thinking/reasoning mode.
tool_choiceobjectNoControls which tool is called by the model. ‘none’ disables tool calls, ‘auto’ lets the model decide, ‘required’ forces a tool call.
toolsobject[]NoA list of tools the model may call. Up to 128 functions.
top_logprobsintegerNoNumber of most likely tokens to return at each position (0-20). Requires logprobs to be true.
top_pnumberNoNucleus sampling parameter. The model considers tokens with top_p probability mass.
userstringNoA unique identifier representing your end-user. Max 512 characters, alphanumeric, dash, or underscore.

deepseek_create_completion

Create a text completion (FIM) Parameters:
ParameterTypeRequiredDefaultDescription
echobooleanNoIf true, echo back the prompt in addition to the completion.
logprobsintegerNoInclude the log probabilities on the most likely output tokens (0-20).
max_tokensintegerNoThe maximum number of tokens to generate.
modelstringYesID of the model to use. Only deepseek-v4-pro supports FIM completions.
promptstringYesThe prompt to generate completions for.
stopstring[]NoUp to 16 sequences where the API will stop generating.
streambooleanNoIf true, partial completion tokens will be sent as server-sent events.
stream_optionsobjectNoOptions for streaming responses.
suffixstringNoThe suffix that comes after the completion. Used for fill-in-the-middle.
temperaturenumberNoSampling temperature between 0 and 2.
top_pnumberNoNucleus sampling parameter.

deepseek_get_user_balance

Get user balance

deepseek_list_models

List available models