You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: embd_res/kcpp_docs.embd
+138Lines changed: 138 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1644,6 +1644,144 @@
1644
1644
},
1645
1645
}
1646
1646
},
1647
+
"/api/extra/music/prepare": {
1648
+
"post": {
1649
+
"summary": "Creates song generation parameters such as caption, lyrics, BPM and duration",
1650
+
"description": "Creates song generation parameters such as caption, lyrics, BPM and duration. This should be called to produce the generation input for /api/extra/music/generate",
1651
+
"requestBody": {
1652
+
"content": {
1653
+
"application/json": {
1654
+
"example": {
1655
+
"caption": "An emotional rap song about the kobold war.",
1656
+
},
1657
+
"schema": {
1658
+
"properties": {
1659
+
"caption": {
1660
+
"type": "string",
1661
+
"description": "A short description of the song to create"
1662
+
}
1663
+
},
1664
+
"type": "object"
1665
+
}
1666
+
}
1667
+
},
1668
+
"required": true
1669
+
},
1670
+
"tags": [
1671
+
"api/extra"
1672
+
],
1673
+
"responses": {
1674
+
"200": {
1675
+
"content": {
1676
+
"application/json": {
1677
+
"example":
1678
+
{
1679
+
"caption": "A melancholic and narrative-driven rap track built around a heavy beat",
1680
+
"lyrics": "\n[Verse 1]\nKobold is love, yeah, kobold is life\nKobold is the only way we survive\nShe said okay, yo, keep it that way\nIn kobold we trust, just kobold today\n\n[Chorus]\nKobold, kobold, we carry on now\nKobold, kobold, each way and how\nKobold, kobold, right here we go\nKobold, kobold, all that I know.\n\n[Outro]",
1681
+
"bpm": 120,
1682
+
"duration": 64.0,
1683
+
"keyscale": "G minor",
1684
+
"timesignature": "2",
1685
+
"vocal_language": "en",
1686
+
"task_type": "text2music",
1687
+
"seed": 622315,
1688
+
"thinking": false,
1689
+
"lm_temperature": 0.85,
1690
+
"lm_cfg_scale": 2.0,
1691
+
"lm_top_p": 0.9,
1692
+
"lm_negative_prompt": "",
1693
+
"inference_steps": 8,
1694
+
"guidance_scale": 1.0,
1695
+
"shift": 3.0,
1696
+
"audio_codes": ""
1697
+
},
1698
+
"schema": {
1699
+
"properties": {},
1700
+
"type": "object"
1701
+
}
1702
+
}
1703
+
},
1704
+
"description": "Successful request"
1705
+
}
1706
+
},
1707
+
}
1708
+
},
1709
+
"/api/extra/music/generate": {
1710
+
"post": {
1711
+
"summary": "Generates music based on provided captions, lyrics and configurations",
1712
+
"description": "Generates music based on provided captions, lyrics and configurations. The config can be generated using /api/extra/music/prepare or crafted manually",
1713
+
"requestBody": {
1714
+
"content": {
1715
+
"application/json": {
1716
+
"example": {
1717
+
"caption": "A melancholic and narrative-driven rap track built around a heavy beat",
1718
+
"lyrics": "\n[Verse 1]\nKobold is love, yeah, kobold is life\nKobold is the only way we survive\nShe said okay, yo, keep it that way\nIn kobold we trust, just kobold today\n\n[Chorus]\nKobold, kobold, we carry on now\nKobold, kobold, each way and how\nKobold, kobold, right here we go\nKobold, kobold, all that I know.\n\n[Outro]",
1719
+
"bpm": 120,
1720
+
"duration": 64.0,
1721
+
"keyscale": "G minor",
1722
+
"timesignature": "2",
1723
+
"vocal_language": "en",
1724
+
"inference_steps": 8
1725
+
},
1726
+
"schema": {
1727
+
"properties": {
1728
+
"caption": {
1729
+
"type": "string",
1730
+
"description": "A short description of the song to create"
1731
+
},
1732
+
"lyrics": {
1733
+
"type": "string",
1734
+
"description": "The full lyrics of the song to generate"
1735
+
},
1736
+
"bpm": {
1737
+
"type": "number",
1738
+
"description": "The song Beats Per Minute"
1739
+
},
1740
+
"duration": {
1741
+
"type": "number",
1742
+
"description": "The length of the song, in seconds."
1743
+
},
1744
+
"keyscale": {
1745
+
"type": "string",
1746
+
"description": "The musical key of the song."
1747
+
},
1748
+
"timesignature": {
1749
+
"type": "string",
1750
+
"description": "The musical time signature of the song."
1751
+
},
1752
+
"vocal_language": {
1753
+
"type": "string",
1754
+
"description": "The language of the song lyrics."
1755
+
},
1756
+
"inference_steps": {
1757
+
"type": "number",
1758
+
"description": "How many diffusion steps to use."
1759
+
}
1760
+
},
1761
+
"type": "object"
1762
+
}
1763
+
}
1764
+
},
1765
+
"required": true
1766
+
},
1767
+
"tags": [
1768
+
"api/extra"
1769
+
],
1770
+
"responses": {
1771
+
"200": {
1772
+
"content": {
1773
+
"audio/wav": {
1774
+
"schema": {
1775
+
"type": "string",
1776
+
"format": "binary"
1777
+
}
1778
+
}
1779
+
},
1780
+
"description": "Successful request"
1781
+
}
1782
+
},
1783
+
}
1784
+
},
1647
1785
"/api/extra/json_to_grammar": {
1648
1786
"post": {
1649
1787
"summary": "Converts a provided JSON schema into GBNF grammar.",
0 commit comments