midicn 中文

API Cost and Quotas

Billing units shape the real cost. Estimate how many runs a task takes before comparing headline rates.

1 min read0 characters条目Tools and SelectionUpdated 2026-10-31

APIcostbillingquotas

Cheap per call, costly per keeper

A thirty-second cue that needs eight generations before one is usable costs eight times the list rate, plus the time spent repairing stems. Compare billing units first, then count how many runs a task really takes. Comparing headline rates alone usually leads to the wrong choice.

Three billing bases

BasisCharged onWhat raises the billGood forEasy to miss
Per secondInput or output durationLength, sample rate, channelsScores, effects, long bedsSilence and fade tails still count
Per characterPrompt, lyrics, textWord count, retries, contextLyrics, descriptions, bulk copySystem prompts and chat history
Per taskOne generation or editCandidates, resolution, concurrencyFull songs, stems, masteringFailed jobs, queuing, timeouts

Some services blend the three: a monthly allowance, then per-second or per-character overage. Allowances that expire monthly are a quiet price increase. Per-task pricing looks simple until candidate count and retry policy multiply the total.

Estimating one job

Cost ≈ unit rate × billable amount per run × number of attempts + repair hours + storage and transfer.

An example: a two-minute instrumental billed on output duration, six generations per keeper on average, two of them discarded for structural errors. Count eight runs, not one. If stems must be exported and cleaned, labour often exceeds the API charge. Keep the formula in billing units rather than currency so it survives a change of vendor.

A checklist of hidden costs

When metered billing loses

High-frequency small jobs such as stingers, loop batches and teaching demos are usually steadier on a subscription or a local setup. A handful of long cues a year is cheaper metered. Low unit price is not low total price. Put quota, concurrency and rework into the same comparison, and keep a redo column in the budget, or the first failed job will distort the whole sheet.

Listen in the library

fanfare 01 0C10:02两秒的 fanfare,按秒计费时最短任务也有起送量(C1)DetailsToccata and Fugue in D minor BWV 565C126:00二十六分钟长曲,按输出时长计费会线性放大(C1)Detailsfunk-groove1 · 138 BPM · beat 4/4C10:38138 BPM 放克鼓组,短循环多次重生成的成本(C1)DetailsкÐÑÑÑÐC10:38大型多分轨作品,导出与返工推高单条成本(C1)Details

All tracks from midicn-lib — inline badge is the license tier (C1 commercial / C2 non-commercial / C3 study only).

Along the same line

Sources

  • 生成服务公开的 API 文档,关于计费单位、配额与错误码的说明。
  • 云计算计费白皮书中关于存储、流量与请求计费的通用做法。
  • 后期制作工时估算的行业惯例,关于分轨修整与试听筛选。