AI タスクは非同期です。機能ごとに Webhook がサポートされている場合は、Webhook による完了処理を優先します。Webhook エンドポイントを設定し、Webhook 署名を検証したうえで、success または error の通知が来たら、受け取った task_id を使ってタスクの結果を照会します。設定と検証の詳細は Webhook 統合ガイド を参照してください。
Webhook がサポートされていない場合、または統合に使えない場合は、ポーリングを実装します。AI タスクを送信した後、一定の間隔(例:10 秒ごと)でステータスエンドポイントをポーリングし、success または error になるまで待ちます。
セキュリティ
BearerAuthenticationV2
Any of:
1〜9 枚の参考画像の URL。画像 1 枚につきアイテム 1 点。n 枚目の画像が、garment_categories の n 番目のカテゴリに対応します。URL は公開アクセス可能なものである必要があります。
例:
[ "https://example.com/full_body.jpg", "https://example.com/shoes.jpg" ]
参考画像 1 枚ごとのカテゴリ。ref_file_urls(または ref_file_ids)と同じ順序・同じ長さで指定します。 アクセサリーは最大 3 点までで、ほかのカテゴリは各 1 点まで。full_body は upper_body・lower_body との併用ができません。
Items Enum:"upper_body""lower_body""full_body""outer""shoes""bag""headwear""accessory"
例:
[ "full_body", "shoes" ]
- https://yce-api-01.makeupar.comhttps://yce-api-01.makeupar.com/s2s/v2.0/task/cloth-mix-v2
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.0/task/cloth-mix-v2 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"src_file_url": "https://example.com/selfie.jpg",
"ref_file_urls": [
"https://example.com/full_body.jpg",
"https://example.com/shoes.jpg"
],
"garment_categories": [
"full_body",
"shoes"
],
"styling_note": "top tucked in"
}'レスポンス
{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }