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 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"

max_tokens
integer
required

Maximum number of tokens to generate.

Required (per the Anthropic protocol). Generation will be truncated if the model exceeds this value.

Example:

1024

messages
object[]
required

List of conversation messages (excluding system). Each message contains a role (user / assistant) and content (a string or content block array).

system

System prompt. Pass a string for plain text; pass a content block array (with cache_control on the block) when declaring explicit caching.

temperature
number

Sampling temperature, range [0, 2].

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

Nucleus sampling parameter, range (0, 1].

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

Sample from the K tokens with the highest probability.

stop_sequences
string[]

Custom stop sequences; generation stops when one is matched.

stream
boolean
default:false

Whether to return an Anthropic SSE event stream.

thinking
object

Deep thinking configuration. When enabled, the model returns its thinking process as thinking content blocks.

tools
object[]

List of tool definitions (Anthropic tools format) for Function Calling.

Response

Generated successfully

id
string
Example:

"msg_xxxxxxxx"

type
string
Example:

"message"

role
string
Example:

"assistant"

model
string
Example:

"qwen3.8-max-preview"

content
object[]

Array of reply content blocks

stop_reason
string

Stop reason: end_turn (normal completion), max_tokens (limit reached), stop_sequence (stop sequence matched), tool_use (a tool call is required)

Example:

"end_turn"

usage
object

Token usage statistics (Anthropic semantics: input_tokens excludes cache and adds up mutually exclusively with the cache fields).