Skip to main content
POST
Billable request (defaults to 1K): generate an image with gemini-3.1-flash-image

Generate a 2K editorial asset

cURL

Submit a different 1K job asynchronously

Save the returned ID and use the bounded polling guide.

Edit a source image

Representative response

A different response may include text before the image or return another supported MIME. Use the robust parser from the Quickstart.

Test this model online

The embedded operation fixes the stable model ID and exposes this API’s fourteen ratios plus 1K, 2K, and 4K. It does not expose Google’s upstream 0.5K option.
The selected size determines a real billing tier. Use a development key. Mintlify includes the key in its generated cURL; do not share authenticated screenshots or copied commands.

Review all Flash parameters

Confirm the exact size and ratio contract.

Compare Flash with Pro

Test premium work with the same acceptance criteria.

Authorizations

Authorization
string
header
required

YingTu API key.

Body

application/json
contents
Message · object[]
required

Prompt and optional source image.

Minimum array length: 1
generationConfig
Output settings · object

Response

Complete Gemini response

candidates
object[]
required
promptFeedback
object
usageMetadata
object
modelVersion
string

The model version that produced the response.

Example:

"gemini-3.1-flash-image"

responseId
string

Provider response identifier.

Example:

"response_example"

createTime
string<date-time>

Creation time when supplied by the selected model.

Last modified on September 3, 2026