Skip to main content
POST
Check Media Credits

Authorizations

Authorization
string
header
required

API key from Settings > Developer > REST API

Headers

Moda-Version
enum<string>
default:2026-05-01

Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.

Available options:
2026-04-12,
2026-05-01
Example:

"2026-05-01"

Body

application/json
provider
enum<string>
required
Available options:
fal,
google,
audio,
voice,
meshy
Example:

"fal"

endpoint
string
required

The model or endpoint the generation would call. For meshy, the 3D operation (POST /v1/media/generate-3d's operation: image-to-3d, multi-image-to-3d, ...).

Required string length: 1 - 512
input
Input · object

The generation's input. For meshy, Meshy's request body as generate-3d takes it; its URLs and task_ refs are not read.

reference_media
Reference Media · object | null

Optional running time a client measured for each reference clip it cannot upload before the price is asked (a desktop's local file, sent as a placeholder link), keyed by that exact link. Shown-price only: the estimate assumes it for a clip no probe reads; the hold, the route and the charge never read it (a job re-measures the uploaded clip). It prices a reference clip, and an input a route bills on the length of (a driving video, a video to edit), by frames (else fps times its running time) where that route bills frames. width and height (pixels) price a route that bills its input video's frame size (every Topaz video upscale, denoise, deblur and interpolation): with its length and frames stated, the check quotes the published price its admission pins on the uploaded clip. A key no clip of the request carries is ignored.

Response

Successful Response

balance
CreditBalanceResponse · object
required
available
boolean | null
required
required_plan
enum<string> | null
Available options:
free,
starter,
creator,
ultra,
gigamax
model_name
string | null
cast_usage
Cast Usage · object | null

With X-Voyager-Cast-Version: 1 and input.cast: what the Elements compiled to (strategy, card versions, sent and omitted photos, warnings and the plan to pin with input.cast_plan). Absent otherwise.

access_key
string | null

Set when the model also needs the workspace's grant (Wan Spicy: wan-spicy), whether or not the plan reaches it: the key POST /v1/model-access/{access_key}/request asks for.

access
enum<string> | null

With available false on a plan that reaches the model: the workspace has no grant, and this is its status (none: never asked, requested: waiting for review, denied). Null otherwise.

Available options:
requested,
denied,
none
reason
enum<string> | null

With available false: the code admission and create refuse this exact request with (402). free_media_limit: a Voyager Free workspace's monthly media (balance.limits.media: its images, its voice generations and 3D models) has no room for it; required_plan is the plan that lifts the cap. payg_job_too_large: it could cost more than one Pay-as-you-go job may (max_job_credits); a smaller job or a plan runs it, more credits do not. model_not_priced_for_payg: nothing prices the model, so Pay as you go cannot run it; another model or a plan does. On Free's rules (required_plan starter), the Pay-as-you-go codes are the refusal this request would still get once credits are bought: buying credits does not run it, so offer only the plan. Absent otherwise.

Available options:
free_media_limit,
payg_job_too_large,
model_not_priced_for_payg
max_job_credits
integer | null

With reason payg_job_too_large: the most one Pay-as-you-go job may cost.

refusal
string | null

Why the provider proxy refuses this exact request for every plan and caller (a voice it does not take, a draft completion option the draft's host cannot run), in the words a submission's refusal uses. Present only with available false; absent otherwise. Not a plan wall: no plan or upgrade clears it.

hold_credits
integer | null

Credits an admission of this exact request would hold per job now, in the payer's credits; for meshy, what generate-3d would hold for one task. Where the hold was raised above the request's price evidence (an estimate: estimate_basis), admission holds at most what the payer can spend and starts the job with as little as admission_credits free, so a job may start below this figure. Null when it was not sized (a model the plan refuses, an audio or voice request, or a read that failed).

admission_credits
integer | null

Credits that must be free for admission to start one job of this exact request now, in the payer's credits: hold_credits, less where the hold was raised above the request's price evidence (admission then holds what the payer can spend, at least this, so a missing estimate never blocks a run). Each admitted job holds up to hold_credits of what is free, so a batch of N is sure to start with (N - 1) * hold_credits + admission_credits free. Absent where hold_credits is null, and for meshy (its admission also counts older open tasks).

notice
string | null

Billing terms for the resolved provider plan, when relevant to the estimate.

estimated_credits
integer | null

Credits one job of this exact request is expected to be charged, in the payer's credits: the figure to show as its price. Equal to hold_credits except where admission holds less than the expected charge (a Voyager Seedance job, held at a share of it). Settlement charges the actual cost. For an audio or voice request, whose hold_credits is null, the lane's own estimate (never below what its admission holds), or 1 labelled fallback while the input cannot be priced yet. Null otherwise when hold_credits is (a model the plan refuses, a read that failed).

estimate_basis
enum<string> | null

"fallback" when nothing prices this request and the figure is its model's fallback rate (an estimate: show it as one); absent when the figure is the request's own price. Admission holds a fallback figure at most what the workspace can spend, so it never refuses a job for it; settlement charges the real cost. Provisional means an uncertain forecast from shared pricing rules. Minimum means estimated_credits is the least the job can be charged, not its price: its input video's length, frames or size wasn't measured or stated (a Topaz video job), so show it as "at least" that; notice says what prices it exactly.

Available options:
fallback,
provisional,
minimum
estimate_source
enum<string> | null

With estimate_basis fallback, the rate's evidence: a its own prod settlements, b its provider's published price, c its own other prices scaled, d a peer model's, e its media type's default.

Available options:
a,
b,
c,
d,
e
exact
boolean
default:false

True only when estimated_credits will be the job's charge, read off settlement's own decision: a frozen published price charged as quoted, a job planned on a rate-card estimate of the request as stated (an image the platform prices itself; conditional on that route running it, about one in ten moves to another route, charged its receipt, mostly below the estimate), or a direct audio entry that meters the request. False wherever the charge is the upstream receipt or usage reported later (tokens, video length), even for a request the sizer prices exactly, for an assumed or measured length, a fallback or provisional rate (estimate_basis; a rate-card image estimate above is exact though its basis reads provisional), and where no estimate is given. Conservative: when in doubt, false.

advisories
Advisories · object[]

Always empty.