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
The jingle request.
audio_urlstring
CDN link to the jingle, set once completed.
completed_atstring
When the jingle was generated, set once completed.
costinteger
Cost in credits: the estimate while pending or processing, the amount charged once completed, 0 when failed.
created_atstring
When the request was accepted.
durationinteger
Length of the jingle in seconds, set once completed.
end_pause_secondsinteger
Silence added at the end in seconds.
errorstring
Machine-readable failure code, set only when state is failed; null otherwise.
generation_typestring
full, instrumental or voice.
jingle_idstring
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
Voice the text is spoken with, null for instrumental.
music_durationinteger
Requested music length in seconds for instrumental jingles.
request_idstring
Request ID.
statestring
pending, processing, completed or failed.
style_promptstring
Description of the music bed; empty for voice.
textstring
What the voice says; empty for instrumental.
titlestring
Title of the generated jingle, set once completed.
voice_effectstring
none or telephone.
successboolean
Always true.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.