Skip to main content
Mynth supports a small set of size controls.

Size formats

You can set size with:
  • presets such as "portrait" or "landscape"
  • structured aspect ratios
  • "auto"
Example:
size: "square";
size: { type: "aspect_ratio", aspectRatio: "16:9" };
size: { type: "aspect_ratio", aspectRatio: "16:9", scale: "4k" };
size: { type: "auto", prefer: "native" };

Presets

Mynth currently defines these named presets:
  • square
  • portrait
  • landscape
  • portrait_tall
  • landscape_wide
Each preset maps to a common ratio-oriented layout that Mynth resolves internally for the selected model.

Aspect ratios

Supported aspect ratios:
  • 1:1
  • 2:3
  • 3:2
  • 3:4
  • 4:3
  • 4:5
  • 5:4
  • 9:16
  • 16:9
  • 21:9
  • 2:1
  • 1:2
Leave scale unset to use the model’s default size. Set scale: "4k" when you want 4K output. If the model has a dedicated 4K price, that rate is used for the request. If the model does not support 4K, Mynth falls back to the default size.

Output settings

output: {
  format: "webp",
  quality: 80,
}
Supported formats:
  • png
  • jpg
  • webp
quality ranges from 0 to 100.