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
}
'import requests
url = "https://direct.evolink.ai/v1/messages"
payload = {
"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
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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
})
};
fetch('https://direct.evolink.ai/v1/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://direct.evolink.ai/v1/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://direct.evolink.ai/v1/messages"
payload := strings.NewReader("{\n \"model\": \"evolink/auto\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Introduce the history of artificial intelligence\"\n }\n ],\n \"max_tokens\": 1024,\n \"temperature\": 0.7,\n \"top_p\": 0.9,\n \"top_k\": 40,\n \"stream\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://direct.evolink.ai/v1/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"evolink/auto\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Introduce the history of artificial intelligence\"\n }\n ],\n \"max_tokens\": 1024,\n \"temperature\": 0.7,\n \"top_p\": 0.9,\n \"top_k\": 40,\n \"stream\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://direct.evolink.ai/v1/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"evolink/auto\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Introduce the history of artificial intelligence\"\n }\n ],\n \"max_tokens\": 1024,\n \"temperature\": 0.7,\n \"top_p\": 0.9,\n \"top_k\": 40,\n \"stream\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "msg_01XFDUDYJgAACyzWYzeHhsX7",
"model": "gpt-5.4",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "인공지능의 발전 역사는 1950년대로 거슬러 올라갑니다..."
}
],
"usage": {
"input_tokens": 15,
"output_tokens": 156
}
}EvoLink Auto
EvoLink Auto - Claude 형식
Intelligent routing using Anthropic Messages API format
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
}
'import requests
url = "https://direct.evolink.ai/v1/messages"
payload = {
"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
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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
})
};
fetch('https://direct.evolink.ai/v1/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://direct.evolink.ai/v1/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://direct.evolink.ai/v1/messages"
payload := strings.NewReader("{\n \"model\": \"evolink/auto\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Introduce the history of artificial intelligence\"\n }\n ],\n \"max_tokens\": 1024,\n \"temperature\": 0.7,\n \"top_p\": 0.9,\n \"top_k\": 40,\n \"stream\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://direct.evolink.ai/v1/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"evolink/auto\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Introduce the history of artificial intelligence\"\n }\n ],\n \"max_tokens\": 1024,\n \"temperature\": 0.7,\n \"top_p\": 0.9,\n \"top_k\": 40,\n \"stream\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://direct.evolink.ai/v1/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"evolink/auto\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Introduce the history of artificial intelligence\"\n }\n ],\n \"max_tokens\": 1024,\n \"temperature\": 0.7,\n \"top_p\": 0.9,\n \"top_k\": 40,\n \"stream\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "msg_01XFDUDYJgAACyzWYzeHhsX7",
"model": "gpt-5.4",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "인공지능의 발전 역사는 1950년대로 거슬러 올라갑니다..."
}
],
"usage": {
"input_tokens": 15,
"output_tokens": 156
}
}스마트 모델 라우팅
Anthropic Messages API 형식을 사용하여 EvoLink Auto 지능형 모델 라우팅을 호출합니다.주요 특징
- Claude 네이티브 형식: Anthropic Messages API와 완벽하게 호환
- 지능형 라우팅: 적합한 모델을 자동으로 선택
- 투명한 응답: 실제 사용된 모델 이름을 포함
model 매개변수를 evolink/auto로 설정하고 /v1/messages 엔드포인트를 사용하세요.BaseURL: 기본 BaseURL은
https://direct.evolink.ai이며, 텍스트 모델 지원이 더 우수하고 장시간 연결을 지원합니다. https://api.evolink.ai는 멀티모달 서비스의 주력 엔드포인트이며, 텍스트 모델에 대해서는 대체 주소로 사용됩니다.인증
##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
본문
application/json
Use intelligent routing
사용 가능한 옵션:
evolink/auto 예시:
"evolink/auto"
Conversation messages
Minimum array length:
1Show child attributes
Show child attributes
예시:
[
{
"role": "user",
"content": "Introduce the history of artificial intelligence"
}
]
Maximum tokens to generate
필수 범위:
x >= 1예시:
1024
Sampling temperature
필수 범위:
0 <= x <= 2예시:
0.7
Nucleus sampling parameter
필수 범위:
0 <= x <= 1예시:
0.9
Top-K sampling
필수 범위:
x >= 1예시:
40
Enable streaming
⌘I