Skip to main content
POST
Enhance skin

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
version
enum<string> | null

faithful (default) keeps identity, creative reinterprets, flexible uses optimized_for.

Available options:
faithful,
creative,
flexible,
null
sharpen
integer | null

Sharpening, 0-100. Default 0.

Required range: 0 <= x <= 100
smart_grain
integer | null

Grain that matches the skin, 0-100. Default 0.

Required range: 0 <= x <= 100
skin_detail
integer | null

Skin detail, 0-100. faithful only.

Required range: 0 <= x <= 100
optimized_for
enum<string> | null

What flexible optimizes for.

Available options:
enhance_skin,
enhance_everything,
improve_lighting,
transform_to_real,
no_make_up,
null
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