FastMetal
ModelsPricingDocsBlogComparisonApps
30% off, limited timeDeepSeek V4.1 Flash 1017, run in Japan, is 30% off until December 4 (JST)See details

API

  • Overview
  • Getting Started
  • Models
  • Reasoning Control
  • Video Generation
  • Structured Decisions
  • Media Uploads
  • Speech
  • Transcription
  • Music
  • Sound effects

Concepts

  • LLM API concepts
  • Errors and limits

Agents

  • All guides
  • MCP Server
  • Octofriend
  • Hermes
  • Claude Code
  • Crush
  • Opencode
  • GitHub Copilot
  • Cursor
  • DeepSeek Harness
  • OpenClaw
  • Xcode Intelligence

OpenAI Reference

  • /models
  • /chat/completions
  • /completions

Anthropic Reference

  • /messages
  • /messages/count_tokens

Platform Reference

  • /key/info

Help

  • FAQ

Sound effects

Make a sound effect from a text prompt. POST the prompt and the length to /v1/audio/sound-effects with your API key and get the clip back, decoded and checked before it is billed. Each clip is billed once, at the price of its length.

One clip

Send the model, a prompt and the length in seconds. The call waits for the clip, and the answer is the audio itself (audio/mpeg, or audio/wav when you ask for WAV). Its headers carry what was measured and billed:

  • x-fm-idthe clip's id, for support and your own records.
  • x-fm-duration-secondsthe length of the decoded clip, in seconds.
  • x-fm-requested-secondsthe length asked for, in seconds.
  • x-fm-peak-dbfsthe clip's true peak, in dBFS.
  • x-fm-loudness-lufsthe clip's integrated loudness, in LUFS (none when the clip is too quiet to measure).
  • x-fm-chargewhat the clip was billed, and the currency.
  • x-fm-checksthe checks, for example length=ok; level=ok.
  • x-fm-normalizewith normalize, the gain applied, what limited it, and the peak and loudness before it.
  • x-fm-attributionthe credit text of a model that carries one: show it where your users choose these clips.
curl -sS -X POST https://api.fastmetal.ai/v1/audio/sound-effects \
  -H "Authorization: Bearer $FASTMETAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "mirelo/sfx-2.0", "prompt": "Light rain on a window, no voices", "duration_seconds": 2}' \
  -o effect.mp3 -D headers.txt

With "delivery": "json" the answer is JSON instead: the clip as base64 under audio, its id, duration_seconds, requested_duration_seconds, the measurements (duration, peak and loudness), the checks, the attribution where the model has one, and the charge (amount, currency, per, duration_seconds, rounding and price_version). With normalize it also carries the gain, both measurements, and the clip as the model made it under original_audio.

Fields

  • modelRequired. A sound effect model from the price list below.
  • promptRequired. What the sound should be: the source, the place, the distance. At most 450 characters on the model with the smallest limit, with at least one letter or digit.
  • duration_secondsRequired. The length of the clip in seconds: one of 1.5, 2, 3, 4, 5, 6.
  • normalizeOptional, false by default. true evens out the clip's level (below). The price does not change.
  • response_formatmp3 (the default), or wav on a model that offers it (the price list says which).
  • deliverybinary (the default) or json.

Any other field is refused with a 400 naming it, before anything is charged: there is no seed, no loop and no number of samples. A prompt follows the speech API's rules for characters: no control character but tab and line feed, and no format character, private-use character or unassigned code point.

Each call makes a new clip, so two calls with the same body give two different clips, each billed.

Prices

A clip is priced by its length, and the price is the whole charge for the clip. The models bill whole seconds, so a 1.5 second clip costs what a 2 second clip costs.

ModelClipPrice a clip
Mirelo SFX 2.0
mirelo/sfx-2.0
A sound effects model by Mirelo.
Formats: MP3 / WAV
1.5 s$0.03165
2 s$0.03165
3 s$0.047475
4 s$0.0633
5 s$0.079125
6 s$0.09495
ElevenLabs Sound Effects v3
elevenlabs/sound-effects-v3
A sound effects model by ElevenLabs.
Formats: MP3
1.5 s$0.00422
2 s$0.00422
3 s$0.00633
4 s$0.00844
5 s$0.01055
6 s$0.01266

Prices are before tax, from the catalog the gateway bills by. A clip that fails its checks costs nothing, and normalize costs nothing extra.

Normalize

Some models make quiet clips. With "normalize": true the clip is raised or lowered by one fixed gain toward -23 LUFS (EBU R128), by at most 30 dB either way, leaving room for a true peak of -1 dBTP; nothing is compressed or limited. Encoding can raise the peak above that target: such a clip is delivered and billed, with normalize_peak_over in the JSON answer or peak=over in x-fm-checks on a binary answer, beside the measured peak. Normalization moves toward the target, and the gain and peak limits can stop it short: it keeps the clip's dynamics and does not promise the same loudness on every clip. The answer says which limit held, and gives the peak and loudness before and after. The clip is encoded again in its format, so any metadata the model put in the file is not kept; the JSON answer also carries the clip as the model made it.

Time

Every length in the price list is one the models made inside 79 seconds in our measurements, so every call is answered within 90 seconds. A clip that is not finished in time is refused and not billed.

A free price check

POST the same body with "op": "sound_effect" to /v1/audio/quote for the price of a clip before you make it. Nothing is sent to the model and nothing is billed, and a request the call would refuse is refused here the same way.

curl -sS -X POST https://api.fastmetal.ai/v1/audio/quote \
  -H "Authorization: Bearer $FASTMETAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"op": "sound_effect", "model": "mirelo/sfx-2.0", "prompt": "Light rain on a window, no voices", "duration_seconds": 2}'

