POST
/generateMüzik Geri Arama API'si Oluştur
Geri arama desteğiyle yapay zekayı kullanarak müzik oluşturun.
POST
https://udioapi.pro/api/generatetips
Bu uç nokta, oluşturma sonuçlarını geri arama URL'nize gönderir.
Geri arama URL'si herkese açık olmalı ve POST isteklerini kabul etmelidir.
requestHeaders
| name | required | description |
|---|---|---|
Authorization | yes | Kimlik doğrulama için taşıyıcı belirteci |
Content-Type | yes | application/json |
requestBody
İstek gövdesi, ilham modunu veya özel modu ve geri arama URL'sini destekler
İlham Modu
Metin açıklamasından oluştur
| paramName | paramType | required | description | example |
|---|---|---|---|---|
gpt_description_prompt | string | yes | Metin açıklaması istemi | A upbeat pop song about summer vacation with catchy melody |
Özel Mod
Özel şarkı sözleri, stil ve başlıkla oluşturun
| paramName | paramType | required | description | example |
|---|---|---|---|---|
prompt | string | yes | Özel şarkı sözleri veya istem | Verse 1: Walking down the street, feeling so free... |
style | string | no | Müzik tarzı | pop, upbeat, electronic, 120 bpm |
title | string | no | Şarkı adı | Summer Dreams |
tags | string | no | Negatif etiketler | sad, slow |
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
callback_url | string | yes | Geri aramaları almak için genel URL | https://your-domain.com/api/callback |
model | string | no | Yapay zeka modeli | chirp-v5-5 |
make_instrumental | boolean | no | Enstrümantal müzik üret | false |
gender | string | no | Vokal cinsiyet tercihi | female |
style_weight | number | no | Stile bağlılık gücü | 0.65 |
weirdness_constraint | number | no | Yaratıcı sapma kontrolü | 0.65 |
audio_weight | number | no | Ses özelliği dengesi | 0.65 |
responses
json
{
"code": 200,
"message": "success",
"workId": "gen2abc123def456bksv",
"data": {
"task_id": "gen2abc123def456bksv"
}
}codeExamples
curl
curl -X POST "https://udioapi.pro/api/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"callback_url": "https://your-domain.com/api/callback",
"model": "chirp-v4-5",
"gpt_description_prompt": "A upbeat pop song about summer vacation with catchy melody",
"make_instrumental": false,
"gender": "female",
"style_weight": 0.65,
"weirdness_constraint": 0.65,
"audio_weight": 0.65
}'