Neural Analog API endpoint
Download Archive
Package requested track or stem versions for one or more audio IDs into one temporary zip archive.
post/download-archivePackage completed tracks or stems into one temporary zip archive.
Use this after the requested versions are complete. For example, poll
/status/audio/{audio_id}, /status/upscaled/{id}, /status/mastered/{id},
or /status/stem_split/{creation_id} before requesting the corresponding
archive versions.
Track and stem archive versions are separate requests:
{"id": "audio-id", "versions": ["original", "mastered"], "format": "wav"}{"id": "audio-id", "versions": ["original_stems"], "format": "wav"}The response usually contains download_url. For large archives, the API
may return email_notification_queued: true; in that case archive creation
continues in the background and the signed link is delivered by email.
Parameters
x-api-keyRequest Body
versionsArtifact versions to include. Use original/restored/mastered for full-track audio and original_stems/restored_stems/mastered_stems for stem archives.
Example: ["original","mastered"]
idSingle audio asset ID to package.
Example: "6c62f8e7-02a3-48c0-a5b5-5de87ed9c31a"
idsAudio asset IDs to package into one zip archive.
Example: ["6c62f8e7-02a3-48c0-a5b5-5de87ed9c31a","0d8ea9f2-ae8c-4af7-b73e-4b241ae5ce88"]
stem_idsOptional stem IDs to include when downloading stem versions.
Example: ["abf8a992-1c4e-4935-93f0-197116e77e49"]
stem_selectionsExact per-stem versions to include when downloading stem archives.
Example: [{"mastered_id":"f5db8e4b-2e74-4198-a8de-0c3a398620e9","stem_id":"abf8a992-1c4e-4935-93f0-197116e77e49","version":"mastered"}]
formatDefault requested archive format for stem versions.
Default: "wav"
original_formatNo description provided.
restored_formatNo description provided.
mastered_formatNo description provided.
Example
import os
import requests
response = requests.post(
"https://api.neuralanalog.com/download-archive",
headers={"X-API-Key": os.environ["NEURALANALOG_API_KEY"]},
json={
"id": "00000000-0000-0000-0000-000000000000",
"versions": [
"original",
"mastered",
],
"format": "wav",
},
)
print(response.json())Success Response
download_urlTemporary URL for the generated zip archive. Null when archive creation continues in the background and the user will be emailed.
Example: "https://storage.example.com/neuralanalog/archive.zip"
expires_in_secondsHow long the generated zip URL remains valid.
Default: 86400
email_notification_queuedWhether the archive is still being created and a download email has been queued.
Default: false
email_notification_threshold_secondsServer-side zipping duration threshold that triggers email delivery.
Example: 30
archive_incompleteWhether some requested files were skipped because the archive hit size or processing limits.
Default: false