Skip to main content
parameters.prompt_extend defaults to true: the model first optimizes the prompt in the way prompt_extend_mode selects and then generates, so short descriptions still yield detailed images. Set it to false when the prompt is already detailed and must be followed literally, or when latency matters.

Rewriting modes

Thinking mode

parameters.enable_thinking defaults to true. It strengthens the model’s reasoning for better images but takes longer, and it needs prompt_extend: true.

Rewrite status

output.rewrite_status in the response reports the rewriting, e.g. not_use when rewriting was off and success when it succeeded.

Agent mode with thinking

A short description, expanded in detail by agent mode:

Rewriting off

When the prompt already describes the picture and its text precisely, turning rewriting off follows it literally and is faster (enable_thinking has no effect then):