Beta ACE Music Audios API
POSThttps://api.yxai-tech.top/acemusic/audios

استخدم الإلهام أو كلمات مخصصة لإنشاء مجموعة من الأغاني، افتراضيًا بشكل غير متزامن، مع دعم الاستعلام عن المهام واستدعاء الإكمال.

مدخل تكامل الوكيل

رؤوس الطلب

authorizationstring
Bearer token

جسم الطلب

namestring
Optional display name for an upload.
asyncboolean
Return a persistent task ID; query /acemusic/tasks for the result.
يرجى الاختيار
lyricstring
Lyrics for custom generation, cover or mashup.
modelstring
Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload.
يرجى الاختيار
stylestring
Musical style for custom generation, cover or mashup.
titlestring
Required for custom generation; optional for cover and mashup.
actionstring
generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks.
يرجى الاختيار
customboolean
Only used by generate: false for an idea, true for supplied lyrics.
يرجى الاختيار
promptstring
Creation idea. Required when custom is false.
asset_idstring
The platform asset ID from a successful import owned by this caller.
audio_idstring
Public platform track ID owned by the caller. Required for cover; optional on upload to associate the import with an existing reference track.
audio_urlstring
Publicly downloadable HTTPS MP3 URL. Keep the link reachable until the task delivers the playback and download URL. Delivery supports external MP3 files up to 32 MiB and five public HTTPS redirects. For local, private or larger files, use the platform file upload API and provide its MP3 file_url (up to 64 MiB). Use audio_id or mashup_audio_ids for already imported or generated tracks.
asset_typestring
Reference asset type. It must match the imported asset.
يرجى الاختيار
callback_urlstring
Optional HTTPS callback for the final result. Implies asynchronous execution.
audio_influencenumber
Audio reference strength for cover and mashup. Defaults to 60.
mashup_audio_idsarray
Exactly two distinct caller-owned public track IDs. The selected references must be compatible with each other.

الاستجابة

Integration workbench

Shell

Python

JavaScript

Java

Go

PHP

ملاحظة: بالنسبة للطلبات المتدفقة، قد لا يكون الكود أعلاه مناسبًا تمامًا. يرجى الرجوع إلى وثائق التكامل لإجراء التعديلات.

موسيقى ACE
السماح باستخدام الرصيد العام

عند تفعيل "السماح بالرصيد العام"، سيتم استخدام الرصيد العام تلقائيًا عند نفاد رصيد المثيل.