Skip to main content
POST
Generate an image with gemini-3-pro-image

Generate a 4K image

The verified response returned a 4096 × 4096 JPEG:

Queue premium work

For job queues or short proxy timeouts, send the body to :asyncGenerateContent. The verified 1K task returned HTTP 202, completed after six polls, and exposed the final JPEG under result.
Decode the returned image using inlineData.mimeType. Avoid printing the Base64 field or storing it in application logs.

Test this model online

The interactive panel is fixed to gemini-3-pro-image:generateContent. Start with its 1K request, enter a development key, and use Try it on this page.
Pro requests are billable. Mintlify shows the entered key in its generated cURL; do not share authenticated screenshots.

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
usageMetadata
object
modelVersion
string

The model version that produced the response.

Example:

"gemini-3-pro-image"

responseId
string

Provider response identifier.

Example:

"response_example"

createTime
string<date-time>

Creation time when supplied by the selected model channel.