Перейти до основного вмісту
POST
ACE Music Audios

Авторизації

Authorization
string
header
обов'язково

Тіло

application/json
prompt
string
обов'язково

Creation idea. Required when custom is false.

Required string length: 1 - 20000
action
enum<string>
за замовчуванням:generate

generate creates new songs, upload imports one MP3 audio reference, cover reworks one owned track, and mashup blends exactly two owned tracks.

Доступні опції:
generate
custom
enum<boolean>
за замовчуванням:false

Only used by generate: false for an idea, true for supplied lyrics.

Доступні опції:
false
model
enum<string>
за замовчуванням:acemusic-v1.1

Generation supports both models. Cover and mashup use acemusic-v1.1. Omit for upload.

Доступні опції:
acemusic-v1.1,
acemusic-v1
lyric
string

Lyrics for custom generation, cover or mashup.

Required string length: 1 - 20000
style
string

Musical style for custom generation, cover or mashup.

Required string length: 1 - 20000
title
string

Required for custom generation; optional for cover and mashup.

Required string length: 1 - 20000
async
boolean
за замовчуванням:true

Return a persistent task ID; query /acemusic/tasks for the result.

callback_url
string<uri>

Optional HTTPS callback for the final result. Implies asynchronous execution.

Required string length: 1 - 20000
audio_url
string<uri>

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.

Required string length: 1 - 20000
Pattern: ^https://
name
string

Optional display name for an upload.

Required string length: 1 - 20000
audio_id
string

Public platform track ID owned by the caller. Required for cover; optional on upload to associate the import with an existing reference track.

Required string length: 1 - 20000
mashup_audio_ids
string[]

Exactly two distinct caller-owned public track IDs. The selected references must be compatible with each other.

Required array length: 2 elements
Required string length: 1 - 20000
audio_influence
number
за замовчуванням:60

Audio reference strength for cover and mashup. Defaults to 60.

Необхідний діапазон: 1 <= x <= 100
asset_id
string<uuid>

The platform asset ID from a successful import owned by this caller.

asset_type
enum<string>

Reference asset type. It must match the imported asset.

Доступні опції:
midi,
image,
video

Відповідь

Request accepted or result available. Generation, cover and mashup target two tracks; upload targets one. Inspect the original task state before treating it as complete.

task_id
string
обов'язково
trace_id
string