Skip to main content
POST
Generate image using DALL-E or other providers

Body

application/json
prompt
string
required

Prompt describing the image to generate

Example:

"A futuristic city skyline at sunset with flying cars"

provider
enum<string>
default:openai

LLM provider for image generation

Available options:
openai,
azure,
bedrock
model
string
default:dall-e-3

Image generation model

Example:

"dall-e-3"

providerName
string

Provider name (configured in LLM Providers) for credential resolution

Example:

"OpenAI Production"

size
enum<string>
default:1024x1024

Image size

Available options:
256x256,
512x512,
1024x1024,
1792x1024,
1024x1792
quality
enum<string>
default:standard

Image quality (DALL-E 3 only)

Available options:
standard,
hd
style
enum<string>
default:vivid

Image style (DALL-E 3 only)

Available options:
vivid,
natural
n
number
default:1

Number of images to generate

Required range: 1 <= x <= 4

Response

Image generation result: { images: [{ url? | b64Json? }], model, provider, usage? }.