Skip to main content
POST
Create image from text - Ideogram 4.5

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Required for authentication. Learn how to obtain an API key

Body

application/json
prompt
string
required

Text description of the image to generate, or of the edit to apply. When images are sent, refer to them by position: "image 1" is the first one (the image being edited) and "image 2" onwards are the references.

Required string length: 1 - 10000
Example:

"Turn image 1 into a vintage travel poster with the text \"Ideogram 4.5\" in bold art deco letters"

webhook_url
string<uri>

Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.

Example:

"https://www.example.com/webhook"

images
string[]

Optional input images. Without them the request is text-to-image. With them, the first image is the one being edited and the rest guide the edit as references.

Image requirements:

  • Maximum 5 images
  • Supported formats: PNG, JPEG, WebP
  • Aspect ratio between 1:6 and 6:1
  • Public HTTPS URL or base64-encoded string
Required array length: 1 - 5 elements
Example:
aspect_ratio
enum<string>
default:auto

Aspect ratio for the generated image, on a canvas of about 4 megapixels.

Available ratios:

  • auto: Let the model choose (default). With images it follows the first image; without them it picks the canvas that best fits the prompt.
  • 1:1: Square, 2048x2048
  • 4:5, 5:4: Photo print
  • 3:4, 4:3: Standard
  • 2:3, 3:2: Classic photo
  • 9:16, 16:9: Social stories/Widescreen
  • 1:2, 2:1, 1:3, 3:1: Banners and vertical panels
Available options:
auto,
1:1,
4:5,
5:4,
3:4,
4:3,
2:3,
3:2,
9:16,
16:9,
1:2,
2:1,
1:3,
3:1
Example:

"auto"

quality
enum<string>
default:medium

Quality tier. It sets the price of the generation.

Available tiers:

  • very_low: Cheapest and fastest. Only available when images are sent (editing); a text-only request with it is rejected.
  • low
  • medium: Default
  • high: Best quality, slowest
Available options:
very_low,
low,
medium,
high
Example:

"medium"

magic_prompt
enum<string>
default:auto

Whether Ideogram's Magic Prompt rewrites the prompt into a more detailed one before generating. auto lets the model decide; use off for verbatim edit instructions. It does not affect the price.

Available options:
auto,
on,
off
Example:

"auto"

seed
integer

Seed for reproducible results. When omitted, a random seed is used.

Required range: 0 <= x <= 2147483647
Example:

42

Response

OK - The request has succeeded and the Ideogram 4.5 process has started.

data
object
required
Example: