What problem does it solve?
This Skill enables generating high-quality images from text prompts by calling the Gemini API, allowing creators to rapidly visualize ideas without requiring local image generation tools.
Core Features & Use Cases
- Generate images from natural language prompts using Gemini's gemini-3-pro-image-preview model.
- Fine-grained controls: aspectRatio and imageSize to fit various layouts.
- Use Case: Create concept art, social media visuals, thumbnails, or marketing assets with a single prompt.
Quick Start
Run a basic image generation example. Replace YOUR_PROMPT_HERE and set GEMINI_API_KEY to authorize the request.
For Quick Start, you can try:
curl -s -X POST "https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-image-preview:generateContent"
-H "x-goog-api-key: $GEMINI_API_KEY"
-H "Content-Type: application/json"
-d '{"contents": [{"parts": [{"text": "YOUR_PROMPT_HERE"}]}], "generationConfig": {"responseModalities": ["IMAGE"]}}' | jq -r '.candidates[0].content.parts[0].inlineData.data' | base64 -d > output.png