---
title: "OutputImageGenerationServerToolItem"
---

An openrouter:image_generation server tool output item


## Fields

| Field                                                                                                          | Type                                                                                                           | Required                                                                                                       | Description                                                                                                    | Example                                                                                                        |
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `id`                                                                                                           | *Optional[str]*                                                                                                | :heavy_minus_sign:                                                                                             | N/A                                                                                                            |                                                                                                                |
| `image_b64`                                                                                                    | *Optional[str]*                                                                                                | :heavy_minus_sign:                                                                                             | N/A                                                                                                            |                                                                                                                |
| `image_url`                                                                                                    | *Optional[str]*                                                                                                | :heavy_minus_sign:                                                                                             | N/A                                                                                                            |                                                                                                                |
| `result`                                                                                                       | *OptionalNullable[str]*                                                                                        | :heavy_minus_sign:                                                                                             | The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format            |                                                                                                                |
| `revised_prompt`                                                                                               | *Optional[str]*                                                                                                | :heavy_minus_sign:                                                                                             | N/A                                                                                                            |                                                                                                                |
| `status`                                                                                                       | [components.ToolCallStatus](../components/toolcallstatus.mdx)                                                   | :heavy_check_mark:                                                                                             | N/A                                                                                                            | completed                                                                                                      |
| `type`                                                                                                         | [components.OutputImageGenerationServerToolItemType](../components/outputimagegenerationservertoolitemtype.mdx) | :heavy_check_mark:                                                                                             | N/A                                                                                                            |                                                                                                                |