Skip to main content
POST
Change an image's camera angle
API v1’s horizontal_angle is rotate and its zoom is closeup.

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
rotate
integer | null

Degrees to turn around the subject, 0-360. Default 45.

Required range: 0 <= x <= 360
vertical
integer | null

Degrees to tilt up (positive) or down, -30 to 90. Default 0.

Required range: -30 <= x <= 90
closeup
integer | null

How close to move in, 0-10. Default 5, which keeps the framing.

Required range: 0 <= x <= 10
resolution
enum<string> | null

Render tier; higher costs more. Default 1k.

Available options:
1k,
2k,
4k,
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