💬 Real-Time AI Chat & Response Generation
Use this API to interact with our AI assistant in real time. Simply provide your userId
and prompt
to receive a generated response.
Core Parameters
🛈 The parameters below define the request body for this API.
Parameter | Type | Required? | Description |
---|
prompt | string | ✅ Required | User’s input or query to the AI assistant. |
action | string | ✅ Required | AIMagicTool AI assistant. |
{
"generate_music": For Prompts related to Generating text to music,
"extend_music": Conversation related to Extending the song,
"auto_complete_music": Conversation related to auto-complting the song,
"loop_audio": loop_audio,
"separate_stems": For stem separtion related Conversation,
"edit_music": Conversation related to editing the music,
"lyric_writing": Conversation related to generating lyrics,
"other": Any other normal Conversation,
}
Request Body
{
"prompt": "str",
"action": "str"
}
Code Samples
import requests
url = "https://api.soundverse.ai/assistant/chat"
headers = {
"Authorization": "Bearer your_api_key_here",
"Content-Type": "application/json"
}
payload = {
"prompt" : "I want to make a chill lo-fi beat. What should the mood and tempo be?",
"action" : "other"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
import requests
url = "https://api.soundverse.ai/assistant/chat"
headers = {
"Authorization": "Bearer your_api_key_here",
"Content-Type": "application/json"
}
payload = {
"prompt" : "I want to make a chill lo-fi beat. What should the mood and tempo be?",
"action" : "other"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
curl -X POST "https://api.soundverse.ai/generate/extend" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "I want to make a chill lo-fi beat. What should the mood and tempo be?""
"action" : "other"
}'
Response
Possible Errors :
- Internal Server Error -
500 status code