What is checked before a clip is billed

Every clip is decoded and measured. A clip is never made again on its own: one call is one clip.

  • A clip shorter than asked by more than 0.1 seconds is refused, and nothing is charged.
  • A silent clip is refused, and nothing is charged.
  • A clip a little longer than asked is delivered with the warning length_long, at the price of the length asked.
  • A very quiet clip (below -48 LUFS, or a true peak below -32 dBTP) is delivered with the warning quiet, and billed in full. With normalize, the level is judged on the clip after its gain: normalize raises a quiet clip, and the warning stays only when it is still quiet. level=ok, or no quiet warning, only means the clip did not meet these criteria: it says nothing about quality, fidelity to the prompt, noise, or reaching -23 LUFS.

Attribution

Every answer from a model listed below carries its credit: the x-fm-attribution header, or the attribution field in the JSON answer. Show that text where your users choose these clips.

  • mirelo/sfx-2.0Generated using Mirelo's technology.
    Mirelo's API terms ask for a clearly visible attribution stating that the outputs are generated using Mirelo's technology, where end users choose the generations. The terms say it is not required in a fully automated pipeline.

For approval and accounting

A clip is billed once, in yen (US cents on a USD account), at the price of its length shown above, when FastMetal holds the whole checked clip. A caller that disconnects after that is still billed, and so is a download the caller cuts short. A request refused before the model is called costs nothing, and so does a clip that fails its checks. The JSON answer carries the charge and the price version it was billed at; the audio answer carries the charge in its x-fm-charge header, and each answer carries the clip's id.

MCP

Over MCP, generate_sound_effect makes one sound effect with the same models, lengths and prices, and dry_run checks the price for free. It answers within 45 seconds; a clip not finished by then comes back as pending with its id, and get_audio with that id fetches it (wait: true waits for it). A request_id makes a repeat safe: the same request_id with the same other arguments returns the first call's clip and bills nothing new. The prompt is not compared, so use a new request_id for each new request.

Errors

  • 400A field the request may not hold, a length or format the model does not sell, or a prompt the model could not make into a sound. Nothing is charged.
  • 413A body over 1 MiB.
  • 429budget_exceeded: the price does not fit what is left of the key's budget. From the sound effects service, a 429 carries its code at the top of the body beside its error, and the refusal itself is not charged: account_requests (the account already has its share of clips in progress: retry when one ends), capacity (the sound effects service is at its limit: retry shortly), or a pause of the account, account_paused_on_model (after clips on that model that were not confirmed delivered) or account_paused (after requests the sound effects service refused): the message says when to retry.
  • 502With one of the sound effects service's codes (listed below) at the top of the body, beside its error message, the sound effects service's own refusal, and nothing was charged: the model could not make the clip (host_failed), the clip did not pass its checks (clip_wrong_length, clip_silent, clip_unusable), or the service is unavailable right now (host_unavailable: try again later). A 5xx without one of them there (a code inside an error object is not one) can mean the connection failed after the clip was made, which may have been charged, so check the balance before you retry.
  • 503Sound effects are not available right now (sound_effects_unavailable, journal_unavailable), the clip would not finish in time (not_started_time), its price could not be confirmed (pricing_updating), or the service is busy (host_busy, host_busy_timeout), and nothing was charged; a 503 with one of those codes at the top of the body, beside its error message, is always the sound effects service's own refusal. Without one it can also be a failure on the way back, as for a 502: check the balance, then retry.
  • 504With the code past_time_budget, the answer was ready only after the time a call may take, and nothing was charged. Any other 504 is a failure on the way back, as for a 502: check the balance before you retry.

Every refusal of the sound effects service carries one of these codes at the top of the body, beside its error message, and none of them was charged: not_found, audio_disabled, unauthorized, query_not_supported, request_late, request_too_large, body_unreadable, body_invalid_json, body_not_object, plane_unavailable, internal_error, invalid_request, pricing_updating, sound_effects_unavailable, journal_unavailable, account_paused, account_paused_on_model, account_requests, capacity, not_started_time, host_busy, host_busy_timeout, host_unavailable, host_refused_request, host_failed, host_no_answer, host_outcome_unknown, host_answer_unusable, host_lost_request, host_cut_time_budget, host_no_audio, clip_unusable, clip_wrong_length, clip_silent, normalize_failed, out_of_time, past_time_budget.

Product

  • Pricing
  • AI cost calculator
  • Apps
  • Discover
  • Studio
  • For business
  • Partners
  • For providers
  • API Docs

Guides

  • Claude Code
  • GitHub Copilot
  • Cursor
  • DeepSeek Harness
  • Getting Started

API Reference

  • OpenAI Compatible
  • Anthropic Compatible

Compare Alternatives

  • vs OpenRouter
  • vs Lolipop! AI Gateway
  • vs OrcaRouter
  • vs Anthropic Direct
  • vs OpenAI Direct
  • vs Overseas Hosting
  • vs Local LLMs
  • Model vs model
  • Answers side by side
  • Rankings by use case
  • All comparisons

Account

  • Chat
  • Usage
  • Profile

Legal

  • Newsletter
  • Contact
  • Company Information
  • Terms of Service
  • Privacy policy

The AI Brief, weekly

New models, agents and harnesses, once a week. What is in it and our privacy policy.

© 2026 FastMetal. All rights reserved.

team@fastmetal.ai

Leaderboard data: LMArena leaderboard dataset (lmarena-ai/leaderboard-dataset), CC BY 4.0; category names mapped and ratings rounded by FastMetal.