メインコンテンツへスキップ
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": "人工知能の発展の歴史は1950年代に遡ります..."
    }
  ],
  "usage": {
    "input_tokens": 15,
    "output_tokens": 156
  }
}

スマートモデルルーティング

Anthropic Messages API形式を使用してEvoLink Autoインテリジェントモデルルーティングを呼び出します。

主な特徴

  • Claudeネイティブ形式:Anthropic Messages APIと完全互換
  • インテリジェントルーティング:適切なモデルを自動選択
  • 透明なレスポンス:実際に使用されたモデル名を含む
modelパラメータをevolink/autoに設定し、/v1/messagesエンドポイントを使用します。

承認

Authorization
string
header
必須

##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
model
enum<string>
必須

Use intelligent routing

利用可能なオプション:
evolink/auto
:

"evolink/auto"

messages
object[]
必須

Conversation messages

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

Maximum tokens to generate

必須範囲: x >= 1
:

1024

temperature
number

Sampling temperature

必須範囲: 0 <= x <= 2
:

0.7

top_p
number

Nucleus sampling parameter

必須範囲: 0 <= x <= 1
:

0.9

top_k
integer

Top-K sampling

必須範囲: x >= 1
:

40

stream
boolean
デフォルト:false

Enable streaming

レスポンス

200 - application/json

Success

id
string

Response unique identifier

model
string

Actual model name used

:

"claude-opus-4-6"

type
enum<string>
利用可能なオプション:
message
role
enum<string>
利用可能なオプション:
assistant
content
object[]
usage
object