Files: uploads and URL imports
Upload audio with a signed PUT URL bound to its type and size, or import from a public https URL. Validated by content, kept 48 hours.
Songs (covers), stems and mastering take a source: a file_id from this API, or an https URL we import for you.
Upload in three steps
POST /v1/fileswithfilename,content_typeand the exactbytes. You getupload.urlandupload.headers.- PUT the bytes to
upload.urlwith exactly those three headers:Content-Type,Content-Lengthandx-goog-if-generation-match: 0. POST /v1/files/{id}/complete. The file moves toprocessing, thenreadywith its duration, channels, sample rate and SHA-256.
Send the exact Content-Length and no chunked transfer encoding: the URL is signed for that size, so a streamed body without a length is rejected with 403. Upload URLs are for server-side use; they last 15 minutes and accept one PUT.
curl -X PUT "$UPLOAD_URL" \
-H "Content-Type: audio/wav" \
-H "Content-Length: 31752044" \
-H "x-goog-if-generation-match: 0" \
--data-binary @mix.wav/api/v1/filesCreate a file upload or import a URL
Creates a file and returns a signed PUT URL bound to its type and size, or imports audio from a public https URL. Files are validated by content and kept for 48 hours.
Body
| Field | Type | Description |
|---|---|---|
filename required | string (1–200 chars) | Shown back to you; never used as a path. |
content_type required | string (3–100 chars) | For example audio/wav, audio/mpeg, audio/flac, audio/mp4, audio/ogg, audio/webm or audio/aiff. |
bytes required | integer 1– | Exact size in bytes. Up to 104,857,600 (100 MiB) live and 26,214,400 (25 MiB) test; larger sizes get 413 upload_too_large. |
metadata | map of string (0–500 chars) | Up to 20 keys (letters, digits, _ and -, at most 40 characters) with string values up to 500 characters. Stored and returned, never interpreted. |
url required | URL (0–2048 chars) | Alternative form. A public https URL on port 443. |
metadata | map of string (0–500 chars) | Alternative form. Up to 20 keys (letters, digits, _ and -, at most 40 characters) with string values up to 500 characters. Stored and returned, never interpreted. |
Headers: Authorization, Idempotency-Key, Content-Type: application/json
curl -X POST https://www.omegahumanizer.cloud/api/v1/files \
-H "Authorization: Bearer $OMEGA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"filename": "demo-mix.wav",
"content_type": "audio/wav",
"bytes": 31752044
}'Response 201
{
"id": "file_9Qw2Er4Ty6Ui8Op1As3Df5Gh",
"object": "file",
"livemode": true,
"status": "awaiting_upload",
"filename": "demo-mix.wav",
"content_type": "audio/wav",
"bytes": 31752044,
"sha256": null,
"duration_seconds": null,
"channels": null,
"sample_rate": null,
"format": null,
"source": "upload",
"source_url": null,
"upload": {
"url": "https://storage.googleapis.com/omega-music-render/api/live/…?X-Goog-Signature=…",
"method": "PUT",
"headers": {
"Content-Type": "audio/wav",
"Content-Length": "31752044",
"x-goog-if-generation-match": "0"
},
"expires_at": "2026-11-06T10:15:00.000Z"
},
"error": null,
"created_at": "2026-11-06T10:00:00.000Z",
"expires_at": "2026-11-07T10:00:00.000Z",
"metadata": {}
}Errors: idempotency_key_required, idempotency_key_invalid, idempotency_key_in_use, idempotency_key_reused, invalid_json, parameter_unknown, parameter_missing, parameter_invalid, unsupported_media, upload_too_large, url_not_allowed, too_many_pending_uploads, rate_limited
/api/v1/files/{file_id}/completeFinish an upload
Call after the PUT succeeds. The file moves to processing and becomes ready once it is probed.
Path parameters
| Field | Type | Description |
|---|---|---|
file_id required | string (file_…) | The file id. |
Headers: Authorization, Idempotency-Key
curl -X POST https://www.omegahumanizer.cloud/api/v1/files/file_9Qw2Er4Ty6Ui8Op1As3Df5Gh/complete \
-H "Authorization: Bearer $OMEGA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"Response 202
{
"id": "file_9Qw2Er4Ty6Ui8Op1As3Df5Gh",
"object": "file",
"livemode": true,
"status": "processing",
"filename": "demo-mix.wav",
"content_type": "audio/wav",
"bytes": 31752044,
"sha256": null,
"duration_seconds": null,
"channels": null,
"sample_rate": null,
"format": null,
"source": "upload",
"source_url": null,
"upload": null,
"error": null,
"created_at": "2026-11-06T10:00:00.000Z",
"expires_at": "2026-11-07T10:00:00.000Z",
"metadata": {}
}Errors: idempotency_key_required, idempotency_key_invalid, idempotency_key_in_use, idempotency_key_reused, invalid_json, parameter_unknown, resource_missing, upload_incomplete, state_conflict
/api/v1/files/{file_id}Retrieve a file
Returns the file with its probed duration, channels, sample rate and SHA-256 once it is ready.
Path parameters
| Field | Type | Description |
|---|---|---|
file_id required | string (file_…) | The file id. |
curl https://www.omegahumanizer.cloud/api/v1/files/file_9Qw2Er4Ty6Ui8Op1As3Df5Gh \
-H "Authorization: Bearer $OMEGA_API_KEY"Response 200
{
"id": "file_9Qw2Er4Ty6Ui8Op1As3Df5Gh",
"object": "file",
"livemode": true,
"status": "ready",
"filename": "demo-mix.wav",
"content_type": "audio/wav",
"bytes": 31752044,
"sha256": "9b1f3f0e4c2d6a8b7e5f1a3c9d0b2e4f6a8c1e3d5b7f9a0c2e4d6f8b1a3c5e7d",
"duration_seconds": 180,
"channels": 2,
"sample_rate": 44100,
"format": "wav",
"source": "upload",
"source_url": null,
"upload": null,
"error": null,
"created_at": "2026-11-06T10:00:00.000Z",
"expires_at": "2026-11-08T10:00:00.000Z",
"metadata": {}
}Errors: resource_missing
Formats and limits
| Format | Accepted as |
|---|---|
| WAV | PCM 16/24/32-bit and float |
| MP3 | MPEG audio |
| FLAC | FLAC |
| M4A / AAC | AAC in MP4, or ADTS |
| Ogg | Vorbis or Opus |
| WebM | Opus or Vorbis (not for songs or mastering) |
| AIFF | PCM |
Files are checked by their content, not their name: the first bytes must match the format, and the file must contain exactly one audio stream with 1 or 2 channels at 8 to 192 kHz. Live files may be up to 104,857,600 bytes (100 MiB), test files 26,214,400 bytes (25 MiB). At most 50 live or 20 test files may be pending at once.
URL imports
POST /v1/files {"url": "https://…"} imports a public file: https on port 443 only, at most 3 redirects (each re-checked), 60 seconds and the size limit. Private, loopback, link-local and cloud-metadata addresses are refused, including after redirects. We store the host and path only, never the query string.
Retention
You have 24 hours to finish an upload. A ready file is kept 48 hours after upload, then deleted. Jobs that already started keep their own copy.