Image Generator
Generate AI images from text or reference photos. Product shots, character art, posters with readable text, photoreal portraits, high resolution in seconds.
Still needed: Prompt, Reference Images
Runs on
APIExamples
Pyra by lantern light (Nano Banana Pro)
Nano Banana Pro. The same prompt on the premium tier: crisper detail in the frill and scales, richer light falloff from the lantern. Prompt only, no reference image.
Best for
- •Niche/specific subjects with no stock footage (historical recreations, sci-fi concepts, fantasy scenes)
- •Conceptual visuals (abstract ideas, future technology, impossible scenes)
- •Consistent visual style across multiple images (same lighting, color palette)
- •Product visualizations and mockups
- •Posters with readable text across Latin and non-Latin scripts
Tips
- ✓Be extremely specific: 'Photorealistic futuristic electric vehicle on a mountain road, dramatic low angle, golden hour, cinematic lighting' not 'car on road'
- ✓If the output drifts toward illustration when you want a photo, add 'photorealistic' explicitly
- ✓Style anchors that work: 'cinematic', 'dramatic lighting', 'volumetric fog', 'shallow depth of field'
- ✓Use reference images to keep the subject, pose, or product shape consistent across multiple generations
Recipes using this pipeline
Articles about this pipeline
Image Generator API
Call this pipeline from your own code. One request dispatches a run; the model is an input field, not a separate endpoint.
bun add @pipe2-ai/sdk import { createClient } from "@pipe2-ai/sdk";
const client = createClient(process.env.PIPE2_TOKEN!);
const { run_pipeline } = await client.RunPipeline({
pipeline_slug: "image-generator",
input: {
prompt: "A vintage brass telescope on a wooden desk, warm afternoon sunlight",
model: "gemini-3-1-flash-image",
},
});pip install pipe2 import asyncio
import os
from pipe2 import Pipe2Client
client = Pipe2Client(token=os.environ["PIPE2_TOKEN"])
run = asyncio.run(client.run_pipeline(
pipeline_slug="image-generator",
input={
"prompt": "A vintage brass telescope on a wooden desk, warm afternoon sunlight",
"model": "gemini-3-1-flash-image",
},
))go get github.com/pipe2-ai/sdk-go client := pipe2.NewClient(os.Getenv("PIPE2_TOKEN"))
input := json.RawMessage(`{
"prompt": "A vintage brass telescope on a wooden desk, warm afternoon sunlight",
"model": "gemini-3-1-flash-image"
}`)
run, err := pipe2.RunPipeline(context.Background(), client, "image-generator", input)
if err != nil {
log.Fatal(err)
}brew install pipe2-ai/tap/pipe2 pipe2 pipelines run \
--pipeline image-generator \
--input-json '{"prompt": "A vintage brass telescope on a wooden desk, warm afternoon sunlight", "model": "gemini-3-1-flash-image"}' \
--waitParameters
-
promptone of -
Text description of the image. The AI enhances this with composition, lighting, and style.
string -
reference_imagesone of -
Optional: 1-5 reference image URLs to guide the output style and composition.
array -
aspect_ratio -
Output aspect ratio.
1:116:99:164:33:4default1:1
Show all 6 inputs
-
model -
Image engine to use. Leave unset and Pipe2 routes to the best fit for your prompt.
autogemini-3-1-flash-imagegemini-3-pro-imagegpt-image-2defaultauto -
quality -
Engine-aware. Auto picks the balanced tier for the chosen engine — GPT Image 2 medium, Gemini 3.1 Flash 2K. Fast renders smaller and cheaper (GPT Image 2 low, Gemini 3.1 Flash 1K); hd takes the top tier, which on GPT Image 2 costs many times auto. Gemini 3 Pro changes size at one price.
autofasthddefaultauto -
reference_videos -
Video references (first ~8s of each is used), only the Gemini 3.1 Flash model supports these
array
Use it from an AI agent
Point any MCP client at pipe2 and your agent gets these tools. It finds this pipeline, reads the same schema above, then runs it.
- list_pipelines
- get_pipeline_schema
- run_pipeline
- get_pipeline_run_status
- request_upload
https://mcp.pipe2.ai/mcp {
"mcpServers": {
"pipe2ai": {
"url": "https://mcp.pipe2.ai/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}AI Image Generator
Generate high-quality images from text prompts or reference photos. Product shots, character art, posters with readable text, photoreal portraits, describe what you want and get a finished image in seconds.
What you can make
- Product photography: catalog shots, lifestyle scenes, and aspirational creative without a studio
- Character art: concept design and variations from a description or reference photo
- Posters with readable text: typography rendered cleanly across Latin and non-Latin scripts (Japanese, Korean, Chinese, Hindi, Bengali, Arabic)
- Editorial imagery: cover art, hero images, social posts in any style
- Brand-anchored variations: upload a product photo or reference and generate consistent visuals around it
How it works
- Describe the image: write what you want, or upload up to 5 reference photos
- Pick a model: or leave it on Auto and the router picks for you (cheap drafts, balanced HD, premium typography)
- How Auto routes: text-heavy posters route to the model strong on typography; photoreal portraits route to the model strong on faces and product detail
- Refine: change the prompt, add references, or swap the aspect ratio and run again
Prompt tips
- Be specific about subject, style, and lighting, "a vintage brass telescope on a wooden desk, warm afternoon sunlight" beats "telescope"
- For text in the image, quote what you want rendered, "a poster reading 'GRAND OPENING' in bold sans-serif"
- Upload reference images to anchor pose, color, or product shape across multiple generations
- Use aspect ratio to match your output target, 1:1 for social, 16:9 for hero banners, 9:16 for vertical posts
Frequently Asked Questions
What can the image generator make?
Do I need both a prompt and reference images?
How many reference images can I use?
What image quality can I expect?
Can it render text inside the image?
How many credits does it cost?
Explore more pipelines
See all →Generate AI videos from a text prompt, image, or reference clip. Cinematic shots, product reveals, lifestyle ads, with synchronized audio and natural motion.
Turn text into natural speech with dozens of voices, 70+ languages, and custom style directions for tone, accent, and pacing.
Generate original background music that matches any mood, genre, and length you describe. Royalty-free, ready in seconds.
Edit existing videos with AI. Change style, add effects, modify scenes, or transform the entire look.