Trim and Loop Audio - Music From Text Generation
This API allows you to Generate stunning AI-driven music from text prompts — then intelligently detects and creates a seamless loop that syncs perfectly with your creative vision. Choose between:- 🎧 HD Quality →
sansaar_1(Higher fidelity) - ⚡ Fast Mode →
sansaar_1_lite(Quicker processing)
Core Parameters
🛈 The parameters below define the request body for this API.
Request Example
Code Samples
- python
- curl
Response
- 200 OK
- 400 Bad Request
Sample Output
Possible Errors :
- If NSFW words are detected
- If Artist name is detected
- If Length of provided audio is too short.
- If Length of looped audio is more than 960.
Trim and Loop Audio - Prompt Based Generation
This API allows you to feed in your prompt, get AI-powered audio — then automatically trim and loop the most seamless segment, perfectly aligned with your creative vision.Core Parameters
The following parameters are required to send a valid request:Request Example
Code Samples
- Python
- cURL
Response
- 200 OK
- 400 Bad Request
Sample Output
Possible Errors :
- If Rate Limits have been passed for User.
- If NSFW words are detected
- If Artist name is detected
- If Length of provided audio is too short.
- If Length of looped audio is more than 960.
Trim and Loop Audio - Lyrics Based Generation
This API allows you to feed in your lyrics, get AI-powered audio — then automatically trim and loop the most seamless segment, perfectly aligned with your creative vision.Core Parameters
The following parameters are required to send a valid request:Request Example
Code Samples
- Python
- cURL
Response
- 200 OK
- 400 Bad Request
Sample Output
Possible Errors :
- If Rate Limits have been passed for User.
- If NSFW words are detected
- If Artist name is detected
- If Length of provided audio is too short.
- If Length of looped audio is more than 960.

