Skip to main content
POST
/
api
/
v1
/
runtime
/
v1
/
images
/
generate
Generate image using DALL-E or other providers
curl --request POST \
  --url https://api.runflow.ai/api/v1/runtime/v1/images/generate \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A futuristic city skyline at sunset with flying cars",
  "provider": "openai",
  "model": "dall-e-3",
  "providerName": "OpenAI Production",
  "size": "1024x1024",
  "quality": "standard",
  "style": "vivid",
  "n": 1
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.runflow.ai/llms.txt

Use this file to discover all available pages before exploring further.

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? }.