Skip to content

Commit ee3c6ff

Browse files
feat: re-re-gen elevenlabs/eleven_music (scalar)
1 parent 2bb35f4 commit ee3c6ff

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/api-references/music-models/elevenlabs/eleven_music.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,19 @@
138138
"x-codeSamples": [
139139
{
140140
"lang": "JavaScript",
141-
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/images/generations', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"model\": \"elevenlabs/eleven_music\",\n \"prompt\": \"lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s\",\n \"music_length_ms\": 20000\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
141+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/generate/audio', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"model\": \"elevenlabs/eleven_music\",\n \"prompt\": \"lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s\",\n \"music_length_ms\": 20000\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
142142
},
143143
{
144144
"lang": "Python",
145-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/images/generations\",\n headers={\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"elevenlabs/eleven_music\",\n \"prompt\": \"lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s\",\n \"music_length_ms\": 20000\n }\n)\n\ndata = response.json()\nprint(data)"
145+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/generate/audio\",\n headers={\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"elevenlabs/eleven_music\",\n \"prompt\": \"lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s\",\n \"music_length_ms\": 20000\n }\n)\n\ndata = response.json()\nprint(data)"
146146
},
147147
{
148148
"lang": "cURL",
149-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/images/generations' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"elevenlabs/eleven_music\",\n \"prompt\": \"lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s\",\n \"music_length_ms\": 20000\n }'"
149+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/generate/audio' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"elevenlabs/eleven_music\",\n \"prompt\": \"lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s\",\n \"music_length_ms\": 20000\n }'"
150150
},
151151
{
152152
"lang": "HTTP",
153-
"source": "POST /v1/images/generations HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"elevenlabs/eleven_music\",\n \"prompt\": \"lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s\",\n \"music_length_ms\": 20000\n}"
153+
"source": "POST /v1/generate/audio HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\n\n{\n \"model\": \"elevenlabs/eleven_music\",\n \"prompt\": \"lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s\",\n \"music_length_ms\": 20000\n}"
154154
}
155155
]
156156
}

packages/generators-v2/src/json_for-docs_generation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"category": "music-models",
77
"vendor": "elevenlabs",
88
"codeSamples": "custom",
9-
"customUrlApi": "https://api.aimlapi.com/v1/images/generations",
9+
"customUrlApi": "https://api.aimlapi.com/v1/generate/audio",
1010
"customParams":{
1111
"model": "elevenlabs/eleven_music",
1212
"prompt": "lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s",

0 commit comments

Comments
 (0)