メインコンテンツへスキップ
POST
/
v1
/
chat
/
completions
curl --request POST \
  --url https://direct.evolink.ai/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-5.6-sol",
  "messages": [
    {
      "role": "user",
      "content": "Please introduce yourself"
    }
  ]
}
'
{
  "id": "chatcmpl-20251010015944503180122WJNB8Eid",
  "model": "gpt-5.6-sol",
  "object": "chat.completion",
  "created": 1760032810,
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! I'm GPT-5.6, with enhanced reasoning and understanding capabilities. I excel at handling complex problems, multi-step reasoning, and code generation.\\n\\nKey features include:\\n- Stronger logical reasoning\\n- Better context understanding\\n- More accurate code generation"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 13,
    "completion_tokens": 1891,
    "total_tokens": 1904,
    "prompt_tokens_details": {
      "cached_tokens": 0,
      "text_tokens": 13,
      "audio_tokens": 0,
      "image_tokens": 0
    },
    "completion_tokens_details": {
      "text_tokens": 0,
      "audio_tokens": 0,
      "reasoning_tokens": 1480
    },
    "input_tokens": 0,
    "output_tokens": 0,
    "input_tokens_details": null
  }
}
{
"error": {
"code": 400,
"message": "無効なリクエストパラメータ",
"type": "invalid_request_error"
}
}
{
"error": {
"code": 401,
"message": "Invalid or expired token",
"type": "authentication_error"
}
}
{
"error": {
"code": 402,
"message": "クォータ不足",
"type": "insufficient_quota_error",
"fallback_suggestion": "https://evolink.ai/dashboard/billing"
}
}
{
"error": {
"code": 403,
"message": "Access denied for this model",
"type": "permission_error",
"param": "model"
}
}
{
"error": {
"code": 404,
"message": "Specified model not found",
"type": "not_found_error",
"param": "model",
"fallback_suggestion": "gpt-5.6-sol"
}
}
{
"error": {
"code": 413,
"message": "Image file too large",
"type": "request_too_large_error",
"param": "content",
"fallback_suggestion": "compress image to under 10MB"
}
}
{
"error": {
"code": 429,
"message": "レート制限を超過しました",
"type": "rate_limit_error",
"fallback_suggestion": "retry after 60 seconds"
}
}
{
"error": {
"code": 500,
"message": "内部サーバーエラー",
"type": "internal_server_error",
"fallback_suggestion": "try again later"
}
}
{
"error": {
"code": 502,
"message": "Upstream AI service unavailable",
"type": "upstream_error",
"fallback_suggestion": "try different model"
}
}
{
"error": {
"code": 503,
"message": "サービス一時利用不可",
"type": "service_unavailable_error",
"fallback_suggestion": "retry after 30 seconds"
}
}
BaseURL:デフォルトの BaseURL は https://direct.evolink.ai で、テキストモデルへの対応が優れており、長時間接続をサポートします。https://api.evolink.ai はマルチモーダルの主力エンドポイントで、テキストモデルに対しては代替アドレスとして使用されます。

承認

Authorization
string
header
必須

すべてのAPIにBearer Token認証が必要です

APIキーの取得:

APIキー管理ページにアクセスしてAPIキーを取得してください

リクエストヘッダーに追加:

Authorization: Bearer YOUR_API_KEY

ボディ

application/json
model
enum<string>
デフォルト:gpt-5.6-sol
必須

チャット補完用モデル名

利用可能なオプション:
gpt-5.6-sol,
gpt-5.6-terra
:

"gpt-5.6-sol"

messages
object[]
必須

会話用メッセージリスト、マルチターン対話とマルチモーダル入力(テキスト、画像)をサポート

Minimum array length: 1
stream
boolean

レスポンスをストリーミングするかどうか

  • true: ストリームレスポンス、リアルタイムでチャンク単位にコンテンツを返却
  • false: 完全なレスポンスを待って一括で返却
:

false

temperature
number

サンプリング温度、出力のランダム性を制御

注意:

  • 低い値(例: 0.2): より決定的で集中した出力
  • 高い値(例: 1.5): よりランダムで創造的な出力
必須範囲: 0 <= x <= 2
:

0.7

top_p
number

Nucleus samplingパラメータ

注意:

  • 累積確率に基づくトークンサンプリングを制御
  • 例えば、0.9は累積確率上位90%のトークンからサンプリングすることを意味します
  • デフォルト: 1.0(全トークンを考慮)

推奨: temperatureとtop_pを同時に調整しないでください

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

0.9

top_k
integer

Top-Kサンプリングパラメータ

注意:

  • 例えば、10は各サンプリングステップで最も確率の高い上位10トークンのみを考慮することを意味します
  • 小さい値は出力をより集中させます
  • デフォルト: 無制限
必須範囲: x >= 1
:

40

レスポンス

チャット補完成功

id
string

チャット補完の一意の識別子

:

"chatcmpl-20251010015944503180122WJNB8Eid"

model
string

補完に使用されたモデル

:

"gpt-5.6-sol"

object
enum<string>

レスポンスタイプ

利用可能なオプション:
chat.completion
:

"chat.completion"

created
integer

補完が作成されたUnixタイムスタンプ

:

1760032810

choices
object[]

補完選択肢のリスト

usage
object

トークン使用統計