Skip to main content
POST
Reimagine an image
strength replaces API v1’s imagination.

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

One of your image creations. Or send the image as image_url or image_base64.

Maximum string length: 64
image_url
string

A public https URL of the image. It is saved as one of your uploads and counts against your daily upload quota.

Maximum string length: 2048
image_base64
string

The image as base64 (JPEG, PNG or WebP, plain or as a data: URI), up to 10 MB. Saved as one of your uploads.

Maximum string length: 14500000
prompt
string | null

What the new take should look like.

Maximum string length: 10000
mode
enum<string> | null

The model: flux (best quality), fast or imagen-nano-banana. Default: the first your plan includes.

Available options:
flux,
fast,
imagen-nano-banana,
null
strength
number | null

How far to drift from the source, 0-1. Default 0.6; 1 drops the source.

Required range: 0 <= x <= 1
keep_structure
boolean | null

Locks the layout with a depth pass. flux only.

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