Skip to main content
Use this exact path ID:
The stable ID does not include -preview.

Output controls

Supported ratios:
The model-specific API contract exposes the ratio values above. Use only those values; support for one ratio does not imply an unlisted size-ratio value.

Generation body

Editing body

Repeat inlineData for multiple references. Unified asynchronous editing accepts 1–16 images, with a 20 MiB decoded limit per file and 64 MiB total. Grounding, thinking, and other official fields remain governed by the current Gemini protocol and the selected model’s support. A fixed maximum source-image byte or pixel size is not currently published. Total request-body, proxy, and upstream limits may differ; reduce the source image after HTTP 413, and contact API support before relying on a guaranteed production envelope.

Size and transport

The requested tier determines billing; compressed file bytes do not. Higher tiers can create larger Base64 responses, so align client and proxy limits with the actual delivery.

Copy Flash examples

Run complete synchronous, asynchronous, editing, and parsing flows.

Check the current price

Use the dated YingTu-only table.
Last modified on September 3, 2026