Skip to main content
POST
Restyle 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
colors
object[] | null

A palette to recolour with.

Required array length: 1 - 6 elements
style_creation_id
string | null

One of your image creations, whose style is copied.

Maximum string length: 64
style_id
integer | null

A library style's numeric id from GET /v2/library.

Required range: x >= 1
model
string | null

The restyle model. Default: restyle-auto, which picks one for you.

Maximum string length: 100
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