id: string

The unique ID of the image generation call.

result: string | null

The generated image encoded in base64.

status: "in_progress" | "completed" | "generating" | "failed"

The status of the image generation call.

One of the following:
"in_progress"
"completed"
"generating"
"failed"
type: "image_generation_call"

The type of the image generation call. Always image_generation_call.

action?: "generate" | "edit" | "auto" | null

The action used for image generation.

One of the following:
"generate"
"edit"
"auto"
background?: "transparent" | "opaque" | "auto" | null

The background setting used for generation.

One of the following:
"transparent"
"opaque"
"auto"
output_format?: "png" | "webp" | "jpeg" | null

The output format used for generation.

One of the following:
"png"
"webp"
"jpeg"
quality?: "low" | "medium" | "high" | 3 more | null

The quality of the image generated by the image generation tool call. One of low, medium, high, xhigh, max, or auto.

One of the following:
"low"
"medium"
"high"
"xhigh"
"max"
"auto"
revised_prompt?: string | null

The prompt that was used after any model prompt rewriting.

size?: (string & {}) | "1024x1024" | "1024x1536" | "1536x1024" | null

The image dimensions as a WIDTHxHEIGHT string, for example 1536x864.

One of the following:
(string & {})
"1024x1024" | "1024x1536" | "1536x1024"
"1024x1024"
"1024x1536"
"1536x1024"