Suno
此内容尚不支持你的语言。
| Provider | Suno |
| Model name | suno |
| Endpoint | /v1/audio/generations |
| Credits | 50 per song |
| Max Duration | 2 minutes |
Features
Section titled “Features”- Any music style
- Vocal generation
- Up to 2 minutes
API Usage
Section titled “API Usage”curl -X POST https://api.hiapi.ai/v1/audio/generations \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "suno", "prompt": "upbeat pop song about summer", "duration": 60 }'import requests
response = requests.post( "https://api.hiapi.ai/v1/audio/generations", headers={ "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, json={ "model": "suno", "prompt": "upbeat pop song about summer", "duration": 60 })
print(response.json()["url"])const response = await fetch("https://api.hiapi.ai/v1/audio/generations", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ model: "suno", prompt: "upbeat pop song about summer", duration: 60 })});
const data = await response.json();console.log(data.url);