Skip to main content

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 Qualitysansaar_1 (Higher fidelity)
  • Fast Modesansaar_1_lite (Quicker processing)

Core Parameters

🛈 The parameters below define the request body for this API.

Request Example

Code Samples

Response


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

Response

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

Response

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.