Yapper Developers
Models & Inputs

Image generation

Image models with per-resolution pricing and input fields.

POST /api/v1/processes with "type": "image-generation". Pick any model — the API does not plan-gate models. GET /api/v1/models returns the same capabilities at runtime.

Input fields

FieldTypeRequiredDescription
promptstringyesWhat to generate.
aspectRatiostringnoOne of the model's aspect ratios, e.g. "16:9".
imageResolutionstringnoOne of the model's resolutions, e.g. "1080" or "4k".
maskUrlstringnoInpainting mask URL (white = regenerate) for edit models.
promptUpsamplingbooleannoLet the provider expand the prompt before generating.
referenceImages{docId, url}[]noYapper image assets. Use the id + url from /assets, a process output, or /assets/import — passing docId preserves asset lineage.
referenceImageUrlsstring[]noPlain https image URLs to guide/edit with. External URLs are imported into your asset library first (validated + stored); Yapper asset URLs pass through untouched.

Referencing media: referenceImageUrls takes plain https URLs (external images). The reference* asset fields take docId + url pairs pointing at Yapper assets — use the id and url returned by GET /assets, a completed process output, or POST /assets/import. Prefer the asset form when the media lives in Yapper: the docId preserves asset lineage.

Example

Add "dryRun": true to get the exact credit cost without starting, and always send an Idempotency-Key header on real starts.

POST /api/v1/processes
{
  "type": "image-generation",
  "model": "grok-imagine-image",
  "input": {
    "prompt": "A polished product photo of a stainless steel water bottle",
    "aspectRatio": "1:1",
    "imageResolution": "1080"
  }
}

Models at a glance

Credits are per generated output; ranges span the supported resolutions/lengths (exact prices in each model's section).

ModelCompanyCreditsResolutionsMax ref images
nano-banana-progoogle10–28720, 1080, 2k, 4k14
nano-banana-2google8–22720, 1080, 2k, 4k14
gemini-imagegoogle8–10720, 10803
gpt-image-2openai10–20720, 1080, 2k, 4k8
gpt-image-2-highopenai20–60720, 1080, 2k, 4k8
seedream-v4.5bytedance8–201080, 2k, 4k4
grok-imagine-imagexai61080, 2k4
flux-2-problack-forest-labs10–201080, 2k4

Nano Banana Pro (nano-banana-pro)

Google's advanced image generation and editing model.

Credits720: 10 · 1080: 14 · 2k: 20 · 4k: 28
Aspect ratiosauto, 1:1, 16:9, 9:16, 3:4, 4:3 (default 1:1)
Resolutions720, 1080, 2k, 4k
Reference imagesup to 14

Nano Banana 2 (nano-banana-2)

Google's latest and leading image model.

Credits720: 8 · 1080: 12 · 2k: 18 · 4k: 22
Aspect ratiosauto, 1:1, 16:9, 9:16, 3:4, 4:3 (default 1:1)
Resolutions720, 1080, 2k, 4k
Reference imagesup to 14

Nano Banana (gemini-image)

Google's legacy image model with quick generation times.

Credits720: 8 · 1080: 10
Aspect ratiosauto, 1:1, 16:9, 9:16, 3:4, 4:3 (default 16:9)
Resolutions720, 1080
Reference imagesup to 3

GPT Image 2 (gpt-image-2)

Strong image generation and editing model with good text rendering, instruction following, and balanced cost.

Credits720: 10 · 1080: 10 · 2k: 10 · 4k: 20
Aspect ratiosauto, 1:1, 16:9, 9:16, 3:4, 4:3, 3:2, 2:3 (default 4:3)
Resolutions720, 1080, 2k, 4k
Reference imagesup to 8

GPT Image 2 High Effort (gpt-image-2-high)

Best-in-class higher-effort GPT Image 2 for stronger fidelity and more deliberate final outputs.

Credits720: 20 · 1080: 20 · 2k: 30 · 4k: 60
Aspect ratiosauto, 1:1, 16:9, 9:16, 3:4, 4:3, 3:2, 2:3 (default 4:3)
Resolutions720, 1080, 2k, 4k
Reference imagesup to 8

Seedream-V4.5 (seedream-v4.5)

Bytedance's advanced image generation model.

Credits1080: 8 · 2k: 10 · 4k: 20
Aspect ratiosauto, 1:1, 16:9, 9:16, 3:4, 4:3 (default 16:9)
Resolutions1080, 2k, 4k
Reference imagesup to 4

Grok Image (grok-imagine-image)

xAI's image generation and editing model.

Credits1080: 6 · 2k: 6
Aspect ratiosauto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 (default 1:1)
Resolutions1080, 2k
Reference imagesup to 4

Flux.2 Pro (flux-2-pro)

Flux's advanced image generation model.

Credits1080: 10 · 2k: 20
Aspect ratiosauto, 1:1, 16:9, 9:16, 3:4, 4:3, 2:3, 3:2 (default 16:9)
Resolutions1080, 2k
Reference imagesup to 4

On this page