FreestyleDevelopers Open the app

Rate limits & errors

Every surface is budgeted: the Studio API, the MCP connector, OAuth and the partner API each have their own limits. Limits below are the defaults Freestyle ships with; operators can tune them per environment and per subject without a deploy, so treat the numbers as guidance and honour Retry-After when you see it.

Studio API v1

The Studio API has its own budgets, separate from every MCP budget below. Each operation's rate class is in the reference.

BudgetDefaultApplies toWhen exceeded
Interactive requests per user, per minute600Every operation (class interactive and ai), counted per user across all apps.429 rate_limited with Retry-After and details.bucket = user.
Interactive requests per (app, user), per minute600Every operation made with an OAuth token, counted per OAuth client and user, so one user cannot exhaust an app for its other users. First-party Studio sessions pay no app bucket.429 rate_limited, details.bucket = app_user.
Plug-in editor requests per user and per (app, user), per minute1800Class editor: getPluginEditorFrame, sendPluginEditorPointer, sendPluginEditorScroll, sendPluginEditorKeys. Their own buckets, instead of the interactive ones, so mirroring an editor never uses up the rest of the API.429 rate_limited, details.bucket = editor_user or editor_app_user.
App-wide volume, per minute6000All requests of one OAuth client. An alarm threshold for Freestyle's monitoring only.Never refused.
URL fetches per user, per hour30addAudioFromUrl, and createProject with a YouTube or URL source. Applies to every account.429 rate_limited, details.bucket = fetch.
Exports per user, per hour60exportMix (plus the app's limit on concurrent exports). Applies to every account.429 rate_limited, details.bucket = export.
Mozart AI commands per minute / per day12 / 250Only operations of class ai: applyRegionEffect, previewRegionEffect, mozartAiCommand, engine_add_808, engine_add_drum_hits, engine_add_groove, engine_add_hat_rolls, engine_add_instrument_track, engine_adjust_volume, engine_align_to_beat, engine_analyze_harmony, engine_analyze_song_sections, engine_audit_arrangement, engine_audition_patch, engine_compose_song, engine_detect_tempo, engine_find_sounds, engine_find_splice_sounds, engine_listen, engine_listen_back, engine_mix_check, engine_read_skill, engine_refine_song, engine_remove_track, engine_replace_stem_part, engine_restore_original, engine_search_patches, engine_separate_stems, engine_set_instrument_patch, engine_set_patch, engine_set_pattern_steps, engine_song_brief, engine_stem_status, engine_swap_sound, engine_write_pattern_notes. Shared with the Mozart AI budget of MCP and the Studio. Undo and job polling are interactive and never count.429 rate_limited with Retry-After, details.bucket = ai.
Stem splits per user1 per 5 minutes, 2 per hour, 10 per daysplitClipStems: the same per-user buckets the Studio's Extract stems pays (shared with it, MCP extract_stems and Mozart AI), refunded when no GPU job was queued (a cached backing split), plus the project track limit. Polling and undo are interactive.429 rate_limited with Retry-After (details.bucket = stem.5min for the 5-minute bucket), or 429 project_track_limit.
Listening renders per hour60listenToProject: its own budget, shared with MCP listen_to_project, not the fetch or export budgets.429 rate_limited.
Pencil sample editsThe limits in the MCP table beloweditClipSamples (shared with MCP edit_clip_samples).As below.
Bearer-token requests per IP, per minute600Every OAuth-bearer request to /api/v1, before the token is checked. An invalid token also pays the invalid-token bucket (60 per IP per minute), which is enforced, so guessing tokens is no faster than on /api/mcp.429.

Developer accounts are not exempt from these budgets on production. Every response carries X-RateLimit-Limit and X-RateLimit-Remaining for the per-user bucket. If the rate-limit authority is unavailable the API fails closed with 503 rate_limit_unavailable and Retry-After. Errors use the Studio API error envelope.

Upload quotas

Uploads made with an OAuth token (Studio API uploadAudio and MCP upload_audio) pass the same admission as uploads from the Freestyle app, keyed by the token's user. The project role is checked first; admission then runs on the exact decoded byte count.

ControlDefaultWhen exceeded
Size of one JSON upload25 MB decoded (use addAudioFromUrl for larger files)413 file_too_large
Concurrent uploads per user / per project2 / 4429 upload_concurrency
Uploaded bytes per user, per hour / per day1 GiB / 5 GiB429 upload_quota
Stored bytes (hard limit)50 GiB429 upload_quota
Admission unavailable—503 overloaded / storage_ledger_not_activated; retry later

URL fetches (addAudioFromUrl, MCP add_audio_from_url) pay the same admission on the downloaded bytes before anything is stored. A failed upload is refunded; a successful one is charged the bytes actually stored; a retry after a refunded failure is charged again. uploadAudio requires an Idempotency-Key, and the key also keys the reservation, so a retry reserves capacity once. A request the app's own upload path already admitted is not charged again.

MCP connector (per user)

BudgetDefaultApplies toWhen exceeded
MCP calls per minute120Every tools/call except the interactive editing tools below and get_audio_template_render_chunk (paged by design).HTTP 429 with a JSON-RPC error (below) and Retry-After.
Interactive DAW edits per minute600Direct, deterministic editing from a manually operated editor (faders, clips, transport, plugin controls, monitoring signalling): adjust_effect_wet, adjust_track_gain, apply_clip_batch, apply_plugin_preset, edit_clip_samples, edit_time_range, execute_pro_action, get_clip_waveform, get_pro_state, get_region_effect_job, get_turn_credentials, list_region_effects, place_pattern_sample_on_timeline, register_pattern_sample, restore_pattern_placement, rick_webrtc_offer, set_effect_enabled, set_plugin_bypassed, set_plugin_parameter, split_pattern_placement, transport_control, undo_clip_sample_edit, undo_last_ai_action. These never consume the Mozart AI quota below, except execute_pro_action calls whose action family is compose.HTTP 429 with a JSON-RPC error and Retry-After.
Mozart AI commands per minute12Generative and expensive tools only: add_audio_from_url, apply_audio_template, apply_effect_to_region, apply_voice_model_to_audio, crossfade_audio_files, export_mix, import_youtube_backing, listen_to_project, mozart_ai_command, preview_region_effect, revise_audio_template_render, plus execute_pro_action for compose actions.An isError tool result {"error": "You're sending commands too quickly — give it a few seconds.", "retryAfterSec": 20} plus Retry-After.
Mozart AI commands per day250The same tools.{"error": "You've hit today's Mozart AI limit. It resets in 24 hours.", "retryAfterSec": 3600}
Interactive session commands600 per minute (shared with the interactive tools)Each committed command or read on an interactive session socket, after coalescing. Live gesture updates are not charged; they are capped at 20 per second per control.{"type": "reject", "code": "rate_limited", "retry_after_ms": …}
Interactive session frames per second50 (burst 100)Every frame a socket sends.reject / error with code rate_limited; the frame is dropped.
Open interactive sessions4 per user; per project 8 write and 64 read sessionsopen_interactive_session (resuming an open session does not count, except a read session resumed as write, which needs a write slot). Read sessions never count toward the write cap.too_many_sessions (per user: with active_session_ids).
Interactive session socket64 KiB per frame; auth frame within 10 s; ping every 20 s, dead after 50 s of silenceEnforced by the WebSocket transport (an oversized frame is refused before it is buffered whole).Closed 1009 / 4408 (auth_timeout, peer_timeout) / 1008.
Concurrent engine calls from sockets16 per serverSocket commands, live gesture updates and snapshots in flight against Mozart at once.reject with code server_busy and retry_after_ms (not deduplicated: retry the same id).
Session ticket / idle session lifetime120 s / 600 sSingle-use connection tickets; sessions without a connected socket.Socket closed 4401 / 4410.
Transport clock push rateup to 15 Hz while playing; 120 engine clock reads/s per server across all projectstransport_clock frames; heartbeat every 2 s when stopped. Achievable rate = the lower of the ceiling, 1 / engine round trip and the project's share of the server budget. Polled only while a live socket is subscribed to the clock. Snapshots at most every 2 s per socket.Frames are coalesced (lossy), never queued.
Pencil sample edits (edit_clip_samples)64 ranges and 1 s of source frames per call; 30 stored versions per minute per user; a burst of 10, then 30 per minute, per live engine; one edit at a time per clip; source up to 100 MiB as 32-bit float WAV (about 4.3 minutes of stereo or 8.7 minutes of mono at 48 kHz); 8 undo steps per clipEach call stores a full new version of the clip's source, charged to your hourly and daily upload-byte quotas (not refunded) and to the project owner's storage (released when a version is undone or falls off the undo history). Calls can take up to about 95 s for long sources.rate_limited / upload_rate_limited / upload_quota (429), edit_in_progress (409), source_too_large (413), source_encrypted_unsupported (409, an encrypted version could not be stored), engine_timeout (retry with the same idempotency_key).
Listening renders per hour60listen_to_project{"error": "You have used this hour's listening budget. Try again later.", "code": "rate_limited", "retryAfterSec": …}

Reads and project CRUD are bounded only by the per-minute bucket. The per-minute bucket answers with a JSON-RPC error rather than a tool result:

HTTP/1.1 429 Too Many Requests
Retry-After: 10

{"jsonrpc": "2.0", "id": 7,
 "error": {"code": -32029, "message": "Too many MCP calls. Slow down and retry.",
           "data": {"retryAfterSec": 10, "tool": "get_project"}}}

OAuth endpoints (per IP)

BudgetDefaultWhen exceeded
Token endpoint calls per minute30429 {"error": "slow_down"} with Retry-After (503 temporarily_unavailable if the limiter itself is down).
Dynamic client registrations per hour (per IP; 3000 when every redirect URI is a Claude or ChatGPT callback)300429 {"error": "invalid_client_metadata", "error_description": "Too many client registrations. Try again later."} with Retry-After.

Partner API and launches

BudgetDefaultWhen exceeded
Partner-API calls per app, per minute600 (or the app's rateLimitPerMinute)429 rate_limited + Retry-After + X-RateLimit-Limit / X-RateLimit-Remaining / X-RateLimit-Reset
Partner-API calls per organization, per day200000429 rate_limited
Partner-token mints per app / per IP, per minute30 / 30429 temporarily_unavailable on the token endpoint
Launch-link mints per app, per minute300429 rate_limited
Launch page opens per IP / per app, per minute30 / 300429 launch_rate_limited on /api/enterprise/launch/context
Invalid-token probes per IP, per minute60429
Console calls per admin, per minute120429

Every successful partner-API response carries the three X-RateLimit-* headers for the per-app bucket; X-RateLimit-Reset is the number of seconds until the bucket is full again. If the rate-limit authority is unavailable the API fails closed: 503 rate_limit_unavailable with Retry-After.

Tool errors (MCP)

A tool that cannot do what was asked does not fail the JSON-RPC call. It returns a normal result with isError: true whose payload is an object with a human-readable error and, usually, a stable code:

{"jsonrpc": "2.0", "id": 8,
 "result": {
   "content": [{"type": "text", "text": "{\"error\":\"Project not found.\"}"}],
   "structuredContent": {"error": "Project not found."},
   "isError": true
 }}
{"error": "confirmed_destructive=true is required to delete a project.",
 "code": "confirmation_required"}

Extra keys appear where useful: retryAfterSec on rate limits, projectId on some import failures. Successful results are JSON objects too, returned twice — as the text block and as structuredContent. Results are bounded to about 20 kB: long lists and strings are trimmed and the object gains "_truncated": true; ask for a narrower page (smaller limit, a specific track) to see more.

Common codes

CodeMeaning
invalid_argumentAn argument is missing, has the wrong type, is too long or is outside its enum.
confirmation_requiredA destructive step needs confirmed_destructive: true (or confirm_destructive: true for Mozart AI) after the user agrees.
rate_limitedA per-tool budget is exhausted; see retryAfterSec.
project_emptyThe project has no lanes yet; call create_track (or add audio) before track-scoped tools.
track_limitThe project already has the maximum number of lanes.
invalid_url, download_failed, audio_invalid, audio_add_failedA link could not be used: not an https audio/YouTube URL, could not be fetched (too many redirects, blocked host), not decodable audio, or could not be attached.
query_is_linkA URL was passed to a search tool; use import_youtube_backing / create_project with the link instead.
youtube_import_too_longThe video exceeds the import length limit.
beat_not_found, backing_not_found, backing_attach_failedCatalog or backing lookups that did not resolve.
import_job_not_found, export_job_not_foundUnknown or foreign job id for get_import_status / get_export_status.
ai_command_failedMozart AI refused or could not run the command; error explains why.
pro_mode_requiredThe account lost Pro access (also returned as HTTP 403 on /api/mcp).

All codes the tool modules currently raise: audio_add_failed, audio_import_error, audio_invalid, backing_attach_failed, backing_not_found, beat_not_found, confirmation_required, download_failed, editor_required, engine_conflict, enterprise_unavailable, export_job_not_found, file_too_large, import_job_not_found, invalid_argument, invalid_track_kind, invalid_url, job_not_found, key_changed, lane_not_audio, lyrics_retrying, lyrics_save_failed, monitor_peer_not_found, no_backing_track, no_custom_lyrics, no_waveform, not_found, nothing_to_undo, owner_required, play_not_recorded, project_empty, project_import_failed, project_import_invalid, query_is_link, rate_limited, replace_import_unsupported, song_preset_invalid, stem_extraction_disabled, stem_job_not_found, stem_job_running, track_limit, track_not_found, username_mismatch, waveform_unavailable, youtube_import_too_long. Tools that delegate to the app's own routes pass that route's code through.

Errors without a code

  • "Project not found." (not_found) — the id is unknown or the connected user has no access to it at all. Access follows the app's collaboration rules (owner, named invite, live share link, public viewer); ids are never probeable.
  • editor_required / owner_required — the user can see the project but only as a viewer (or only as an editor, where the owner is required: deleting, sharing, changing who has access).
  • "This Mozart tool requires the <scope> OAuth scope." — the token lacks the tool's scope; the result's _meta["mcp/www_authenticate"] carries an insufficient_scope challenge. Re-authorize with the scope.
  • "Unknown tool: <name>." — not in tools/list.
  • "<tool> is temporarily unavailable." — an internal error on Freestyle's side. Nothing about the request was wrong; it has been logged. Retry after a moment, and if it persists for one tool, report it with the project id and the time.
  • "Couldn't open this project in the live engine" — the headless session could not be started for a live-engine tool; ask the user to open the project in the Studio once.

HTTP-level errors on /api/mcp

StatusBodyMeaning
401{"error": "Unauthorized"} + WWW-Authenticate: Bearer resource_metadata="…", scope="…"Missing, invalid, expired or revoked access token. Run discovery from the challenge.
403{"error": "Freestyle Pro is required for the MCP connector.", "code": "pro_mode_required"}The account has no Pro access.
403JSON-RPC error -32001 "Invalid Origin."A browser Origin header that is not on Freestyle's allow-list.
400JSON-RPC error -32600 "Invalid Request."Not a JSON-RPC 2.0 object.
200JSON-RPC error -32601 "Method not found." / -32002 "Resource not found."Unknown method or resource URI.
405Allow: POST, DELETEGET /api/mcp: no server-initiated event stream.
429JSON-RPC error -32029 + Retry-AfterPer-user MCP budget exhausted.
404—The connector is not enabled on this environment.

Partner API error envelope

{"error": {"code": "insufficient_scope", "message": "This token does not include the org:launch scope."}}

Status and code tables are on the Enterprise page; OAuth token-endpoint errors ({"error", "error_description"}) are on the Authentication page.

Freestyle developer documentation. Base URL https://freestyle.audio. Generated from the server's own registry and configuration.