Skip to main content

5. Generate Musical Plan

Endpoint: POST /sync_generate

Description: Generates a musical plan based on the video analysis.

Payload JSON payload

taskid is mandatory with_vocals - whether to include sung vocals. optional defaulting to false. with_voiceover - whether to include voiceover. optional defaulting to false. with_instrument - whether to include detailed instrument selection (e.g. "harp"). optional defaulting to false. genre - which Aimi genre to use. optional, AI will choose if not provided.

Request:

curl -X POST https://api.sync.aimi.fm/sync_generate \
-H "Authorization: Bearer YOUR_TOKEN" \
-F 'analysis=@analysis.json;type=application/json' \
-F 'payload={"taskid": "unique-task-id", "with_vocals": false, "with_voiceover": true, "with_instrument": false, "genre": "deep"};type=application/json'

Response:

{
"plan": {
"sections": [
// Sections
]
}
}