# create_image

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

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

Generare una immagine e salvarla in un spazio di lavoro. Doze a 38 credits in base a la risoluzione — e può partir da una foto che ya ha.

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

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `prompt` | string | obrigatório | - Ce crea. |
| `image` | string |  | Una immagine di workspace da cambiare in lugar di partir de nulla — edit-la, remodellar, estender. |
| `model` | string |  | Modelul d'image. |
| `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 |  | Ce non deve apparir — text, una filigrana. |
| `path` | string |  | Onde salvarlo. `Agent/<date>/…` per o predefinit. |

## Salva, e restitue il sentiero {#saves}

Il file è escrito al spazio di lavoro, per cui il prossimo utrel puèt usá-lo: convertilo, implementalo, attachilo a un messaggio.

## A partir de una che tu hai {#from-image}

> **image è la differenza entre generazione e editing**
>
> Con il modele opera da un quadro existente — un restyle, un ampliament, un cambio. Senza il, dal nulla. È anche che encadena in create_video.

## La resoluzion è il prezzo {#cost}

Doze crediti a 0.5K, 38 a 4K. In modo [auto](/pt/sdk/agent/modes/auto) non si chiede — un modo [budget](/pt/sdk/agent/budget) è ciò che sta entre un run e un malentendido costoso.

- [create_video](/pt/sdk/agent/tools/create-video): - Animar.
- [Orçamento](/pt/sdk/agent/budget): Qua limites un generator run.
- [Ferramentas do agente](/pt/sdk/agent/tools): The 35, by family.
