πŸ’¬ 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.
ParameterTypeRequired?Description
promptstringβœ… Required   User’s input or query to the AI assistant.
actionstringβœ… Required   AIMagicTool AI assistant.

AIMagicTool (action)

{
    "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())

Response

  {
  "aiReply": "str",
  }

Possible Errors :

  • Internal Server Error - 500 status code