Skip to main content
POST
Prepare a Ditto replacement

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.

Body

application/json

Body

sourceAssetId
string<uuid>
required
replacements
object[]
required
Required array length: 1 - 30 elements
dittoTemplate
object
additionalInstructions
string
Maximum string length: 2000
sourceRange
object
modelId
string
Required string length: 1 - 100
resolution
enum<string>
Available options:
480p,
720p,
1080p,
480P,
768P,
1080P
audioMode
enum<string>
default:original
Available options:
original,
mute

Response

200

input
object
required
sourceDurationMs
number | null
required
Required range: x >= 0
selectedDurationMs
number | null
required
Required range: x >= 0
sourceVideoUrl
string | null
required
referenceImageUrl
string | null
required
models
object[]
required
quote
object | null
required
references
object[]