Skip to main content
POST
/
v1
/
messages
Intelligent Model Routing (Claude Format)
curl --request POST \
  --url https://direct.evolink.ai/v1/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "evolink/auto",
  "messages": [
    {
      "role": "user",
      "content": "Introduce the history of artificial intelligence"
    }
  ],
  "max_tokens": 1024,
  "temperature": 0.7,
  "top_p": 0.9,
  "top_k": 40,
  "stream": false
}
'
{
  "id": "msg_01XFDUDYJgAACyzWYzeHhsX7",
  "model": "gpt-5.4",
  "type": "message",
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "The history of artificial intelligence dates back to the 1950s..."
    }
  ],
  "usage": {
    "input_tokens": 15,
    "output_tokens": 156
  }
}

Smart Model Routing

Call EvoLink Auto intelligent model routing using Anthropic Messages API format.

Key Features

  • Claude Native Format: Fully compatible with Anthropic Messages API
  • Intelligent Routing: Automatically selects a suitable model
  • Transparent Response: Response includes the actual model name used
Set the model parameter to evolink/auto and use the /v1/messages endpoint.

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit API Key Management to get your API Key

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
required

Use intelligent routing

Available options:
evolink/auto
Example:

"evolink/auto"

messages
object[]
required

Conversation messages

Minimum array length: 1
Example:
[
  {
    "role": "user",
    "content": "Introduce the history of artificial intelligence"
  }
]
max_tokens
integer
required

Maximum tokens to generate

Required range: x >= 1
Example:

1024

temperature
number

Sampling temperature

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

0.7

top_p
number

Nucleus sampling parameter

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

0.9

top_k
integer

Top-K sampling

Required range: x >= 1
Example:

40

stream
boolean
default:false

Enable streaming

Response

200 - application/json

Success

id
string

Response unique identifier

model
string

Actual model name used

Example:

"claude-opus-4-6"

type
enum<string>
Available options:
message
role
enum<string>
Available options:
assistant
content
object[]
usage
object