Skip to main content
POST
Expand an image
mode picks the model that paints the new area: ideogram, seedream-4-5 or bfl-outpainting (Flux Pro).

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
creation_id
string
required

One of your image creations.

Maximum string length: 64
aspect_ratio
enum<string>
required

The shape of the result. With custom_width/custom_height the frame decides its size.

Available options:
1:1,
16:9,
9:16,
4:3,
3:4,
3:2,
2:3,
21:9,
1:2,
2:1,
5:4,
4:5
prompt
string | null

What to generate in the new area, e.g. "sandy beach".

Maximum string length: 500
mode
enum<string>

The expand model: ideogram, seedream-4-5 or bfl-outpainting (Flux). Default: ideogram, or bfl-outpainting when your plan does not include ideogram.

Available options:
ideogram,
seedream-4-5,
bfl-outpainting
resolution
enum<string>

Render tier, for the models that offer it. Default: the model's own.

Available options:
1k,
2k,
4k
custom_width
integer

An exact output width in pixels, with custom_height; the source stays inside. Up to 4096 x 4096 in total.

Required range: 32 <= x <= 10000
custom_height
integer

The exact output height in pixels, with custom_width.

Required range: 32 <= x <= 10000
image_x
integer

Where the source's left edge sits in the custom frame, in pixels, with image_y. Without it the subject is anchored automatically.

Required range: 0 <= x <= 10000
image_y
integer

Where the source's top edge sits in the custom frame, in pixels, with image_x.

Required range: 0 <= x <= 10000
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
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