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,
2:1,
3:1,
2:3,
3:2,
3:4,
4:3,
16:9,
9:16,
21:9
resolution
enum<string>

One of the model's resolution values. Default: the model's own.

Available options:
1k,
2k,
4k
Maximum string length: 16
quality
enum<string>

One of the model's quality values. Default: the model's own.

Available options:
medium,
high
Maximum string length: 16
width
integer

Exact output size in pixels, with height, instead of aspect_ratio: only a model whose aspect_ratio input declares custom_dimensions, within its limits.

Required range: 50 <= x <= 8192
height
integer

With width.

Required range: 50 <= x <= 8192
mode
enum<string>

magnific-one only: quality (default) renders one finished image; draft renders a grid of quick variations, billed as one medium 4K image, with each tile saved as its own creation and listed in the grid's tiles.

Available options:
quality,
draft
tiles
enum<integer>

Only with mode: draft: how many variations. Default 8.

Available options:
4,
8,
16
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
brand_kit_id
string | null

An id from GET /v2/brand-kits, once its status is ready: the images follow the kit's colours, style, tone and typography. Only with magnific-one.

Maximum string length: 64
brand_kit_template_slug
string | null

With brand_kit_id: the slug of one of the kit's templates (GET /v2/brand-kits/{brand_kit_id}), whose layout the images follow.

Maximum string length: 128
brand_kit_logo
string | null

With brand_kit_id: which of the kit's logo_marks goes in the images, by its sqid. Default: the kit's main mark.

Maximum string length: 64
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
brand_kit_variant_ids
string[] | null

With brand_kit_id: the ids of the kit's variants (GET /v2/brand-kits/{brand_kit_id}) to generate as, such as a market or a campaign. At most one per kind.

Maximum array length: 3
Maximum string length: 64

Response

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

data
object
required