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

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. Ideogram 4 is especially good at rendering text: put the words to draw in quotes.

Required string length: 1 - 10000
Example:

"A vintage travel poster of a lighthouse at dusk with the text \"Ideogram 4\" 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"

negative_prompt
string

What to leave out of the image. Descriptions in prompt take precedence over this field.

Maximum string length: 2000
Example:

"blurry, low contrast"

aspect_ratio
enum<string>
default:1:1

Aspect ratio for the generated image. The output is always about 4 megapixels: 2048x2048 at 1:1, and the same area at the other ratios.

Available ratios:

  • 1:1: Square (default)
  • 16:9, 9:16: Widescreen/Social stories
  • 16:10, 10:16: Widescreen/Tall
  • 4:3, 3:4: Standard
  • 3:2, 2:3: Classic photo
  • 5:4, 4:5: Photo print
  • 2:1, 1:2, 3:1, 1:3: Banners and vertical panels
Available options:
1:1,
16:9,
9:16,
16:10,
10:16,
4:3,
3:4,
3:2,
2:3,
5:4,
4:5,
2:1,
1:2,
3:1,
1:3
Example:

"1:1"

rendering_speed
enum<string>
default:DEFAULT

Quality tier. It sets the price of the generation.

Available tiers:

  • TURBO: Fastest and cheapest
  • DEFAULT: Balanced quality and speed (default)
  • QUALITY: Highest quality, slowest
Available options:
TURBO,
DEFAULT,
QUALITY
Example:

"DEFAULT"

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 to render the prompt verbatim. 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 process has started.

data
object
required
Example: