Skip to main content
POST
Magic resize from an image

Authorizations

Authorization
string
header
required

A Melius API key (mel_...), sent as Authorization: Bearer <key>.

x-team-id
string
header
required

The team (workspace) to act on. Defaults to the key's team when omitted.

Headers

idempotency-key
string

A case-sensitive key for one intended submission: 1–255 ASCII letters, digits, periods, underscores, colons or hyphens. Reuse it for identical retries; use a fresh key for a new run.

Required string length: 1 - 255
Pattern: ^[A-Za-z0-9._:-]+$

Path Parameters

canvasId
string<uuid>
required

Body

application/json

Body

sourceNodeId
string<uuid>
required
ratios
(enum<string> | string)[]
required
Required array length: 1 - 5 elements
Available options:
21:9,
16:9,
4:3,
1:1,
3:4,
9:16,
9:21

Response

201

nodeId
string<uuid>
required
nodeRunId
string<uuid>
required
creditCost
integer
required