POST
Text-to-Image
Set tool to choose a capability below, or omit it for automatic selection. Supply additional inputs in parameters; keep prompt at the top level.

Tools

For example, use parameters for reference images or output settings supported by your selected tool.

Authorizations

Authorization
string
header
required

Bearer API_key, can be found in Account Management > API Keys.

Headers

X-Stack-Id
string
default:stk_jmqog66ha0mugmro
required

Supplied automatically by the documentation playground.

Body

application/json
prompt
string
required

Describe what to create.

Minimum string length: 1
tool
enum<string>
default:auto

Optional tool selection.

Available options:
auto,
generate_image_10,
generate_image_11,
generate_image_12,
generate_image_13,
generate_image_15,
generate_image_15_edit,
generate_image_16,
generate_image_17,
generate_image_18,
generate_image_5,
generate_image_6,
generate_image_7,
generate_image_7_edit,
generate_image_8,
generate_image_edit,
generate_image_edit_14,
generate_image_edit_5,
generate_image_edit_pro,
generate_image_face_unlocked_1,
generate_image_gram
parameters
object

Additional inputs accepted by the selected tool.

idempotency_key
string

Optional caller idempotency key; a retry with the same key returns the same operation.

Maximum string length: 240

Response

Generation result. The data fields depend on the selected capability.

data
object
trace_id
string