Image Generator

From 0.2 credits

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 or Reference Images

Examples

Nano Banana 2

Cobalt tide in a Paraty studio

Nano Banana 2. A prompt-only ceramic studio scene where cobalt glaze rises from a handmade bowl as a miniature translucent wave.

0115

How to use Image Generator

A compact decision guide for placing this pipeline in a workflow.

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

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.

Get an API token
inputs
7
Pricing
0.2 to 6.4 credits
Language
Language
bun add @pipe2-ai/sdk
Run a pipeline
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
Run a pipeline
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
Run a pipeline
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
Run a pipeline
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

Full API reference CLI reference

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 14 with Auto or either Gemini model. GPT Image 2 accepts 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).

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 reference photos. Auto and the Gemini models accept up to 14; GPT Image 2 accepts up to 5.
  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

Explore more pipelines

Video Generator
from 9.5
Video Generator
Audio Generator
0.002-40.0
Audio Generator
Music Generator
2.5-22.6
Music Generator
Video Editor
13.1-33.3
Video Editor