Erstellen Sie Bilder mit Gemini-Modellen über CometAPI — unterstützt 4K, mehrstufige Bearbeitung, bis zu 14 Referenzbilder und Thinking.
{
"candidates": [
{
"content": {
"role": "<string>",
"parts": [
{
"text": "<string>",
"inlineData": {
"mimeType": "<string>",
"data": "<string>"
}
}
]
},
"finishReason": "STOP",
"index": 123,
"safetyRatings": [
{
"category": "<string>",
"probability": "<string>"
}
]
}
],
"usageMetadata": {
"promptTokenCount": 123,
"candidatesTokenCount": 123,
"totalTokenCount": 123,
"thoughtsTokenCount": 123
}
}Use your CometAPI API key.
The Gemini image model to use. See the Models page for current options.
Conversation turns. Each item has a role ("user" or "model") and parts array containing text and/or image data.
Show child attributes
Controls generation behavior — output modalities, image resolution, thinking, etc.
Show child attributes
Optional tools. Pass [{"google_search": {}}] to enable Google Search grounding for real-time information in generated images.
Show child attributes
{
"candidates": [
{
"content": {
"role": "<string>",
"parts": [
{
"text": "<string>",
"inlineData": {
"mimeType": "<string>",
"data": "<string>"
}
}
]
},
"finishReason": "STOP",
"index": 123,
"safetyRatings": [
{
"category": "<string>",
"probability": "<string>"
}
]
}
],
"usageMetadata": {
"promptTokenCount": 123,
"candidatesTokenCount": 123,
"totalTokenCount": 123,
"thoughtsTokenCount": 123
}
}