Skip to main content
POST
Relight an image

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
lights
object[]

1-4 lights. Exactly one of this, light_transfer_creation_id or light_transfer_preset.

Required array length: 1 - 4 elements
light_transfer_creation_id
string | null

One of your image creations, whose lighting is copied.

Maximum string length: 64
light_transfer_preset
string | null

A light-transfer preset identifier.

Maximum string length: 255
resolution
enum<string> | null

Default 2k.

Available options:
1k,
2k,
null
count
integer | null

How many results, 1-2. Default 1.

Required range: 1 <= x <= 2
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