curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-3.6-flash",
"messages": [
{
"role": "user",
"content": "Please introduce yourself"
}
]
}
'{
"id": "chatcmpl-20251010015944503180122WJNB8Eid",
"model": "gemini-3.6-flash",
"object": "chat.completion",
"created": 1760032810,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm pleased to introduce myself.\n\nI'm a Large Language Model, trained and developed by Google.\n\nSimply put, you can think of me as a \"smart brain\" that has been trained on massive amounts of text data and is able to understand and generate human language. My core capability is processing and generating text. Specifically, I can do the following:\n\n**1. Information Query & Knowledge Answering**\nI can act like a \"talking encyclopedia,\" answering various questions, whether they're about scientific knowledge, historical events, or everyday facts.\n\n**2. Creative Writing & Text Generation**\nI can create various types of text based on your requirements, such as:\n* **Writing**: Poetry, stories, scripts, emails, speeches, advertising copy, etc.\n* **Planning**: Travel plans, study outlines, event proposals, etc.\n* **Brainstorming**: Working with you to generate new ideas and spark creativity.\n\n**3. Translation & Language Processing**\nI'm proficient in multiple languages and can provide fast, fluent translation services. I can also help you polish, proofread, summarize, or rewrite text to make your expression clearer and more professional.\n\n**4. Programming & Code Assistance**\nI can write code snippets, explain code logic, debug errors, or \"translate\" code from one programming language to another, making me a helpful companion for programmers.\n\n**5. Logical Analysis & Reasoning**\nI can help you analyze complex problems, organize logical chains, and make inferences and summaries based on the information you provide.\n\n---\n\n**In summary**, my goal is to be a powerful and useful tool that helps you obtain information more efficiently, complete tasks, and spark creativity through natural language communication.\n\n**Remember:** I'm an artificial intelligence, my knowledge comes from the data I've learned, and it may not be the most up-to-date. Sometimes I may also make mistakes, so for very important information, I recommend you verify it again.",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
},
"logprobs": {
"content": [
{
"token": "<string>",
"logprob": 123,
"bytes": [
123
],
"top_logprobs": [
{
"token": "<string>",
"logprob": 123,
"bytes": [
123
]
}
]
}
]
},
"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/credits"
}
}{
"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": "gemini-3.6-flash"
}
}{
"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": "랜덤 시드, 범위 `[0, 2147483647]`, 동일한 시드 값을 사용하면 생성 결과를 일관되게 유지할 수 있습니다",
"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"
}
}Gemini 전체 모델 인터페이스 - OpenAI 호환 형식
요청 본문의 model을 통해 호출할 Gemini 텍스트 모델을 선택합니다(전체 선택 가능한 값은 model 파라미터의 대조표 참조).
- OpenAI SDK / Chat Completions 형식을 사용하여 대화 내용을 동기적으로 반환
- 일반 텍스트 / 멀티모달 입력: 텍스트 + 이미지 혼합 입력(
messages[].content) - 스트리밍:
stream: true를 설정하여 청크 단위로 반환
모델 사양 및 차이점
- 3.8 동작: 3.7보다 소프트웨어 엔지니어링, 에이전트, 다단계 추론 및 멀티모달 정확도가 향상되었습니다. 특히
high에서는 추론 / 출력 Token을 더 많이 사용할 수 있습니다. 지연 시간에 민감한 작업에는low, 일반 작업에는 기본값인medium, 복잡한 코드, 긴 동영상 또는 다단계 추론에는high를 권장합니다. - Gemini 4 Argon 동작:
reasoning_effort는low/medium/high를 지원하며 생략하면 모델이 사고량을 결정합니다.minimal은low로 변경됩니다. 출력 길이는max_tokens로 제어하세요. 현재 Gemini 라우트는max_completion_tokens적용을 보장하지 않습니다.max_tokens는 최대 1,048,576까지 설정할 수 있지만 요청당 출력은 스트리밍 65,536, 비스트리밍 32,768(사고와 답변 합계)이며 상한에서는finish_reason: length를 반환합니다. OpenAI 호환 형식은 긴 출력 이어 생성을 지원하지 않으므로 네이티브 API 전체 참조를 사용하세요.extra_body.google.thinking_config.thinking_budget는 이 모델에 적용되지 않습니다. 여러 턴의 도구 호출에서는 이전tool_calls[]의thought_signature를 그대로 돌려보내야 하며, 그렇지 않으면 400을 반환합니다. - Gemini 4 Carbon 동작: 파라미터 규칙과 출력 상한은
gemini-4-argon과 같습니다.reasoning_effort는low/medium/high를 지원하며 기본값은medium입니다.minimal은 자동으로low로 다운그레이드됩니다. 출력 길이는max_tokens로 제어하세요.extra_body.google.thinking_config.thinking_budget는 이 모델에서 적용되지 않습니다. 여러 턴의 도구 호출에서는 이전 응답의tool_calls[]에 있는thought_signature를 그대로 다시 전달해야 하며, 그렇지 않으면 400을 반환합니다. 이 형식도 긴 출력 이어 생성을 지원하지 않습니다. 더 긴 출력에는 네이티브 API의 이어 생성을 사용하세요. Argon과의 차이는 사용량입니다. 같은 요청에서도 Carbon은 더 많이 사고하며, 간단한 질문에서도 사고하고 이미지가 있으면 사고량이 더 늘어납니다. 웹 검색 횟수도 더 많습니다. 사고 토큰은 출력에 포함되어 출력 단가로 과금됩니다. 비용을 제어하려면reasoning_effort를low로 설정하세요. - Gemini 4 Hydrogen 동작:
reasoning_effort는low/medium/high/xhigh를 지원하며 기본값은high입니다.xhigh는 가장 깊이 사고하므로 지연 시간과 사고 토큰 사용량도 가장 큽니다.minimal은 자동으로low로 변경됩니다. 출력 길이는max_tokens로 제어하세요. 최대 1,048,576까지 설정할 수 있지만 스트리밍과 비스트리밍 모두 요청 한 번에 사고와 답변을 합해 최대 65,536토큰을 반환하며, 상한에 도달하면finish_reason은length입니다. 이 형식은 긴 출력 이어 생성을 지원하지 않으므로 더 긴 출력에는 네이티브 API의 이어 생성을 사용하세요.extra_body.google.thinking_config.thinking_budget는 이 모델에 적용되지 않습니다. 여러 턴의 도구 호출에서는 이전tool_calls[]가 반환한thought_signature를 그대로 반환해야 하며, 누락하면 400을 반환합니다. - Gemini 4 Neon 동작: 파라미터 규칙과 출력 상한은
gemini-4-hydrogen과 같습니다.reasoning_effort는low/medium/high/xhigh를 지원하며 기본값은high입니다.minimal은 자동으로low로 변경됩니다. 출력 길이는max_tokens로 제어하세요. 이 형식은 긴 출력 이어 생성을 지원하지 않으므로 더 긴 출력에는 네이티브 API의 이어 생성을 사용하세요.extra_body.google.thinking_config.thinking_budget는 이 모델에 적용되지 않습니다. 여러 턴의 도구 호출에서는 이전tool_calls[]가 반환한thought_signature를 그대로 반환해야 하며, 누락하면 400을 반환합니다. - 샘플링 / 페널티 파라미터
temperature/top_p/frequency_penalty/presence_penalty: Gemini 3.x 전 시리즈 동일하며, 사용자 지정 값은 출력에 영향을 주지 않습니다.temperature/top_p는 범위를 벗어나면 400을 반환하고,frequency_penalty/presence_penalty는 무시되어 적용되지 않습니다(오류는 발생하지 않음). - 사고 제어
reasoning_effort:minimal/low/medium/high/xhigh(각 모델이 지원하는 레벨과 기본값은reasoning_effort파라미터 참조). Gemini 3.x / 4 시리즈에서 적용됩니다.gemini-4-carbon/gemini-4-argon/gemini-4-hydrogen/gemini-4-neon/gemini-3.8-flash/gemini-3.7-flash와 Pro 계열은minimal을 지원하지 않으며, 전달하면 자동으로low로 다운그레이드됩니다.xhigh는gemini-4-hydrogen/gemini-4-neon만 지원하며,gemini-4-carbon/gemini-4-argon에 전달하면 자동으로high로 변경됩니다. - 마지막 턴 역할: 마지막 메시지의
role은assistant일 수 없습니다(Gemini 3.5+에서 오류 발생). - Token 상한:
gemini-3.8-flash/gemini-3.7-flash/gemini-3.6-flash/gemini-3.5-flash-lite는 컨텍스트 1,048,576, 최대 출력 65,536입니다.gemini-4-carbon/gemini-4-argon/gemini-4-hydrogen/gemini-4-neon은 입력·사고·답변이 1,048,576 컨텍스트를 공유하며, 요청당 상한은 스트리밍 65,536, 비스트리밍 32,768(gemini-4-hydrogen/gemini-4-neon은 65,536)(사고와 답변 합계)입니다. 실제 출력은 남은 컨텍스트의 제한도 받으며 이 형식은 이어 생성을 지원하지 않습니다. 다른 모델은 각 사양을 따릅니다. - Gemini 2.5 기존 ID: 2026-10-19부터
gemini-2.5-pro/gemini-2.5-flash/gemini-2.5-flash-lite는 각각gemini-3.8-flash/gemini-3.5-flash-lite/gemini-3.1-flash-lite-preview에서 처리되며 해당 요금으로 과금됩니다. 응답에는 새 모델 ID가 표시되고, 파라미터 동작은 새 모델을 따릅니다.extra_body.google.thinking_config.thinking_budget은reasoning_effort로 변환됩니다(extra_body참조).
curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-3.6-flash",
"messages": [
{
"role": "user",
"content": "Please introduce yourself"
}
]
}
'{
"id": "chatcmpl-20251010015944503180122WJNB8Eid",
"model": "gemini-3.6-flash",
"object": "chat.completion",
"created": 1760032810,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm pleased to introduce myself.\n\nI'm a Large Language Model, trained and developed by Google.\n\nSimply put, you can think of me as a \"smart brain\" that has been trained on massive amounts of text data and is able to understand and generate human language. My core capability is processing and generating text. Specifically, I can do the following:\n\n**1. Information Query & Knowledge Answering**\nI can act like a \"talking encyclopedia,\" answering various questions, whether they're about scientific knowledge, historical events, or everyday facts.\n\n**2. Creative Writing & Text Generation**\nI can create various types of text based on your requirements, such as:\n* **Writing**: Poetry, stories, scripts, emails, speeches, advertising copy, etc.\n* **Planning**: Travel plans, study outlines, event proposals, etc.\n* **Brainstorming**: Working with you to generate new ideas and spark creativity.\n\n**3. Translation & Language Processing**\nI'm proficient in multiple languages and can provide fast, fluent translation services. I can also help you polish, proofread, summarize, or rewrite text to make your expression clearer and more professional.\n\n**4. Programming & Code Assistance**\nI can write code snippets, explain code logic, debug errors, or \"translate\" code from one programming language to another, making me a helpful companion for programmers.\n\n**5. Logical Analysis & Reasoning**\nI can help you analyze complex problems, organize logical chains, and make inferences and summaries based on the information you provide.\n\n---\n\n**In summary**, my goal is to be a powerful and useful tool that helps you obtain information more efficiently, complete tasks, and spark creativity through natural language communication.\n\n**Remember:** I'm an artificial intelligence, my knowledge comes from the data I've learned, and it may not be the most up-to-date. Sometimes I may also make mistakes, so for very important information, I recommend you verify it again.",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
},
"logprobs": {
"content": [
{
"token": "<string>",
"logprob": 123,
"bytes": [
123
],
"top_logprobs": [
{
"token": "<string>",
"logprob": 123,
"bytes": [
123
]
}
]
}
]
},
"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/credits"
}
}{
"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": "gemini-3.6-flash"
}
}{
"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": "랜덤 시드, 범위 `[0, 2147483647]`, 동일한 시드 값을 사용하면 생성 결과를 일관되게 유지할 수 있습니다",
"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"
}
}https://direct.evolink.ai이며, 텍스트 모델 지원이 더 우수하고 장시간 연결을 지원합니다. https://api.evolink.ai는 멀티모달 서비스의 주력 엔드포인트이며, 텍스트 모델에 대해서는 대체 주소로 사용됩니다.인증
##모든 API는 Bearer Token 인증이 필요합니다##
API Key 받기:
API Key 관리 페이지를 방문하여 API Key를 받으세요
요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
본문
호출할 Gemini 텍스트 모델을 선택하세요:
| 모델 ID | 시리즈 | 포지셔닝 |
|---|---|---|
gemini-4-neon | 4 Neon | 복잡한 코딩과 분석을 위한 Gemini 4 모델 / 다단계 코딩, 심층 분석, 에이전트 워크플로. 요청당 최대 65,536토큰이며 더 긴 출력에는 네이티브 API의 이어 생성 사용. 기본 사고 레벨은 high |
gemini-4-hydrogen | 4 Hydrogen | 빠르고 효율적인 Gemini 4 모델 / 일상적인 코딩, 도구를 사용하는 에이전트, 멀티모달 문서 처리. 요청당 최대 65,536토큰이며 더 긴 출력에는 네이티브 API의 이어 생성 사용. 기본 사고 레벨은 high |
gemini-4-carbon | 4 Carbon | Argon의 뒤를 잇는 차세대 모델 / 코딩, 다단계 추론, 보안 개발. 요청당 출력 상한은 Argon과 같으며 더 긴 출력은 네이티브 API의 이어 생성 사용. 기본 사고량은 Argon보다 많음 |
gemini-4-argon | 4 Argon | 긴 보고서 및 대규모 코드 작업. 요청당 스트리밍 최대 65,536 / 비스트리밍 32,768토큰. 더 긴 출력은 네이티브 API 이어 생성 사용 |
gemini-3.8-flash | 3.8 Flash | 소프트웨어 엔지니어링 / 에이전트 / 다단계 추론 / 멀티모달 정확도 향상 |
gemini-3.7-flash | 3.7 Flash | Pro급 agentic / 코드 생성 / 터미널 실행 |
gemini-3.6-flash | 3.6 Flash | 다단계 오케스트레이션 / 코드 리팩터링 / 범용 추론 |
gemini-3.5-flash | 3.5 Flash | 범용 Flash |
gemini-3.5-flash-lite | 3.5 Flash-Lite | 저비용 / 고처리량 / 경량 agent |
gemini-3.1-pro-preview | 3.1 Pro (Preview) | 고급 추론 |
gemini-3.1-pro-preview-customtools | 3.1 Pro · CustomTools | 고급 추론 + 사용자 지정 도구 |
gemini-3.1-flash-lite-preview | 3.1 Flash-Lite (Preview) | 저비용 |
gemini-3-pro-preview | 3.0 Pro (Preview) | 고급 추론 |
gemini-3-flash-preview | 3.0 Flash (Preview) | 범용 Flash |
gemini-2.5-pro | 2.5 Pro | 기존 ID. 2026-10-19부터 gemini-3.8-flash에서 처리되며 해당 요금으로 과금 |
gemini-2.5-flash | 2.5 Flash | 기존 ID. 2026-10-19부터 gemini-3.5-flash-lite에서 처리되며 해당 요금으로 과금 |
gemini-2.5-flash-lite | 2.5 Flash-Lite | 기존 ID. 2026-10-19부터 gemini-3.1-flash-lite-preview에서 처리되며 해당 요금으로 과금 |
gemini-4-neon, gemini-4-hydrogen, gemini-4-carbon, gemini-4-argon, gemini-3.8-flash, gemini-3.7-flash, gemini-3.6-flash, gemini-3.5-flash, gemini-3.5-flash-lite, gemini-3.1-pro-preview, gemini-3.1-pro-preview-customtools, gemini-3.1-flash-lite-preview, gemini-3-pro-preview, gemini-3-flash-preview, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite "gemini-3.6-flash"
사고와 답변을 포함한 최대 생성 토큰 수입니다. 현재 Gemini 라우트에서는 이 파라미터로 출력 길이를 제어하세요.
gemini-3.8-flash / gemini-3.7-flash / gemini-3.6-flash / gemini-3.5-flash-lite의 상한은 65,536입니다. gemini-4-argon / gemini-4-carbon / gemini-4-hydrogen / gemini-4-neon은 최대 1,048,576까지 설정할 수 있지만 요청당 출력은 스트리밍 65,536, 비스트리밍 32,768(gemini-4-hydrogen / gemini-4-neon은 65,536)이며 남은 공유 컨텍스트의 제한도 받습니다. 출력 상한에 도달하면 finish_reason은 length가 되며 이 형식은 이어 생성을 지원하지 않습니다. 다른 모델은 각 사양을 따릅니다.
1 <= x <= 10485762000
핵 샘플링(Nucleus Sampling) 파라미터
설명:
- 누적 확률 상위 몇 %까지의 token에서 샘플링할지 제어합니다
- 예를 들어 0.9는 누적 확률이 90%에 도달하는 token에서 선택함을 의미합니다
- 기본값: 0.95
권장사항: temperature와 top_p를 동시에 조정하지 마세요
Gemini 3.x 전 시리즈 동일(모델에 따라 다르지 않음): 유효 범위 내의 사용자 지정 값은 출력에 영향을 주지 않습니다. 이 파라미터의 유효 범위를 벗어나면 조용히 무시되지 않고 400을 반환합니다.
0 <= x <= 10.9
사고 작업량을 제한하며, Gemini의 사고 레벨에 대응합니다:
minimal: 거의 사고하지 않으며, 고처리량 / 저지연low: 적은 사고, 간단한 작업medium: 품질과 속도의 균형high: 심층 다단계 추론xhigh: 가장 깊은 추론으로 지연 시간과 사고 토큰 사용량도 가장 큼(gemini-4-hydrogen/gemini-4-neon만 지원)
Gemini 3.x / 4 시리즈에서 적용되며, 각 모델이 지원하는 레벨과 기본값이 다릅니다(Native와 동일):
| 모델 | 지원 레벨 | 기본값 |
|---|---|---|
gemini-4-neon | low / medium / high / xhigh | high |
gemini-4-hydrogen | low / medium / high / xhigh | high |
gemini-4-carbon | low / medium / high | medium |
gemini-4-argon | low / medium / high | 긴 보고서 및 대규모 코드 작업. 요청당 스트리밍 최대 65,536 / 비스트리밍 32,768토큰. 더 긴 출력은 네이티브 API 이어 생성 사용 |
gemini-3.8-flash | low / medium / high | medium |
gemini-3.7-flash | low / medium / high | medium |
gemini-3.6-flash | minimal / low / medium / high | medium |
gemini-3.5-flash | minimal / low / medium / high | medium |
gemini-3.5-flash-lite | minimal / low / medium / high | minimal |
gemini-3.1-flash-lite-preview | minimal / low / medium / high | minimal |
gemini-3-flash-preview | minimal / low / medium / high | medium |
gemini-3.1-pro-preview | low / medium / high | high |
gemini-3.1-pro-preview-customtools | low / medium / high | high |
gemini-3-pro-preview | low / medium / high | high |
모델이 지원하지 않는 레벨을 전달하면(예: Pro 계열이나 gemini-4-carbon / gemini-4-argon / gemini-4-hydrogen / gemini-4-neon / gemini-3.8-flash / gemini-3.7-flash에 minimal을 전달) 자동으로 low로 다운그레이드되며 오류가 발생하지 않습니다. xhigh는 gemini-4-hydrogen / gemini-4-neon만 지원하며, gemini-4-carbon / gemini-4-argon에 전달하면 자동으로 high로 변경됩니다.
minimal, low, medium, high, xhigh "minimal"
응답
채팅 완성이 성공적으로 생성되었습니다