Gemini 3.1 Flash의 초경량 변형 모델입니다. 캐시된 입력과 오디오 입력을 지원하는 가장 비용 효율적인 Gemini 모델입니다. 고처리량, 비용 의식적 애플리케이션에 적합합니다.
이 모델의 사용법을 Claude, ChatGPT 등에 복사
| 토큰 종류 | 크레딧 | 달러 환산 |
|---|---|---|
| 입력 토큰 | 250 | $0.25 |
| 출력 토큰 | 1,500 | $1.50 |
* 1 크레딧 ≈ $0.001 (실제 요금은 사용량에 따라 달라질 수 있습니다)
curl -X POST "https://api.core.today/llm/gemini/v1beta/openai/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gemini-3.1-flash-lite-preview",
"messages": [
{
"role": "system",
"content": "Classify the following text as: spam, not_spam. Respond with only the label."
},
{
"role": "user",
"content": "Congratulations! You have been selected for a special prize. Click here to claim now!"
}
],
"max_tokens": 50,
"temperature": 0
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
messages | array | Yes | - | 메시지 객체 배열 (OpenAI 형식) |
temperature | float | No | 1 | 샘플링 온도 (0-2) |
top_p | float | No | 0.95 | 핵심 샘플링 파라미터 |
max_tokens | integer | No | - | 최대 출력 토큰 수 |
stream | boolean | No | false | Server-Sent Events 스트리밍 활성화 |
Flash Lite를 활용한 경량 텍스트 분류
curl -X POST "https://api.core.today/llm/gemini/v1beta/openai/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gemini-3.1-flash-lite-preview",
"messages": [
{
"role": "system",
"content": "Classify the following text as: spam, not_spam. Respond with only the label."
},
{
"role": "user",
"content": "Congratulations! You have been selected for a special prize. Click here to claim now!"
}
],
"max_tokens": 50,
"temperature": 0
}'POST /llm/gemini/v1beta/openai/chat/completions