AI タスクは非同期です。機能ごとに Webhook がサポートされている場合は、Webhook による完了処理を優先します。Webhook エンドポイントを設定し、Webhook 署名を検証したうえで、success または error の通知が来たら、受け取った task_id を使ってタスクの結果を照会します。設定と検証の詳細は Webhook 統合ガイド を参照してください。
Webhook がサポートされていない場合、または統合に使えない場合は、ポーリングを実装します。AI タスクを送信した後、一定の間隔(例:10 秒ごと)でステータスエンドポイントをポーリングし、success または error になるまで待ちます。
セキュリティ
BearerAuthenticationV2
Any of:
楽曲のテーマ。instrumental が true の場合は必須。ボーカル入り楽曲では idea、lyrics のどちらか、 または両方を指定します。特定の言語の歌詞を希望する場合は、この文章で指定してください(例:"with Japanese lyrics")。
デフォルト:""
例:"A song about a small café that stays open late for people who can't sleep"
楽曲の歌詞。[intro]、[verse]、[chorus]、[outro] などのセクションタグに対応しています。 対応している歌詞の言語:英語、日本語、韓国語、ポルトガル語、スペイン語、ドイツ語、フランス語、 イタリア語、繁体字中国語、簡体字中国語、ヒンディー語、トルコ語。
デフォルト:""
例:"[verse]\nTwo a.m., the neon hums\nSteam on the glass, the night still runs\n\n[chorus]\nLeave the light on, leave the light on\nFor the ones who don'
- https://yce-api-01.makeupar.comhttps://yce-api-01.makeupar.com/s2s/v2.0/task/ai-song
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.0/task/ai-song \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"idea": "A song about a small café that stays open late for people who can'\''t sleep",
"lyrics": "[verse]\nTwo a.m., the neon hums\nSteam on the glass, the night still runs\n\n[chorus]\nLeave the light on, leave the light on\nFor the ones who don'\''t go home",
"music_style": {
"genre": "Acoustic Pop",
"mood": "Calm, hopeful",
"vocal": "female",
"description": "soft piano, brushed drums"
},
"instrumental": false
}'レスポンス
{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }