Skip to main content
POST
Generate Image

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
prompt
string
required

Generates an image based on the provided text. Example user prompt: generate an image of a sunset using the DALL-E 3 model.

Example:

"A serene mountain lake at sunset"

model
enum<string>
default:DALL-E 3
required

LLM model to use for text generation.

Available options:
DALL-E 3,
Playground v3,
FLUX.1 [schnell],
Ideogram
model_style
enum<string>
default:default
required

Style

Available options:
default,
photo,
digital art,
illustration,
drawing
model_aspect_ratio
enum<string>
default:9:16
required

Aspect Ratio

Available options:
9:16,
1:1,
4:3,
16:9

Response

200 - application/json

Generate Image

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action