Skip to main content
The prompt and optional source image belong in contents[].parts[]. This model uses the shared Gemini-native body, with one important YingTu rule: omit generationConfig.imageConfig.imageSize.

Editing input

Add the source image after the instruction in the same parts array. Provide raw Base64 bytes without a data-URL prefix and use the source file’s real MIME type.
Do not add imageSize: "1K" merely because the output is approximately 1K. Current YingTu parameter rules require that field to be absent for this model.
The verified responses used role: "model", finishReason: "STOP", and PNG image data. Encoding is not guaranteed; always read inlineData.mimeType.