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
| Name | Type | Description |
|---|---|---|
| request_idRequired | string | Request ID |
Responses
| Name | Type | Description |
|---|---|---|
| request | object | The jingle request. |
| audio_url | string | CDN link to the jingle, set once completed. |
| completed_at | string | When the jingle was generated, set once completed. |
| cost | integer | Cost in credits: the estimate while pending or processing, the amount charged once completed, 0 when failed. |
| created_at | string | When the request was accepted. |
| duration | integer | Length of the jingle in seconds, set once completed. |
| end_pause_seconds | integer | Silence added at the end in seconds. |
| error | string | Machine-readable failure code, set only when state is failed; null otherwise. |
| generation_type | string | full, instrumental or voice. |
| jingle_id | string | 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_id | string | Voice the text is spoken with, null for instrumental. |
| music_duration | integer | Requested music length in seconds for instrumental jingles. |
| request_id | string | Request ID. |
| state | string | pending, processing, completed or failed. |
| style_prompt | string | Description of the music bed; empty for voice. |
| text | string | What the voice says; empty for instrumental. |
| title | string | Title of the generated jingle, set once completed. |
| voice_effect | string | none or telephone. |
| success | boolean | Always true. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |