curlopenai compatible
curl -X POST https://api.waninter.com/v1/generations \
-H "Authorization: Bearer $AIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno/chirp-v6",
"task": "text-to-audio",
"prompt": "A neon-lit alley after rain, 35mm, shallow depth of field",
"resolution": "1024x1024"
}'pythonsdk
from aio_gateway import Client
client = Client()
job = client.generations.create(
model="suno/chirp-v6",
task="text-to-audio",
prompt="A neon-lit alley after rain, 35mm, shallow depth of field",
)
result = job.wait()
print(result.output_url)