Back to pipelines

Image Generator

Generate AI images from text or reference photos. Product shots, character art, posters with readable text, photoreal portraits, high resolution in seconds.

0.2

Still needed: Prompt, Reference Images

Runs on

API

Examples

Nano Banana 2

Pyra by lantern light (Nano Banana 2)

Nano Banana 2. Pyra lit by a single lantern in a misty violet forest, from one prompt: same violet eyes and infinity crest, no reference image. Hit Reproduce to make your own.

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.

6 inputs
0.2 to 6.4 credits
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"}' \
  --wait

Get an API token →

Parameters

prompt one of

Text description of the image. The AI enhances this with composition, lighting, and style.

string
reference_images one 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:4 default 1: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-2 default auto
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.

autofasthd default auto
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" }
    }
  }
}

Full API reference MCP setup CLI reference

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

  1. Describe the image: write what you want, or upload up to 5 reference photos
  2. Pick a model: or leave it on Auto and the router picks for you (cheap drafts, balanced HD, premium typography)
  3. 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
  4. 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?
Product photos, character art, posters with readable text in any script, photoreal portraits, editorial imagery, brand-anchored variations from a reference photo, and a lot in between.
Do I need both a prompt and reference images?
No, either works on its own. A prompt creates from text; references create variations; both together give the most control.
How many reference images can I use?
Up to 5. More references help anchor subject identity, pose, or product shape across variants.
What image quality can I expect?
Production-grade across all three models. The premium model renders the cleanest typography and the highest-fidelity photoreal portraits; the balanced model is the best pick when you bring reference images.
Can it render text inside the image?
Yes, including non-Latin scripts (Japanese, Korean, Chinese, Hindi, Bengali, Arabic). Quote the literal text in your prompt for cleanest results.
How many credits does it cost?
0.2 to 6.4 credits, depending on the model you pick (or that Auto picks for you).

Explore more pipelines

See all →
Video Generator
from 9.5
Video Generator
Audio Generator
0.7-1.3
Audio Generator
Music Generator
2.5-45.1
Music Generator
Video Editor
13.1-29.8
Video Editor