Skip to main content
Use the size option on POST /image/generate to control layout and scale. size is optional. When you omit it, or pass "auto", Mynth chooses dimensions for you. This page covers request size and output file format. For prompts, inputs, and models, see Generate Images. Full field tables live in Image Generation Request.

Pricing

Choosing a base preset or aspect ratio does not add a separate fee. You pay the model’s per-image price for the resolved scale. Check each model page or mynth.io/models for base and 4K prices. Requesting 4k on a model that does not support it fails the task — Mynth does not silently downgrade to base.

Use a named preset

The simplest option is a layout preset string:
Presets resolve to aspect ratios. Exact pixel dimensions depend on the model and scale.

Use an aspect ratio

Pass a ratio as a shorthand string, or as a structured object:

Supported aspect ratios

If a model does not list an exact ratio among its presets, Mynth maps to the closest same-orientation preset for that model. Prefer ratios the model documents when you need a specific layout. You cannot pass raw width / height on the public generate API. Use presets, aspect ratios, or auto.

Request 4K

Set scale to 4k when the model supports it:
Ratio shorthands with a _4k suffix are equivalent:
Supported 4K shorthands: 1:1_4k, 2:3_4k, 3:2_4k, 3:4_4k, 4:3_4k, 4:5_4k, 5:4_4k, 9:16_4k, 16:9_4k, 21:9_4k, 2:1_4k, 1:2_4k. Named layout presets (square, portrait, …) do not have _4k variants. Use a ratio shorthand or structured scale: "4k" instead. Leave scale unset (or set "base") for the model’s standard tier. Check the model’s capabilities table — 4K: Yes — before requesting 4K.

Use auto size

Any of these ask Mynth not to force a fixed user-chosen ratio:
What happens next depends on the model and mode:
  1. Native auto size — if the model supports auto size in the active mode (often image-to-image), the provider chooses dimensions (for example from the input image). Look for Native auto size: Yes on the model page.
  2. Mynth-resolved auto — if the model has no native auto path for that mode, Mynth picks an aspect ratio from your prompt at base scale, then maps it to the model’s presets.
Models with native auto size today: For a fixed layout, prefer a preset or aspect ratio instead of auto.

Read the resolved size

Each successful image includes the actual pixel size as {width}x{height}:
Request size is what you asked for. Result size is what was generated.

Set output format

output controls the delivered file, not layout:

REST example

Creating a task does not return images immediately. Wait in the SDK, poll task endpoints, or use webhooks — see Async and polling.

How size fits generation

  1. Mynth validates size (preset, aspect ratio, 4K shorthand, or auto).
  2. Shorthand presets expand to aspect ratio + scale.
  3. For auto: native provider sizing when supported; otherwise Mynth picks a base aspect ratio from the prompt.
  4. The resolved size is mapped to the selected model’s presets (exact match, or closest same-orientation ratio).
  5. After generation, each image reports true pixel size as size ({width}x{height}).
For the full request schema, see Image Generation Request.