Skip to main content

Pricing, billing, and usage

On this page you check prices, estimate what a run will cost, add funds to your balance and read your statement.

ReOpenly prices compute in US dollars. Training is billed per minute of measured training time. Inference is billed per token: a text request pays for its input (prompt) tokens and its output tokens at separate prices per million tokens, and an embedding request for its input tokens. Time in a queue and time a model sits idle are free.

Every amount the API returns is in US dollars. Some field names still say credits (available_credits, required_credits, credits_per_minute, low_balance_credits, credits_per_million_input_tokens and others), and so do routes such as /api/v1/credits and the error code insufficient_credits. The names keep the word for compatibility, so existing clients keep working; the values are dollars, and 1.5 in any of them is $1.50.

Fetch live rates and estimates instead of copying values from examples: prices and platform settings can change independently of a client release.

Check prices​

GET /api/v1/pricing/platform
GET /api/v1/pricing/models
POST /api/v1/pricing/estimate

These routes require no authentication and are rate-limited. /platform returns the training rate in US dollars per minute (credits_per_minute), the sign-up bonus in US dollars (signup_bonus_credits), the low-balance line (low_balance_credits) and the inference price list (inference_prices); /models returns the models the public calculator prices. The authenticated /api/v1/base-models is the authority for the models you can train and use, their capabilities and their training bounds.

inference_prices has one entry per model, text first:

FieldMeaning
model_idThe model, such as ReOpenly/Qwen3.5-9B.
tasktext_generation or embedding.
credits_per_million_input_tokensUS dollars per million input (prompt) tokens.
credits_per_million_output_tokensUS dollars per million output tokens, reasoning tokens included; null for an embedding model.
fine_tuned_multiplierA hosted fine-tuned model of this base pays both prices times this number.

Read the prices from this route rather than copying them: they are platform settings and can change without a client release.

/models lists the text model and both embedding bases. Each entry has a task (text_generation or embedding), kinds, the estimates offered for it (fine_tune, inference), and inference_price, the same entry inference_prices lists for it. POST /api/v1/pricing/estimate prices every listed model and answers 400 for any other. It is a forecast, not a quote: inside a project, the training estimate reads your actual selection.

When there is no number, expected is null and reason says why (reason.code and reason.message): a null is "no estimate", never "free" and never zero. The codes are training_duration_exceeds_limit, not_measured, selection_empty, embedding_batches_infeasible or embedding_split_infeasible (too few examples to split and batch), and examples_above_calculator_limit.

Estimate a fine-tune​

Send the model and the number of examples. Everything else uses the platform defaults a project's default run uses:

{
"kind": "fine_tune",
"model": "ReOpenly/Qwen3.5-9B",
"workload": { "examples": 1000 }
}

For a text model, examples is the number of conversations; for an embedding model (ReOpenly/Qwen3-Embedding-0.6B or ReOpenly/Qwen3-Embedding-4B), the number of query and passage pairs.

training_plan states the run that was priced: epochs, effective_batch_size, max_seq_length, precision (how the base model is held while it trains), train_examples and eval_examples (the held-out split), steps_per_epoch, planned_steps, evaluation_checks, expected_seconds (the forecast billed training time) and max_examples, the most examples the calculator prices for that model at those defaults. assumptions says, in sentences, what this estimate assumed: the run's settings, the held-out split, that it does not see your data, and the start margin. The rules every run is billed by are in How training is billed. required_credits is what your balance must hold to start that run: the forecast plus the start check's safety margin (70% by default).

  • Text (ReOpenly/Qwen3.5-9B): 3 epochs, effective batch 8 (2 x 4), sequence length 2,048 tokens, 8-bit base model. 5% of the examples, at most 512, are held out for evaluation once that is at least 8 (from 160 examples). The estimate has no input for example length: time per step was measured on long chat examples. Above max_examples (about 3,100 at the 6-hour limit) the run exceeds the time limit for one training run, so expected is null and reason.code is training_duration_exceeds_limit, the code creating that job would answer. Train on fewer examples, or on fewer epochs in your project.
  • Embeddings: 1 epoch (where the New training form starts), batch 32 on 0.6B and 16 on 4B, sequence length 512 tokens, 4-bit base model, up to 10 evaluation checks; 10% of the examples are held out. The embedding estimate depends on how much text the run processes, which the calculator cannot see, so it assumes about 1,730 bytes of text per example (training_plan.mean_example_bytes), the mean of the data the estimate was measured on. A price is given only inside the measured range, which covers small datasets: above max_examples, reason.code is not_measured, and above 10,000 examples it is examples_above_calculator_limit. Embedding estimates have no range. Without examples the request answers 400 examples_required; detailed fields are ignored, and assumptions names them.

Detailed text form. A text fine-tune also accepts the planned steps, sequence length, trainable conversation count, held-out count and effective batch size. Any of max_steps, max_seq_length, eval_examples, effective_batch_size or evaluation_cadence selects this form, and training_plan is then null:

{
"kind": "fine_tune",
"model": "ReOpenly/Qwen3.5-9B",
"workload": {
"max_steps": 100,
"max_seq_length": 2048,
"messages": 5000,
"examples": 1000,
"eval_examples": 50,
"effective_batch_size": 8
}
}

A fine-tune estimate returns two different numbers. Do not confuse them:

  • expected is the forecast of what you will pay: the billed training time only, at the current rate, with a deliberately wide range. It is a forecast, not a guarantee; the final charge is measured.
  • authorization_ceiling is the price of the longest the run is allowed to take, including startup that is not billed. It sets the run's time limit; it is not a charge and not the balance you need. On a short run, unbilled startup can be most of it, so it can be many times expected.

What must be available to start. Creating a text training job checks your balance against the billed-time forecast plus a safety margin (70% by default), not against authorization_ceiling; your balance must also be above zero. With less, create answers 402 insufficient_credits. For your actual selection, read estimated_credits from the in-project estimate described in Training jobs.

duration_components.execution_limit_seconds is the platform's per-attempt time limit. embedded_evaluation_seconds, scheduled_evaluation_seconds and evaluation_adjustment_seconds show how the exact evaluation schedule is added in, so sparse plans can quote less as well as dense plans quoting more. Fine-tune workloads may include the same evaluation_cadence object that job creation accepts.

examples is the selected trainable conversation count before the split, while messages is the selected message count. Send eval_examples when you know the held-out count. If both corpus fields are omitted, the public calculator conservatively assumes the maximum of 512 held-out examples and returns low confidence: an omitted field is not an estimate of zero evaluation work. The in-project estimate uses your actual split.

Estimate inference​

Send the model, the tokens per request and, optionally, the number of requests (1 by default):

{
"kind": "inference",
"model": "ReOpenly/Qwen3.5-9B",
"workload": { "input_tokens": 2048, "output_tokens": 250, "requests": 1000 }
}

For an embedding model, send input_tokens: without it the request answers 400 input_tokens_required. output_tokens is ignored, because an embedding request returns vectors, and assumptions says so.

inference prices input and output tokens as separate parts, each at its published price. inference.input and inference.output (null for an embedding model) each have tokens, priced, basis (published_price), credits_per_million_tokens (that kind's price in US dollars per million tokens), expected (that part for all the requests) and, when it is not priced, reason. seconds_per_request is null: what a request costs does not depend on how long it runs. billing_adjustment is what rounding each request up to the next $0.000001 adds, so expected is the priced parts plus it, and range is expected itself, because the price of a given number of tokens is exact. minimum is the least the requests can cost: the per-request minimum, $0.00001 each. assumptions names the model's current list prices the estimate used; the rules every request is billed by are in How inference is billed.

The calculator prices the base model. A hosted fine-tuned model pays the same prices times the base's fine_tuned_multiplier, and a shared or public model adds its owner's surcharge (see How inference is billed).

How inference is billed​

A request is charged for its tokens, as the model counted them. The charge is

(input tokens x input price + output tokens x output price) / 1,000,000
x fine-tuned multiplier

rounded up to the next $0.000001, with the prices inference_prices lists for the model that served it, and never less than the per-request minimum, $0.00001 (minimum_credits_per_request in inference_prices). An embedding request has input tokens only.

  • A request pays the prices in force when it was accepted. A price change while it runs applies to later requests only.

  • The per-request minimum covers the fixed work of serving any request. It matters only for very small requests: a 10-token Search query or a short embedding of a few words pays $0.00001, a million of them $10. Above about 125 input tokens on ReOpenly/Qwen3.5-9B, or about 1,100 tokens on ReOpenly/Qwen3-Embedding-0.6B (550 on the 4B), a request pays its tokens instead. A split embedding request pays it once; each Search build batch is a request. A request refused before it is served pays nothing.

  • Reasoning tokens are output tokens. A model that thinks before it answers generates those tokens, and they are part of completion_tokens in the response's usage; they are not added a second time.

  • A hosted fine-tuned model pays its base's prices times the base's fine_tuned_multiplier (GET /api/v1/pricing/platform); a multiplier of 1 means the base's prices. A shared or public model adds its owner's surcharge, a percentage of the charge (see Hosted models).

  • Cached prompt tokens are charged in full. When the model reuses part of a prompt it has already processed, those tokens still count as input.

  • Streaming. The charge uses the model's own counts whether or not you ask for stream_options.include_usage.

  • A stream you close early is charged for its prompt and the output tokens generated until it stopped. Closed before its first token arrives, it is not charged.

  • A request refused while the model is warming up or busy is not charged: 503 model_warming for text, 503 capacity_unavailable or 503 artifact_not_ready for embeddings, streamed or not.

  • A request that fails is not charged, including one that fails after it started streaming, and so is a request refused before it runs (an invalid request, a model you cannot use, a balance too low).

  • If the model reports no count, which should not happen, the charge never treats it as zero: a missing prompt count is replaced by ReOpenly's own estimate of the prompt, and a missing output count by the time the model spent on the request at the training rate, or, when that is missing too, by the request's max_tokens. It is never more than the request's prompt plus max_tokens at the request's prices.

Your statement shows, for each inference line, the tokens and the prices it was charged at (see Balance and statement).

How training is billed​

Only training time is billed: queue, start-up, data preparation and saving the model are free. The charge is each attempt's training_started_at to post_processing_started_at interval, falling back to the attempt's end for a run that never reached post-processing. Everything before training begins is unbilled (queue time, freezing your selection, loading the model, reading and tokenizing your data), and so is everything after the loop ends: saving, verifying and publishing the model. Gaps before a retry are unbilled too.

  • A run that never began training is charged nothing. That is what makes cancelling a queued or preparing job free.
  • An attempt that fails is not charged, even if it trained for a while. Time already charged when an earlier pause settled stays charged.
  • The cost so far updates while the run trains. It is charged when the attempt ends, and an attempt that fails is not charged (cost so far on the job).
  • A pause is charged when it settles, for the time trained up to the checkpoint. Finishing a paused job adds no charge.

The final charge uses the measured interval of each charged attempt, not the wall-clock job duration and not the estimate. The rate shown when the run starts applies to the whole run: each attempt is charged at the per-minute rate in force when it started, so a rate change while it trains does not change its charge. A later rate applies to new runs, retries and resumes. Training time is rounded up to the next 100 ms for each charged attempt. Ledger charges and balances keep six decimal places. The training screen displays costs to four decimal places; that display does not change the stored charge. For example, 40.3 seconds of training at $0.03 per minute costs $0.020150, displayed as $0.0202.

Embedding projects​

Embedding projects use the same balance, rate and statement as text. What differs is how you estimate and what each operation charges.

Training estimate. Estimate an embedding run inside its project:

POST /api/v1/projects/{owner_slug}/{project_slug}/training-jobs/estimate

Send the same selection you previewed (see Training jobs). required_credits is the amount that must be available to start the run, the same rule as a text run: your balance must be above zero and cover it, or create answers 402 insufficient_credits. When calibrated is true, estimated_credits is the measured training time with a safety margin, and required_credits equals it. When it is false, estimated_credits is null (no measurement covers that run, which does not mean it is free) and required_credits is admission_ceiling_credits: the run's time limit (the platform limit, or the execution_limit_seconds you send) priced at the current rate. As with text, only the training loop is billed, and the job's cost_credits is the actual charge.

Inference. An /embeddings request is billed for its input tokens at the model's price per million input tokens (inference_prices), rounded up to the next $0.000001. A request split into batches on the server is charged once, for all of its tokens, and only when every batch succeeded. Playground Similarity and Vector bill each embedding request they send; usage.billable_requests says how many. See Embeddings.

Search indexes. Building an index embeds its passages in batches, each billed as an ordinary embedding request and listed in your statement. For each build you approve a spending ceiling (credit_ceiling, in US dollars), the most that build may spend: above $0 and at most $100 (limits.max_credit_ceiling in GET .../search/versions); any other value answers 422 search_credit_ceiling_invalid. A build that reaches its ceiling stops sending batches and fails with search_credit_ceiling_reached; a batch already running can finish slightly past it. Each query is one billed embedding request. Stored vectors have no separate charge, and what you spent on an index is not refunded when you delete it. A build costs about its passages' input tokens at the model's input price (times the fine-tune multiplier on a fine-tuned model): 377 passages, 125,332 tokens, cost about $0.0011 on the 0.6B base. The ceiling bounds the build; it is not its price. GET .../search/estimate returns the expected cost before you build, and the app shows it beside the ceiling. See What a build costs.

Base models without a project. Calls to ReOpenly/Qwen3-Embedding-0.6B or ReOpenly/Qwen3-Embedding-4B at /api/openai/v1, and Playground Similarity and Vector with no project, are charged to the caller's account at the same rates, and nothing is saved. A base-model call through a project you own is charged to you and appears under that project in your statement.

Shared and public models. A shared or public embedding model follows the same payer and surcharge rules as a text model: the share's payer decides who pays, and a paying recipient or public caller also pays the configured extra_charge_percent or public_extra_charge_percent. See Hosted models.

Add funds​

Start a checkout with POST /api/v1/credits/checkout. amount is the amount in US dollars to add to your balance, and currency is the currency you pay in: usd (the default) or brl. With brl, amount is still US dollars; the quote converts it once and locks the exchange rate:

curl -X POST "https://reopenly.com/api/v1/credits/checkout" \
-H "Authorization: Bearer $REOPENLY_API_KEY" \
-H "Idempotency-Key: 3f1c2a9e-5b7d-4c1e-9a2f-6d8e0b4c7a15" \
-H "Content-Type: application/json" \
--data '{"amount": 25, "currency": "brl"}'

A purchase adds between $1 and $10,000 by default (these bounds are configurable); outside them, checkout answers 400. The response locks the quote and returns credits (the US dollars added to your balance), currency, money_amount (what you pay, in currency) and fx_rate, plus the Stripe url to send the buyer to. Pass a fresh UUID v4 Idempotency-Key for each purchase attempt: retrying with the same key reuses the same Stripe session instead of creating another.

Payment is authorized first and captured only when the funds are added to your balance. After payment, Stripe redirects the buyer to the app's return page with ?checkout=success&session_id=<id>; take session_id from that query string and poll, with the id in the body so it stays out of access logs:

POST /api/v1/credits/checkout/status {"session_id": "<session_id>"}

GET /api/v1/credits/checkout/status?session_id=<session_id> still answers the same and is deprecated.

Treat only fulfilled as added. A fulfilled status also returns purchase with the credits added (in US dollars) and the money_amount charged in currency (ISO 4217, upper case); it is null in every other state.

statusMeaning
pendingCheckout is not complete yet.
authorizedThe payment is authorized and held, not yet captured.
capturedThe payment is captured; the funds are being added to your balance.
refund_pendingThe funds could not be added after capture; a refund is in progress.
fulfilledThe funds were added to your balance.
refundedThe payment was refunded; nothing was added to your balance.
canceledThe payment did not complete or the authorization was released; nothing was charged and nothing was added to your balance.

If the buyer cancels on the Stripe page, they return with ?checkout=canceled and no session_id.

Low balance​

  • Inference. Before a request runs, the payer's balance must be above zero and cover the most the request can cost: its prompt plus max_tokens at the model's prices (an embedding request: its input tokens), plus any surcharge. Otherwise the request answers 402 with error.code = "insufficient_credits". It is not retried automatically; add funds and send it again. For a shared model with payer: "user", or a public model, the caller's balance is checked; with payer: "owner", the owner's.

  • A training run is paused before your balance runs out. While a text or embedding job trains, ReOpenly compares your balance with the training time the run has used and not yet been charged for. Other charges, such as inference, already come off your balance as they happen, so they count too. When what is left would no longer cover the run's training up to its next checkpoint, plus a safety margin, the run is paused exactly as if you had pressed Stop: it trains on to that checkpoint, is charged for the training time up to it, and waits there with pause_reason: "insufficient_credits". Nothing is lost. Add funds, then resume it (resume checks your balance and answers 402 insufficient_credits until it is enough), or finish it to keep the model it reached, which is free. See Training jobs.

  • What is never paused for a low balance. A run that has not begun training (it costs nothing yet), and a run past its last checkpoint, which has nowhere left to stop and finishes normally.

  • How far below zero your balance can still go. The pause is triggered from the run's measured pace, with a margin, so a run normally pauses with your balance at or above zero. It is not a hard floor, and the balance can still end below zero by at most:

    • the extra training time if the steps up to the checkpoint run slower than the run's pace so far by more than the margin;
    • anything else charged to you while the run trains on to its checkpoint, such as inference or a Search build;
    • the remaining steps of a run already past its last checkpoint;
    • for inference, the cost of a request beyond what was left, because a request is charged for what it used once it ends.

    New requests and new runs are refused while your balance is not enough; add funds to continue.

Balance and statement​

GET /api/v1/credits
GET /api/v1/credits/usage?month=YYYY-MM
GET /api/v1/credits/usage?month=YYYY-MM&limit=50&cursor=<next_cursor>

/api/v1/credits returns the current balance in US dollars (available_credits) and only the 100 most recent ledger rows. It also returns low_balance_credits and low_balance, which is true when your balance is below that line. The app shows its low-balance warning from these fields. The line is one platform setting for every account, $2 by default, and 0 means the warning is off. It is only a warning: what a run needs to start is its own required_credits, and a run pauses before your balance runs out. /usage is the complete UTC calendar-month statement with totals, category and project rollups, and cursor pagination. A ledger row may include billable_seconds, rate_credits_per_minute (US dollars per minute) and surcharge_percent; when they are absent, as on older rows, purchases and refunds, the value was not recorded, which does not mean zero compute. Inference rows can also include the requested endpoint_name and the resolved base_model_name; a base-model request keeps its public id, such as ReOpenly/Qwen3.5-9B.

An inference row charged per token also has input_tokens, output_tokens, reasoning_tokens (part of output_tokens), cached_tokens (prompt tokens the model reused, charged in full), credits_per_million_input_tokens, credits_per_million_output_tokens and price_multiplier, the values it was charged at, and billing_basis: tokens when the model counted every token, estimated when a count was missing and its bound was used, time when a missing count was replaced by the request's time at the training rate. On these rows billable_seconds is the time the model spent on the request, recorded for reference; the amount comes from the tokens. Rows from before per-token billing have these fields null: not recorded, not zero.

What the app's statement shows for each line. Only what the line was billed on, and only values that were recorded; a missing value is left out, never shown as zero:

  • a per-token inference line: its input and output tokens (an embedding line has no output), reasoning and cached tokens when there were any, the price per 1M input and output tokens, and the fine-tuned multiplier when it is not 1;
  • an inference line billed by the minute (before per-token billing): the billed minutes and the rate per minute;
  • a training line: the training minutes and the rate per minute;
  • a purchase or grant: its amount, and the reason when one was given.

The charge is shown at the ledger's six decimals. Export CSV keeps every column for every line, empty where a value was not recorded.

Statement entries always page by cursor (50 by default, maximum 100). Follow entries_next_cursor to reach every row. Cursors belong to the account and month; monthly totals and rollups are complete on every page.