Generate Music from Text
This API allows you to generate AI-powered music based on a text description.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.
| Parameter | Type | Required? | Description |
|---|---|---|---|
prompt | string | ✅ Required | Text description of the music. |
duration | integer | ⚠️ Optional | Track length (15s, 30s, 60s, 180s). |
model | string | ⚠️ Optional | "sansaar_1" (HQ) or "sansaar_1_lite" (Faster). |
loop | boolean | ⚠️ Optional | Whether the music should loop. |
Request Body
Code Samples
- python
- curl
Response
- 200 OK
- 400 Bad Request
Sample Output
Possible Errors :
- If NSFW words are detected
- If Artist name is detected

