POST
/
v1
/
image
/
gen
/
dalle
curl --request POST \
  --url https://openapi.monica.im/v1/image/gen/dalle \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "dall-e-3",
  "prompt": "A cute baby sea otter",
  "n": 1,
  "quality": "standard",
  "size": "1024x1024",
  "style": "vivid"
}'
{
  "data": [
    {
      "url": "<string>"
    }
  ]
}
Follow the quickstart guide to get your own API Key.

DALL·E 3 is OpenAI’s latest and most advanced text-to-image AI model.

  • Produces highly detailed and photorealistic images
  • Excellent at capturing complex scenes and concepts
  • Superior understanding of spatial relationships and composition

See the pricing page for pricing details.

Resources

Previews

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

A text description of the desired image. The maximum length is 4000 characters.

Required string length: 1 - 4000
Example:

"A cute baby sea otter"

model
enum<string>
default:dall-e-3
Available options:
dall-e-3
Example:

"dall-e-3"

n
enum<integer>
default:1

The number of images to generate. Only n=1 is supported for dall-e-3.

Available options:
1
Example:

1

quality
enum<string>
default:standard

The quality of the generated images.

Available options:
standard,
hd
Example:

"standard"

size
enum<string>
default:1024x1024

The size of the generated images.

Available options:
1024x1024,
1024x1792,
1792x1024
Example:

"1024x1024"

style
enum<string>
default:vivid

The style of the generated images.

Available options:
vivid,
natural
Example:

"vivid"

Response

200 - application/json
Success
data
object[]

An array of generated image URLs.