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