foley.sources.fal.config#

SOURCE_CONFIGS for the fal-hosted SFX endpoints (text-, video-to-audio and edits), executed through falaw (#73).

One package, several sources: each fal endpoint is its own foley source (its own params, price and licence), and they all share one adapter class (FalAdapter) and one transport (falaw, the fleet’s fal client: content-addressed cache, typed errors, credentials). The registry reads SOURCE_CONFIGS (see foley.sources.registry._declared_configs()).

Stdlib-only and declarative, so discovery stays cheap. The native parameter names, ranges and output shapes below were read from each endpoint’s OpenAPI schema (https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=<id>) and checked with one live call each on 2026-10-25. Evidence and the comparison with the other models: misc/docs/research/13-generation-targets-2026-10.md and 17-genai-sfx-update-2026-10-25.md.

Licences (the per-sound record is fail-closed, so each row says only what is known):

  • fal_stable_audio_3 (and fal_stable_audio_3_medium, and the three Small-SFX edit endpoints) — Stable Audio 3 weights are under the Stability AI Community License (commercial use free under US $1M annual revenue, no use of outputs to train competing foundation models; Stability’s licence gives the user the output; fal’s terms only disclaim fal’s own rights in it). Its text encoder (T5Gemma) also carries Gemma terms, which bind the model, not the audio it outputs. Row: Stability-Community (the $1M cap flows from the row and foley.keep() enforces it).

  • fal_mmaudio — MMAudio weights are CC BY-NC 4.0, whatever fal’s commercial label says. Row: CC-BY-NC-4.0 with the MMAudio credit, so foley.keep() refuses it for commercial use and credits render the attribution.

  • fal_elevenlabs, fal_sonilo, fal_mirelo (and its edit endpoints fal_mirelo_inpaint, fal_mirelo_extend) — partner models resold by fal. Whether the vendor’s plan rules (ElevenLabs and Sonilo free tiers are non-commercial) apply to a fal-routed call is not documented (Sonilo’s own page now allows commercial use of API output, but not specifically for calls billed through fal). Row: fal-partner-unverified — usable in a derivative, not commercially, until the terms are confirmed (foley#77). Narrowing, never widening.

Each licence block also states what the row rests on (#77): model-licence (confirmed) for open weights, vendor-tos (unverified) for the partner rows, never fal’s own commercial label; Mirelo and ElevenLabs say the vendor reuses its output, and Sonilo reports its own watermark per clip (native_defaults['watermark_field']).

The edit endpoints (#162: fal_stable_audio_3_audio_to_audio, _inpaint, _extend) declare modes=['edit'] and their edit_op (a foley.base.EDIT_OPS name), so only a call with a source clip (audio=, see foley.edit()) reaches them, and none joins a text-to-audio or video-to-audio order. Their Stable Audio 3 row is the generator’s: the edit mode narrows each edit’s rights to its source’s (foley.sources.edit.edit_lineage()). Mirelo SFX 1.6’s inpaint and extend endpoints (#215: fal_mirelo_inpaint, fal_mirelo_extend) are those ops’ fallbacks, registered after them so an unnamed edit keeps Stable Audio 3; their schema limits (the clip’s, a window’s and the output’s lengths) are their edit_limits, and they are priced per second of the sound they make. fal deprecates both on 2026-12-15, with no SFX 2.0 edit endpoint to move to (yet).

Pricing is fal’s (unit/amount_usd as in foley.cost.estimate_call()), with the date it was read. per_second with no requested duration is priced at the duration_default_s the adapter sends in its place (or the endpoint’s maximum, an upper bound, when it declares none), never at zero.

Module Attributes

EDIT_SOURCE_CONFIGS

named, or picked by foley.edit from their edit_op (the first registered with its key set: the Stable Audio 3 ones, so Mirelo's are the inpaint and extend fallbacks, #215).

FAL_SOURCES

The fal source names, in the order above (the first is the recommended one).

foley.sources.fal.config.EDIT_SOURCE_CONFIGS = ({'api': {'endpoint_id': 'fal-ai/stable-audio-3/small/sfx/audio-to-audio'}, 'auth': {'apply_url': 'https://fal.ai/dashboard/keys', 'env_var': 'FAL_KEY', 'extra': 'fal', 'type': 'token'}, 'commercial_ok': True, 'data_egress': 'external', 'dependencies': [], 'display_name': 'Stable Audio 3 Small-SFX audio-to-audio (fal)', 'edit_op': 'audio_to_audio', 'kind': 'generate', 'license': {'cache_bytes_ok': True, 'default_license_id': 'Stability-Community', 'license_basis': 'model-licence', 'license_basis_confidence': 'confirmed'}, 'modes': ['edit'], 'name': 'fal_stable_audio_3_audio_to_audio', 'native_defaults': {'distilled': True, 'duration_default_s': 10.0, 'duration_max_s': 120.0, 'duration_min_s': 1.0, 'fixed_arguments': {'enable_prompt_expansion': False, 'enable_safety_checker': True}, 'generator_version': 'fal-ai/stable-audio-3/small/sfx/audio-to-audio', 'model_id': 'stable-audio-3-small-sfx', 'output_format': 'wav', 'sample_rate': 44100, 'seed_field': 'seed'}, 'on_unsupported_param': 'warn', 'optional_dependencies': ['falaw'], 'output': {'audio_field': 'audio', 'returns': 'url', 'storage': 'by_value'}, 'param_map': {'audio': {'native_name': 'audio_url'}, 'duration_s': {'native_name': 'duration'}, 'expand_prompt': {'native_name': 'enable_prompt_expansion'}, 'negative_prompt': {'native_name': 'negative_prompt'}, 'output_format': {'native_name': 'output_format', 'to_native_map': {'flac': 'flac', 'mp3': 'mp3', 'opus': 'opus', 'wav': 'wav'}}, 'prompt': {'native_name': 'prompt', 'required': True}, 'prompt_influence': {'coerce': {'hi': 25.0, 'kind': 'linear', 'lo': 1.0}, 'native_default': 1.0, 'native_name': 'guidance_scale'}, 'seed': {'native_name': 'seed'}, 'steps': {'native_name': 'num_inference_steps'}, 'strength': {'native_name': 'init_noise_level'}}, 'pricing': {'amount_usd': 0.024, 'seen': '2026-10-27', 'source': 'fal pricing API (GET /v1/models/pricing?endpoint_id=...)', 'unit': 'per_call'}, 'provider_params': {'append': {}, 'priced': ['duration'], 'reserved': ['audio_url', 'enable_prompt_expansion', 'enable_safety_checker', 'num_samples', 'prompt']}, 'rate': {'per_min': 60}, 'supported_affordances': ['prompt', 'audio', 'prompt_influence', 'negative_prompt', 'steps', 'seed', 'output_format', 'expand_prompt', 'duration_s', 'strength'], 'unsupported_affordances': ['loop'], 'website': 'https://fal.ai/models/fal-ai/stable-audio-3/small/sfx/audio-to-audio'}, {'api': {'endpoint_id': 'fal-ai/stable-audio-3/small/sfx/audio-inpainting'}, 'auth': {'apply_url': 'https://fal.ai/dashboard/keys', 'env_var': 'FAL_KEY', 'extra': 'fal', 'type': 'token'}, 'commercial_ok': True, 'data_egress': 'external', 'dependencies': [], 'display_name': 'Stable Audio 3 Small-SFX inpaint (fal)', 'edit_op': 'inpaint', 'kind': 'generate', 'license': {'cache_bytes_ok': True, 'default_license_id': 'Stability-Community', 'license_basis': 'model-licence', 'license_basis_confidence': 'confirmed'}, 'modes': ['edit'], 'name': 'fal_stable_audio_3_inpaint', 'native_defaults': {'distilled': True, 'fixed_arguments': {'enable_prompt_expansion': False, 'enable_safety_checker': True}, 'generator_version': 'fal-ai/stable-audio-3/small/sfx/audio-inpainting', 'model_id': 'stable-audio-3-small-sfx', 'output_format': 'wav', 'sample_rate': 44100, 'seed_field': 'seed'}, 'on_unsupported_param': 'warn', 'optional_dependencies': ['falaw'], 'output': {'audio_field': 'audio', 'returns': 'url', 'storage': 'by_value'}, 'param_map': {'audio': {'native_name': 'audio_url'}, 'expand_prompt': {'native_name': 'enable_prompt_expansion'}, 'inpaint_end_s': {'native_name': 'mask_end_seconds'}, 'inpaint_start_s': {'native_name': 'mask_start_seconds'}, 'negative_prompt': {'native_name': 'negative_prompt'}, 'output_format': {'native_name': 'output_format', 'to_native_map': {'flac': 'flac', 'mp3': 'mp3', 'opus': 'opus', 'wav': 'wav'}}, 'prompt': {'native_name': 'prompt', 'required': True}, 'prompt_influence': {'coerce': {'hi': 25.0, 'kind': 'linear', 'lo': 1.0}, 'native_default': 1.0, 'native_name': 'guidance_scale'}, 'seed': {'native_name': 'seed'}, 'steps': {'native_name': 'num_inference_steps'}}, 'pricing': {'amount_usd': 0.0259, 'seen': '2026-10-27', 'source': 'fal pricing API (GET /v1/models/pricing?endpoint_id=...)', 'unit': 'per_call'}, 'provider_params': {'append': {}, 'priced': ['duration'], 'reserved': ['audio_url', 'enable_prompt_expansion', 'enable_safety_checker', 'num_samples', 'prompt']}, 'rate': {'per_min': 60}, 'supported_affordances': ['prompt', 'audio', 'prompt_influence', 'negative_prompt', 'steps', 'seed', 'output_format', 'expand_prompt', 'inpaint_start_s', 'inpaint_end_s'], 'unsupported_affordances': ['loop', 'duration_s'], 'website': 'https://fal.ai/models/fal-ai/stable-audio-3/small/sfx/audio-inpainting'}, {'api': {'endpoint_id': 'fal-ai/stable-audio-3/small/sfx/audio-outpainting'}, 'auth': {'apply_url': 'https://fal.ai/dashboard/keys', 'env_var': 'FAL_KEY', 'extra': 'fal', 'type': 'token'}, 'commercial_ok': True, 'data_egress': 'external', 'dependencies': [], 'display_name': 'Stable Audio 3 Small-SFX extend (fal)', 'edit_op': 'extend', 'kind': 'generate', 'license': {'cache_bytes_ok': True, 'default_license_id': 'Stability-Community', 'license_basis': 'model-licence', 'license_basis_confidence': 'confirmed'}, 'modes': ['edit'], 'name': 'fal_stable_audio_3_extend', 'native_defaults': {'distilled': True, 'fixed_arguments': {'enable_prompt_expansion': False, 'enable_safety_checker': True}, 'generator_version': 'fal-ai/stable-audio-3/small/sfx/audio-outpainting', 'model_id': 'stable-audio-3-small-sfx', 'output_format': 'wav', 'sample_rate': 44100, 'seed_field': 'seed'}, 'on_unsupported_param': 'warn', 'optional_dependencies': ['falaw'], 'output': {'audio_field': 'audio', 'returns': 'url', 'storage': 'by_value'}, 'param_map': {'audio': {'native_name': 'audio_url'}, 'expand_prompt': {'native_name': 'enable_prompt_expansion'}, 'extend_after_s': {'max': 120.0, 'native_name': 'extend_seconds_after'}, 'extend_before_s': {'max': 120.0, 'native_name': 'extend_seconds_before'}, 'negative_prompt': {'native_name': 'negative_prompt'}, 'output_format': {'native_name': 'output_format', 'to_native_map': {'flac': 'flac', 'mp3': 'mp3', 'opus': 'opus', 'wav': 'wav'}}, 'prompt': {'native_name': 'prompt', 'required': True}, 'prompt_influence': {'coerce': {'hi': 25.0, 'kind': 'linear', 'lo': 1.0}, 'native_default': 1.0, 'native_name': 'guidance_scale'}, 'seed': {'native_name': 'seed'}, 'steps': {'native_name': 'num_inference_steps'}}, 'pricing': {'amount_usd': 0.0271, 'seen': '2026-10-27', 'source': 'fal pricing API (GET /v1/models/pricing?endpoint_id=...)', 'unit': 'per_call'}, 'provider_params': {'append': {}, 'priced': ['duration'], 'reserved': ['audio_url', 'enable_prompt_expansion', 'enable_safety_checker', 'num_samples', 'prompt']}, 'rate': {'per_min': 60}, 'supported_affordances': ['prompt', 'audio', 'prompt_influence', 'negative_prompt', 'steps', 'seed', 'output_format', 'expand_prompt', 'extend_before_s', 'extend_after_s'], 'unsupported_affordances': ['loop', 'duration_s'], 'website': 'https://fal.ai/models/fal-ai/stable-audio-3/small/sfx/audio-outpainting'}, {'api': {'endpoint_id': 'mirelo-ai/sfx1.6/inpaint-audio'}, 'auth': {'apply_url': 'https://fal.ai/dashboard/keys', 'env_var': 'FAL_KEY', 'extra': 'fal', 'type': 'token'}, 'capabilities': {'watermark_statement': "Mirelo's terms (§7.5): free-plan output may carry a watermark; whether a fal-routed call does is unverified."}, 'commercial_ok': False, 'data_egress': 'external', 'dependencies': [], 'deprecated_after': '2026-12-15', 'display_name': 'Mirelo SFX 1.6 inpaint (fal)', 'edit_limits': {'clip_s': (None, 10.0), 'span_s': (1.0, 8.0)}, 'edit_op': 'inpaint', 'kind': 'generate', 'license': {'cache_bytes_ok': True, 'default_license_id': 'fal-partner-unverified', 'license_basis': 'vendor-tos', 'license_basis_confidence': 'unverified', 'terms_notes': ["Mirelo's terms (§7.4) give Mirelo a training licence on your input and output; only a paid direct Mirelo account can opt out, which a fal-routed call cannot show."], 'vendor_trains_on_input': True, 'vendor_trains_on_output': True}, 'modes': ['edit'], 'name': 'fal_mirelo_inpaint', 'native_defaults': {'fixed_arguments': {'num_samples': 1}, 'generator_version': 'mirelo-ai/sfx1.6/inpaint-audio', 'model_id': 'mirelo-sfx-1.6', 'seed_limit': 9223372036854775808, 'upload_audio_format': 'wav'}, 'on_unsupported_param': 'warn', 'optional_dependencies': ['falaw'], 'output': {'audio_field': 'audio', 'returns': 'url', 'storage': 'by_value'}, 'param_map': {'audio': {'native_name': 'audio_url'}, 'inpaint_end_s': {'max': 10.0, 'min': 2.0, 'native_name': 'segment.end_s'}, 'inpaint_start_s': {'max': 9.0, 'min': 1.0, 'native_name': 'segment.start_s'}, 'output_format': {'native_name': 'upload_audio_format', 'to_native_map': {'flac': 'flac', 'mp3': 'mp3', 'wav': 'wav'}}, 'prompt': {'native_name': 'text_prompt'}, 'seed': {'native_name': 'seed'}}, 'pricing': {'amount_usd': 0.01, 'per_sample': True, 'seen': '2026-11-02', 'source': 'fal pricing API (GET /v1/models/pricing?endpoint_id=...)', 'unit': 'per_second'}, 'provider_params': {'append': {}, 'priced': ['duration'], 'reserved': ['audio_url', 'enable_prompt_expansion', 'enable_safety_checker', 'num_samples', 'segment', 'text_prompt']}, 'rate': {'per_min': 60}, 'supported_affordances': ['prompt', 'audio', 'seed', 'output_format', 'inpaint_start_s', 'inpaint_end_s'], 'unsupported_affordances': ['duration_s', 'prompt_influence', 'negative_prompt', 'steps', 'loop'], 'website': 'https://fal.ai/models/mirelo-ai/sfx1.6/inpaint-audio'}, {'api': {'endpoint_id': 'mirelo-ai/sfx1.6/extend-audio'}, 'auth': {'apply_url': 'https://fal.ai/dashboard/keys', 'env_var': 'FAL_KEY', 'extra': 'fal', 'type': 'token'}, 'capabilities': {'watermark_statement': "Mirelo's terms (§7.5): free-plan output may carry a watermark; whether a fal-routed call does is unverified."}, 'commercial_ok': False, 'data_egress': 'external', 'dependencies': [], 'deprecated_after': '2026-12-15', 'display_name': 'Mirelo SFX 1.6 extend (fal)', 'edit_limits': {'clip_s': (3.0, 59.0), 'output_s': (None, 60.0)}, 'edit_op': 'extend', 'kind': 'generate', 'license': {'cache_bytes_ok': True, 'default_license_id': 'fal-partner-unverified', 'license_basis': 'vendor-tos', 'license_basis_confidence': 'unverified', 'terms_notes': ["Mirelo's terms (§7.4) give Mirelo a training licence on your input and output; only a paid direct Mirelo account can opt out, which a fal-routed call cannot show."], 'vendor_trains_on_input': True, 'vendor_trains_on_output': True}, 'modes': ['edit'], 'name': 'fal_mirelo_extend', 'native_defaults': {'fixed_arguments': {'double_output': False, 'num_samples': 1}, 'generator_version': 'mirelo-ai/sfx1.6/extend-audio', 'model_id': 'mirelo-sfx-1.6', 'seed_limit': 9223372036854775808, 'upload_audio_format': 'wav'}, 'on_unsupported_param': 'warn', 'optional_dependencies': ['falaw'], 'output': {'audio_field': 'audio', 'returns': 'url', 'storage': 'by_value'}, 'param_map': {'audio': {'native_name': 'audio_url'}, 'extend_after_s': {'max': 57.0, 'min': 1.0, 'native_name': 'append_duration'}, 'loop': {'native_name': 'ambience'}, 'output_format': {'native_name': 'upload_audio_format', 'to_native_map': {'flac': 'flac', 'mp3': 'mp3', 'wav': 'wav'}}, 'prompt': {'native_name': 'text_prompt'}, 'seed': {'native_name': 'seed'}}, 'pricing': {'amount_usd': 0.01, 'per_sample': True, 'seen': '2026-11-02', 'source': 'fal pricing API (GET /v1/models/pricing?endpoint_id=...)', 'unit': 'per_second'}, 'provider_params': {'append': {}, 'priced': ['duration', 'append_duration'], 'reserved': ['audio_url', 'double_output', 'enable_prompt_expansion', 'enable_safety_checker', 'num_samples', 'text_prompt']}, 'rate': {'per_min': 60}, 'supported_affordances': ['prompt', 'audio', 'seed', 'output_format', 'extend_after_s', 'loop'], 'unsupported_affordances': ['extend_before_s', 'duration_s', 'prompt_influence', 'negative_prompt', 'steps'], 'website': 'https://fal.ai/models/mirelo-ai/sfx1.6/extend-audio'})#

named, or picked by foley.edit from their edit_op (the first registered with its key set: the Stable Audio 3 ones, so Mirelo’s are the inpaint and extend fallbacks, #215).

Type:

The edit sources (#162)

foley.sources.fal.config.FAL_SOURCES = ('fal_stable_audio_3', 'fal_stable_audio_3_medium', 'fal_mirelo', 'fal_elevenlabs', 'fal_sonilo', 'fal_mmaudio', 'fal_mirelo_v2a', 'fal_sonilo_v2a', 'fal_mmaudio_v2a', 'fal_thinksound', 'fal_hunyuan_foley', 'fal_stable_audio_3_audio_to_audio', 'fal_stable_audio_3_inpaint', 'fal_stable_audio_3_extend', 'fal_mirelo_inpaint', 'fal_mirelo_extend')#

The fal source names, in the order above (the first is the recommended one).