Skip to main content
POST
Submit generated content

Authorizations

x-api-key
string
header
required

API key issued for Interchange; reach out to Loti to obtain an API key.

Headers

x-idempotency-key
string<uuid>
required

UUIDv7 idempotency key to ensure replay-safe processing.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$

Body

application/json
promptId
string<uuid>
required

ID of a previously authorized prompt from which the generated content was created.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
type
enum<string>
required

Media type supported by generated-content processing.

Available options:
video,
audio,
image
contentUrl
string<uri>
required

Publicly accessible URL from which the generated content can be downloaded.

Pattern: ^[Hh][Tt][Tt][Pp][Ss]?:\/\/
callbackUrl
string<uri>
required

Public HTTPS URL to call when the generated content is processed.

Maximum string length: 4096
Pattern: ^[hH][tT][tT][pP][sS]:\/\/

Response

Accepted for asynchronous background processing.

jobId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$