Process audio
Changed onCreates an asynchronous deterministic audio editing task (beatra-audio-v1 or auto, up to 15 minutes and 100 MiB) for trim, loop, fade, normalize_loudness, or convert_format, with optional fade, loudness, and format finishing in the same call. Charged per task (up to 50 calls per account per UTC day). When the task succeeds, output contains {operation, outputs: [{role: "processed", artifact_id, url, mime_type, duration_ms, size_bytes}]}.
Request
- Base URLhttps://api.beatra.ai (the document declares no server; this is the origin it was published from)
- Authnone declared. Required headers: Idempotency-Key
Headers
Request body
POST /v1/audio/process request body for local audio operations.
Caller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars
HTTPS URL beatra will POST the final Task envelope to when the Task reaches a terminal state
Optional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.
Local audio processing operation (trim, loop, fade, normalize_loudness, convert_format).
Source audio (artifact_id or HTTPS url). Accepts source or audio.
Audio processing model identifier, or 'auto' for automatic selection.
Trim start in milliseconds.
Trim end in milliseconds.
Target output duration in milliseconds (trim or loop).
Exact loop repeat count (loop; 2-100, mutually exclusive with target_duration_ms).
Loop region start in ms.
Loop region end in ms.
Seamless loop boundary crossfade in milliseconds (50-3000).
Apply fade-out at the end of a looped clip.
Fade-in duration in ms (0-30000).
Fade-out duration in ms (0-30000).
Fade curve (tri, exp, log, qsin).
Target integrated loudness in LUFS (-30 to -9).
Target true-peak ceiling in dBTP (-9 to 0).
Output audio format (required for convert_format).
Output sample rate in Hz.
Lossy bitrate in kbps.
Output channel count (1 or 2).
Response
Task accepted
Standard Task envelope.
Returned by every async-creation endpoint, GET /v1/tasks/{id}, and the body of customer callback POSTs.
Caller-requested model verbatim (may be 'auto'). Null for social_operation tasks.
Actual model that ran (null until execution starts; equals model for explicit-model calls)
Changes
- info
endpoint added
- info