> For the complete documentation index, see [llms.txt](https://docs.myshell.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.myshell.ai/create/pro-config-mode/api-reference/module/anywidget-module/music-generation.md).

# Music Generation

### Widget

{% embed url="<https://app.myshell.ai/widget/MJBzEb>" %}

### Config

![Music Generation](/files/LUICvP32d0JTJFsrvR4j)

### Example

```json
{
  "id": "test",
  "initial": "home_state",
  "states": {
    "home_state": {
      "inputs": {
        "prompt_a": {
          "type": "text",
          "user_input": true
        },
        "prompt_b": {
          "type": "text",
          "user_input": true
        }
      },
      "tasks": [
        {
          "name": "any_module_test_task",
          "module_type": "AnyWidgetModule",
          "module_config": {
            "widget_id": "1743838636299784192",
            "output_name": "result",
            "prompt_a": "{{prompt_a}}",
            "denoising": 0.75,
            "prompt_b": "{{prompt_b}}",
            "alpha": 0.5,
            "num_inference_steps": 50,
            "seed_image_id": "vibes"
          }
        }
      ],
      "render": {
        "text": "Result",
        "audio": "{{result.audio}}",
        "buttons": [
          {
            "content": "Generate Again",
            "description": "",
            "on_click": "generate"
          }
        ]
      },
      "transitions": {
        "generate": "home_state"
      }
    }
  }
}

```
