...
https://ai.google.dev/gemini-api/docs/image-generation#rest
Using
...
| Code Block |
|---|
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{
"parts": [
{"text": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"}
]
}]
}' \
| grep -o '"data": "[^"]*"' \
| cut -d'"' -f4 \
| base64 --decode > gemini-native-image.png |
Using SD.Next
| photorealistic girl in bookshop choosing the book in romantic stories shelf. smiling | Create a close-up photograph of a woman's face and hand, with her hand raised to her chin. She is wearing a white blazer and has a gold ring on her finger. Her nails are neatly manicured and her hair is pulled back into a low bun. She is smiling and has a radiant expression on her face. The background is a plain light gray color. The overall mood of the photo is elegant and sophisticated. The photo should have a soft, natural light and a slight warmth to it. The woman's hair is dark brown and pulled back into a low bun, with a few loose strands framing her face. | Generate a photo of a woman's legs, with her feet crossed and wearing white high-heeled shoes with ribbons tied around her ankles. The shoes should have a pointed toe and a stiletto heel. The woman's legs should be smooth and tanned, with a slight sheen to them. The background should be a light gray color. The photo should be taken from a low angle, looking up at the woman's legs. The ribbons should be tied in a bow shape around the ankles. The shoes should have a red sole. The woman's legs should be slightly bent at the knee. |
...
Time: 19.06s | total 19.06 pipeline 19.04 | RAM 25.89 GB 21%
Prompt: 枯藤老树昏鸦,小桥流水人家: A silhouette of a girl falling through an endless maze of diverse, unrepeatable rooms. The architecture is impossible, featuring surreal and hallucinatory elements. Rooms include: a cozy bedroom with warm lighting, an ancient study filled with dusty books and antique furniture, a vast library with towering shelves, a kitchen with modern appliances and vibrant colors, a mirrored dining room reflecting infinite reflections, a creepy nursery with eerie toys and dim lighting, a corridor lined with mysterious paintings, a modern office with sleek design and glass walls, and a luxurious bedroom with opulent decor. The girl is in mid-fall, her silhouette stark against the shifting backgrounds. The scene is bathed in soft, surreal lighting that enhances the dreamlike quality of the environment.
Parameters: Steps: 1| Size: 1024x1024| Seed: 1| CFG scale: 1.0| App: SD.Next| Version: c021928ded5afc| Pipeline: GoogleNanoBananaPipeline| Operations: txt2img| Model: gemini-2.53-flashpro-image-preview
Time: 714.17s 46s | total 714.17 45 pipeline 714.13 44 | RAM 525.05 9 GB 4%21%



