네이티브 이미지 생성 기능을 갖춘 Gemini 3.1 Flash입니다. 채팅 응답에서 텍스트와 함께 이미지를 직접 생성할 수 있습니다. 텍스트와 이미지 출력 토큰에 별도의 가격이 적용됩니다.
이 모델의 사용법을 Claude, ChatGPT 등에 복사
| 토큰 종류 | 크레딧 | 달러 환산 |
|---|---|---|
| 입력 토큰 | 500 | $0.50 |
| 출력 토큰 | 3,000 | $3.00 |
| 🖼이미지 출력 토큰 | 60,000 | $60.00 |
* 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-image-preview",
"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 | - | 최대 출력 토큰 수 |
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-image-preview",
"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-image-preview",
"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
}'POST /llm/gemini/v1beta/openai/chat/completions