네이티브 이미지 생성 기능을 갖춘 Gemini 3.1 Flash Image의 경량·저가형 모델입니다. 채팅 응답에서 텍스트와 함께 이미지를 직접 생성하며, 텍스트와 이미지 출력 토큰에 별도 가격이 적용됩니다: 백만 토큰당 입력 $0.25, 텍스트 출력 $1.50, 이미지 출력 $30.
콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요
이 모델의 사용법을 Claude, ChatGPT 등에 복사
| 토큰 종류 | 크레딧 | 달러 환산 |
|---|---|---|
| 입력 토큰 | 465 | $0.31 |
| 출력 토큰 | 2,787 | $1.86 |
| 🖼이미지 출력 토큰 | 55,740 | $37.16 |
* 1,500 크레딧 ≈ $1 (실제 요금은 사용량에 따라 달라질 수 있습니다)
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-image",
"messages": [
{
"role": "user",
"content": "Explain the concept of neural style transfer in simple terms."
}
],
"max_tokens": 1000,
"temperature": 0.7
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
messages | array | Yes | - | 메시지 객체 배열 (OpenAI 형식) |
temperature | float | No | 1 | 샘플링 온도 (0-2) |
top_p | float | No | 0.95 | 핵심 샘플링 파라미터 |
max_tokens | integer | No | - | 최대 출력 토큰 수. 최대값: 65,536. 입력 한도: 65,536 토큰. |
stream | boolean | No | false | Server-Sent Events 스트리밍 활성화 |
일반 텍스트 대화
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-image",
"messages": [
{
"role": "user",
"content": "Explain the concept of neural style transfer in simple terms."
}
],
"max_tokens": 1000,
"temperature": 0.7
}'자연어 대화를 통한 이미지 생성
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-image",
"messages": [
{
"role": "user",
"content": "Generate an image of a serene Japanese garden with a koi pond, cherry blossoms, and a small wooden bridge at sunset."
}
],
"max_tokens": 4096
}'