Skip to main content
POST
BaseURL: The default BaseURL is https://direct.evolink.ai, which has better support for text models and long-lived connections. https://api.evolink.ai is the primary endpoint for multimodal services and serves as a fallback address for text models.

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit the API Key Management Page to obtain your API Key

Add to request header:

Body

application/json
model
enum<string>
default:deepseek-v4-flash
required

Model ID

  • deepseek-v4-flash: fast and general-purpose, suited to everyday chat, summarization and extraction
  • deepseek-v4-pro: deep reasoning, suited to complex math, code and multi-step planning
Available options:
deepseek-v4-flash,
deepseek-v4-pro
Example:

"deepseek-v4-flash"

input

Model input. At least one of input and instructions must be provided.

  • String form: the whole text is treated as a single user message
  • Array form: a list of input items supporting five types — message, function_call, function_call_output, reasoning, web_search_call

Multi-turn conversations: the endpoint is stateless, so continuing a conversation requires putting the full history into the array.

Example:

"Introduce Hangzhou in one sentence."

instructions
string

System-level instructions, equivalent to a system message inserted at the very front; used to set the role, tone and output constraints.

Example:

"You are a meticulous technical writer. Keep answers concise."

stream
boolean
default:false

Whether to stream the response

  • false (default): returns the complete response object at once
  • true: pushes semantic SSE events; the final event is response.completed / response.incomplete / response.failed, and no [DONE] is sent
Example:

false

max_output_tokens
integer

Maximum number of output tokens for this generation (including thinking tokens). Range 1 to 393216 (384K). Leave empty to let the model decide.

Required range: 1 <= x <= 393216
Example:

4096

temperature
number
default:1

Sampling temperature; higher values make output more random. Has no effect in thinking mode.

Required range: 0 <= x <= 2
Example:

1

top_p
number
default:1

Nucleus sampling threshold. Adjust either this or temperature, not both. Has no effect in thinking mode.

Required range: x <= 1
Example:

1

top_logprobs
integer

Return the most likely candidate tokens and their log probabilities at each position.

Required range: 0 <= x <= 20
Example:

0

reasoning
object

Thinking mode configuration. DeepSeek V4 enables thinking by default; thinking content is returned as a reasoning output item, and its tokens count toward output and are billed at the output rate.

text
object

Text output format configuration.

tools
Tool definition · object[]

List of tools available to the model. Function tools are executed by the client, which returns the result as function_call_output; web_search is executed directly server-side with no client involvement.

tool_choice

Tool choice strategy

  • none: tool calling disabled
  • auto (default): the model decides
  • required: at least one tool must be called
  • {"type": "function", "name": "get_weather"}: force a specific function
  • {"type": "web_search"}: force a web search
Example:

"auto"

Response

Generation successful

Response object of the Responses endpoint.

id
string

Unique identifier of this response

Example:

"resp_9f2c1a4b8e7d"

object
string

Object type, always response

Example:

"response"

created_at
integer

Creation time as a Unix timestamp (seconds)

Example:

1755000000

status
enum<string>

Response status

  • completed: finished normally
  • in_progress: still generating
  • incomplete: truncated, e.g. by length; see incomplete_details
  • failed: generation failed; see error
Available options:
in_progress,
completed,
incomplete,
failed
Example:

"completed"

model
string

ID of the model that actually generated this response

Example:

"deepseek-v4-flash"

output
object[]

List of output items in generation order. Fields per type:

  • reasoning: the thinking process, with id, status, content (list of reasoning_text blocks) and summary
  • message: the final answer, with id, status, role and content (list of output_text blocks)
  • function_call: a function call from the model, with id, status, call_id, name and arguments; the client executes it and returns the result as function_call_output
  • web_search_call: a web search record executed server-side, with id, status and action (describing the search performed)
error
object | null

Failure reason; null on success

incomplete_details
object | null

Truncation reason; null when not truncated

usage
object

Token usage statistics (including cache and reasoning breakdowns)