Agent tools

create_image

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.

category: write12 to 38 creditssaves and returns the path
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

promptstringrequired

What to create.

imagestring

A workspace image to change instead of starting from nothing — edit it, restyle it, extend it.

modelstring

The image model.

resolutionstring1K

0.5K 12 · 1K 17 · 2K 25 · 4K 38 credits.

aspectstring1:1

1:1 · 4:3 · 3:4 · 16:9 · 9:16.

avoidstring

What must not appear — text, a watermark.

pathstring

Where to save it. Agent/<date>/… by default.

It saves, and returns the path

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

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

Twelve credits at 0.5K, thirty-eight at 4K. In auto mode this is not asked — a budget is what stands between a run and an expensive misunderstanding.