Skip to main content
POST
Upscale an image
mode picks the upscaler; GET /v2/images/upscale/modes lists the scales and settings each one takes.

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

The upscale mode: creative (Magnific Creative) or a Precision one (ultra, and v2's ultra-sublime, ultra-photo, ultra-denoiser). Default: creative.

Available options:
creative,
ultra-sublime,
ultra-photo,
ultra-denoiser,
ultra,
null
scale
enum<string> | null

The output size, one of the mode's scales. Default: 2x. creative also takes 1x (same size, added detail). Capped at the largest output your plan allows.

Available options:
1x,
2x,
4x,
8x,
16x,
2k,
4k,
3x,
5x,
6x,
7x,
9x,
10x,
11x,
12x,
13x,
14x,
15x,
17x,
18x,
19x,
20x,
null
prompt
string | null

Guidance for what to add, for the modes that take a prompt.

Maximum string length: 2000
presets
enum<string>

creative: the look, subtle, vivid, wild or custom.

Available options:
subtle,
vivid,
wild,
custom
optimised
enum<string>

creative: what the image is, to tune the upscale (StandardUltra, SoftPortrait, ArtAndIllustration...).

Available options:
StandardUltra,
SoftPortrait,
HardPortrait,
ArtAndIllustration,
VideoGameAssets,
NatureAndLandscapes,
FilmAndPhotography,
ThreeDRenders,
ScienceFictionAndHorror
creativity
integer

creative: how much detail it invents, -10 to 10.

resemblance
integer

creative: how close it stays to the source, -10 to 10.

hdr
integer

creative: definition and contrast, -10 to 10.

fractality
integer

creative: detail per pixel, -10 to 10.

engine
enum<string>

creative: automatic, magnific_illusio (illustrations), magnific_sharpy (sharpest photos) or magnific_sparkle (balanced).

Available options:
automatic,
magnific_illusio,
magnific_sharpy,
magnific_sparkle
sharpness
integer

Precision modes: sharpness, 0 to 100.

Required range: 0 <= x <= 100
grain
integer

Precision modes: film grain, 0 to 100.

Required range: 0 <= x <= 100
ultra_detail
integer

ultra, ultra-photo, ultra-denoiser: fine detail, 0 to 100.

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