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
Response
Sample Output
Possible Errors :
- If NSFW words are detected
- If Artist name is detected