Skip to main content
POST

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Learn how to obtain an API key

Query Parameters

dry_run
boolean

true returns the price of the request instead of running it. Nothing is charged or created.

Body

application/json
prompt
string
required

What to generate. With image references, also how to change them.

Maximum string length: 10000
aspect_ratio
enum<string>

Default: auto, picked from the prompt and the references. A ratio the model lacks is snapped to its nearest.

Available options:
auto,
1:1,
16:9,
9:16,
4:3,
3:4,
3:2,
2:3,
1:2,
2:1,
4:5,
21:9
count
integer

How many images. Each one is charged.

Required range: 1 <= x <= 8
seed
integer

Replays a result. Each image of a batch takes the next seed. -1: a random one.

Required range: -1 <= x <= 4294967295
references
object[]

Images to rework or follow, up to 12. The reference types and how many of each depend on the model.

Maximum array length: 12
webhook_url
string<uri>

A URL called once per creation when it completes or fails, signed with your API key's webhook secret. API keys only.

Maximum string length: 512
title
string | null

The name of the creations. Default: a title made from the prompt.

Maximum string length: 120
folder_reference
string

The reference of the project or folder to save the result in. Default: your Personal project.

Maximum string length: 64

Response

With dry_run=true: what the request would cost. Nothing is charged or created.

data
object
required