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 API Key Management Page to get your API Key

Add to request header:

Body

application/json
model
enum<string>
default:gpt-5.4
required

Model name for chat completion

Available options:
gpt-5.4
Example:

"gpt-5.4"

messages
object[]
required

List of messages for the conversation, supports multi-turn dialogue and multimodal input (text, images)

Minimum array length: 1
stream
boolean

Whether to stream the response

  • true: Stream response, returns content chunk by chunk in real-time
  • false: Wait for complete response and return all at once
Example:

false

temperature
number

Sampling temperature, controls randomness of output

Notes:

  • Lower values (e.g., 0.2): More deterministic and focused output
  • Higher values (e.g., 1.5): More random and creative output
Required range: 0 <= x <= 2
Example:

0.7

top_p
number

Nucleus sampling parameter

Notes:

  • Controls sampling from tokens with cumulative probability
  • For example, 0.9 means sampling from tokens with top 90% cumulative probability
  • Default: 1.0 (considers all tokens)

Recommendation: Do not adjust both temperature and top_p simultaneously

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

0.9

top_k
integer

Top-K sampling parameter

Notes:

  • For example, 10 means only considering the top 10 most probable tokens during each sampling step
  • Smaller values make output more focused
  • Default: unlimited
Required range: x >= 1
Example:

40

Response

Chat completion successful

id
string

Unique identifier for the chat completion

Example:

"chatcmpl-20251010015944503180122WJNB8Eid"

model
string

The model used for completion

Example:

"gpt-5.4"

object
enum<string>

Response type

Available options:
chat.completion
Example:

"chat.completion"

created
integer

Unix timestamp when the completion was created

Example:

1760032810

choices
object[]

List of completion choices

usage
object

Token usage statistics