Skip to main content
Use phaseo:image_generation when the model should be able to create an image while it is answering. Phaseo exposes a managed tool to the model, executes the image request server-side, and feeds the image result back into the model loop.

Request

Parameters

The model supplies the final prompt when it calls the tool. Tool-level parameters provide defaults and constraints for that call. The tool call may also send description instead of prompt. Phaseo treats description as a prompt alias for compatibility with model-generated image descriptions.

Tool Result

The result is returned to the model as JSON:
Some providers return base64 image data instead:

Usage And Pricing

Image generation usage is included in the parent response usage when the image model reports token usage. Phaseo also records:
Pricing cards can bill this with the server_tool_image_generation_requests meter. The underlying image model usage can still be billed through its normal model pricing.
Last modified on July 26, 2026