curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen3.8-max",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "こんにちは、自己紹介してください"
}
]
}
'{
"id": "chatcmpl-xxxxxxxx",
"object": "chat.completion",
"created": 1735120033,
"model": "qwen3.8-max",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "こんにちは!私は通義千問 Qwen3.8-Max です。",
"reasoning_content": "<string>",
"tool_calls": [
{}
]
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 3019,
"completion_tokens": 104,
"total_tokens": 3123,
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_tokens_details": {
"cached_tokens": 2048,
"cache_creation_input_tokens": 0
}
}
}{
"error": {
"code": 400,
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": 401,
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": 402,
"message": "Insufficient credits",
"type": "insufficient_quota"
}
}{
"error": {
"code": 429,
"message": "Rate limit exceeded",
"type": "rate_limit_error"
}
}{
"error": {
"code": 500,
"message": "Internal server error",
"type": "server_error"
}
}Qwen3.8-Max - 完全パラメータドキュメント
- OpenAI Chat Completions プロトコルで Qwen3.8-Max を呼び出します
- 複数ターン対話:単一ターンまたは複数ターンのコンテキスト対話に対応
- システムプロンプト:
role=systemメッセージで AI の役割と動作を設定 - マルチモーダル入力:
contentに content part 配列を渡し、text/image_url/input_audio/video_urlに対応 - コンテキストキャッシュ:content part に
cache_controlを付けて明示的キャッシュを宣言;ヒット状況は応答のusage.prompt_tokens_detailsを参照 - 思考モード:
enable_thinking=trueで開始し、思考内容はreasoning_contentで返します - ストリーミング出力:
stream=trueの場合、SSE でチャンクごとに返します
curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen3.8-max",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "こんにちは、自己紹介してください"
}
]
}
'{
"id": "chatcmpl-xxxxxxxx",
"object": "chat.completion",
"created": 1735120033,
"model": "qwen3.8-max",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "こんにちは!私は通義千問 Qwen3.8-Max です。",
"reasoning_content": "<string>",
"tool_calls": [
{}
]
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 3019,
"completion_tokens": 104,
"total_tokens": 3123,
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_tokens_details": {
"cached_tokens": 2048,
"cache_creation_input_tokens": 0
}
}
}{
"error": {
"code": 400,
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": 401,
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": 402,
"message": "Insufficient credits",
"type": "insufficient_quota"
}
}{
"error": {
"code": 429,
"message": "Rate limit exceeded",
"type": "rate_limit_error"
}
}{
"error": {
"code": 500,
"message": "Internal server error",
"type": "server_error"
}
}https://direct.evolink.ai で、テキストモデルへのサポートがより優れ、長時間接続に対応しています;https://api.evolink.ai はマルチモーダル主力アドレスで、画像 / 音声 / 動画入力を含む場合はこのアドレスを使用してください。承認
##すべての API で Bearer Token 認証が必要です##
API キーの取得:
API キー管理ページで API キーを取得してください
リクエストヘッダーに追加:
Authorization: Bearer YOUR_API_KEY
ボディ
対話モデル名
qwen3.8-max "qwen3.8-max"
対話メッセージのリスト、複数ターン対話に対応。ロール(system / user / assistant / tool)ごとにメッセージのフィールド構造が異なるため、対応するロールを選択して確認してください。
- System Message
- User Message
- Assistant Message
- Tool Message
Show child attributes
Show child attributes
深い思考を有効にするかどうか
true:モデルが思考過程を出力し、reasoning_contentで返しますfalse(デフォルト):思考過程を出力しません
注:一部のモデルでは、非ストリーミング呼び出し時に明示的に
trueを設定しないと思考内容を返しません。
サンプリング温度、出力のランダム性を制御します。低い値ほど確定的、高い値ほど多様になります。値の範囲は [0, 2]。temperature と top_p を同時に調整しないことを推奨します。
0 <= x <= 2核サンプリング(Nucleus Sampling)パラメータ、累積確率が上位の token からサンプリングします。値の範囲は (0, 1]。temperature と top_p を同時に調整しないことを推奨します。
0 <= x <= 1生成内容の長さの上限(Token 数)、思考の連鎖と回答を含みます。思考系モデルではこのパラメータの使用を推奨します。デフォルト値と最大値はいずれもモデルの最大出力長です;超過すると finish_reason=length で早期停止します。
旧版の生成長制限パラメータ。
非推奨:新規導入では
max_completion_tokensを使用してください。このパラメータは回答部分のみを制限します(思考の連鎖は含みません)。
応答をストリーミング方式で返すかどうか。
true:SSE(Server-Sent Events)でチャンクごとに返しますfalse(デフォルト):完全な応答を一度に返します
ストリーミング応答オプション、stream=true の場合のみ有効です。
Show child attributes
Show child attributes
ツール定義のリスト、Function Calling に使用します。各ツールには名前、説明、パラメータ schema を定義する必要があります。
Show child attributes
Show child attributes