Skip to main content
POST
BaseURL note: The default BaseURL is https://direct.evolink.ai, which offers better support for text models and long connections. https://api.evolink.ai is the primary multimodal endpoint; use it when your request includes image / audio / video input.

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit API Key Management Page to get your API Key

Add to request header:

Body

application/json
model
enum<string>
required

Chat model name

Available options:
qwen3.8-max-preview
Example:

"qwen3.8-max-preview"

messages
(System Message · object | User Message · object | Assistant Message · object | Tool Message · object)[]
required

List of conversation messages, supporting multi-turn conversations. Messages from different roles (system / user / assistant / tool) have different field structures; select the corresponding role to view details.

enable_thinking
boolean
default:false

Whether to enable deep thinking

  • true: the model outputs its thinking process, returned through reasoning_content
  • false (default): does not output the thinking process

Note: some models require this to be explicitly set to true to return thinking content in non-streaming calls.

temperature
number

Sampling temperature, controls output randomness. Lower values are more deterministic, higher values more diverse. Range [0, 2]. It is recommended not to adjust temperature and top_p at the same time.

Required range: 0 <= x <= 2
top_p
number

Nucleus Sampling parameter, samples from the tokens within the top cumulative probability. Range (0, 1]. It is recommended not to adjust temperature and top_p at the same time.

Required range: 0 <= x <= 1
max_completion_tokens
integer

Upper limit on the length of generated content (in tokens), including the chain of thought and the answer. Recommended for thinking models. The default and maximum values are both the model's maximum output length; once exceeded, generation stops early with finish_reason=length.

max_tokens
integer

Legacy generation length limit parameter.

Deprecated: new integrations should use max_completion_tokens instead. This parameter only limits the answer portion (excluding the chain of thought).

stream
boolean
default:false

Whether to return the response in a streaming manner.

  • true: returned chunk by chunk via SSE (Server-Sent Events)
  • false (default): returns the full response at once
stream_options
object

Streaming response options, effective only when stream=true.

tools
object[]

List of tool definitions for Function Calling. Each tool must define a name, description, and parameter schema.

Response

Conversation generated successfully

id
string

Unique identifier for this conversation

Example:

"chatcmpl-xxxxxxxx"

object
string
Example:

"chat.completion"

created
integer

Creation time (Unix seconds)

Example:

1735120033

model
string
Example:

"qwen3.8-max-preview"

choices
object[]
usage
object

Token usage statistics.