Jingles

Get a jingle generation request

GET
https://api.tunio.ai/v1/jingles/requests/{request_id}

Get the state of a jingle request. Once completed, jingle_id and audio_url point at the generated jingle in the caller's library; it stays there until deleted.

Path parameters

NameTypeDescription
request_idRequiredstringRequest ID

Responses

NameTypeDescription
requestobject
-
audio_urlstring
AudioURL is the CDN link to the jingle, set once completed.
completed_atstring
CompletedAt is when the jingle was generated.
costinteger
Cost in credits: the estimate while pending or processing, the amount charged once completed. Nothing is charged for a failed request.
created_atstring
CreatedAt is when the request was accepted.
durationinteger
Duration of the jingle in seconds, set once completed.
end_pause_secondsinteger
EndPauseSeconds is the silence added at the end.
errorstring
Error is a machine-readable failure code (insufficient_balance, processing_timeout, generation_failed), set only when state is failed.
generation_typestring
GenerationType is full, instrumental or voice.
jingle_idstring
JingleID is the generated jingle in the caller's library, set once completed; add it to a bundle with POST /v1/jingle-bundles/{bundle_id}/items.
model_idstring
ModelID is the voice the text is spoken with, null for instrumental.
music_durationinteger
MusicDuration is the requested music length for instrumental jingles.
request_idstring
RequestID uniquely identifies the request.
statestring
State is pending, processing, completed or failed.
style_promptstring
StylePrompt describes the music bed.
textstring
Text is what the voice says.
titlestring
Title is the generated jingle's title, set once completed.
voice_effectstring
VoiceEffect is none or telephone.
successboolean
-
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.