# create_image

Canonical URL: https://developers.iagenify.com/sdk/agent/tools/create-image/
Language: en

`create_image({ prompt, image?, model?, resolution?, aspect?, avoid?, path? })`

Generate an image and save it in the workspace. Twelve to thirty-eight credits depending on the resolution — and it can start from a picture you already have.

Status: category: write · 12 to 38 credits · saves and returns the path

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `prompt` | string | required | What to create. |
| `image` | string |  | A workspace image to change instead of starting from nothing — edit it, restyle it, extend it. |
| `model` | string |  | The image model. |
| `resolution` | string | 1K | `0.5K` 12 · `1K` 17 · `2K` 25 · `4K` 38 credits. |
| `aspect` | string | 1:1 | `1:1` · `4:3` · `3:4` · `16:9` · `9:16`. |
| `avoid` | string |  | What must not appear — text, a watermark. |
| `path` | string |  | Where to save it. `Agent/<date>/…` by default. |

## It saves, and returns the path {#saves}

The file is written to the workspace, so the next tool can use it: convert it, deploy it, attach it to a message. Nothing of it travels through the conversation.

## Starting from one you have {#from-image}

> **image is the difference between generating and editing**
>
> With it the model works from an existing picture — a restyle, an extension, a change. Without it, from nothing. It is also what chains into create_video.

## Resolution is the price {#cost}

Twelve credits at 0.5K, thirty-eight at 4K. In [auto](/sdk/agent/modes/auto) mode this is not asked — a [budget](/sdk/agent/budget) is what stands between a run and an expensive misunderstanding.

- [create_video](/sdk/agent/tools/create-video): Animating it.
- [Budget](/sdk/agent/budget): What bounds a generating run.
- [Agent tools](/sdk/agent/tools): The 35, by family.
