메인 콘텐츠로 건너뛰기
POST
/
v1
/
chat
/
completions
Gemini-3.1-pro 빠른 채팅
curl --request POST \
  --url https://api.evolink.ai/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gemini-3.1-pro-preview",
  "messages": [
    {
      "role": "user",
      "content": "Hello, introduce yourself"
    }
  ]
}
'
{
  "id": "chatcmpl-20251010015944503180122WJNB8Eid",
  "model": "gemini-3.1-pro-preview",
  "object": "chat.completion",
  "created": 1760032810,
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Note: This is sample code!\n\nHello! I'm pleased to introduce myself.\n\nI'm a Large Language Model, trained and developed by Google..."
      },
      "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
  }
}

인증

Authorization
string
header
필수

##모든 API는 Bearer Token 인증이 필요합니다##

API Key 받기:

API Key 관리 페이지를 방문하여 API Key를 받으세요

요청 헤더에 추가:

Authorization: Bearer YOUR_API_KEY

본문

application/json
model
enum<string>
기본값:gemini-3.1-pro-preview
필수

채팅 모델 이름

사용 가능한 옵션:
gemini-3.1-pro-preview
예시:

"gemini-3.1-pro-preview"

messages
object[]
필수

채팅 메시지 목록

Minimum array length: 1
예시:
[
{
"role": "user",
"content": "Hello, introduce yourself"
}
]

응답

채팅 완성이 성공적으로 생성되었습니다

id
string

채팅 완성의 고유 식별자

예시:

"chatcmpl-20251010015944503180122WJNB8Eid"

model
string

실제 사용된 모델 이름

예시:

"gemini-3.1-pro-preview"

object
enum<string>

응답 유형

사용 가능한 옵션:
chat.completion
예시:

"chat.completion"

created
integer

생성 타임스탬프

예시:

1760032810

choices
object[]

채팅 완성 선택지 목록

usage
object

토큰 사용 통계