Gemini
Gemini로 이미지 생성
CometAPI를 통해 Gemini 모델로 이미지를 생성합니다 — 4K, 멀티턴 편집, 최대 14개의 참조 이미지, Thinking을 지원합니다.
POST
gemini-2.5-flash-image는 provider에 의해 2026-10-02에 종료될 예정입니다. 새 프로젝트에는 gemini-3.1-flash-image-preview 또는 gemini-3-pro-image-preview를 사용하세요. 자세한 내용은 Google의 지원 중단 일정을 참조하세요.Gemini 이미지 응답에는
thought가 true인 중간 이미지 파트가 포함될 수 있습니다. 이것은 최종 출력이 아닙니다. 생성된 이미지를 저장할 때는 thought: true 파트를 건너뛰고, inlineData가 존재하며 thought가 true가 아닌 마지막 이미지 파트를 사용하세요.인증
Use your CometAPI API key.
경로 매개변수
The Gemini image model to use. See the Models page for current options.
본문
application/json
Conversation turns. Each item has a role ("user" or "model") and parts array containing text and/or image data.
Controls generation behavior — output modalities, image resolution, thinking, etc.
Optional tools. Pass [{"google_search": {}}] to enable Google Search grounding for real-time information in generated images.