API guide

Model pricing lookup

See the price list with your personal discount applied, and get a quote before you submit.

Before calling, you may want to know how many credits a request will cost. The endpoints below return what your own account will be charged, with your personal discount and any exclusive price already applied.

EndpointQuestion it answersAuth
GET /api/cqt/models/meWhat is the unit price of each model and tier?API key required
POST /api/cqt/generator/price-preview/{model}How many credits will this exact request cost? (async generator models)API key required
POST /v1/videos/price-previewThe same question, for MiniMax video (minimax-h3)API key required

The public price needs no key: GET /api/cqt/models (no discount applied) is described on the Models & pricing page. It is the undiscounted list price.

Amounts are in credits, the same unit as the credits on your balance: 100 credits = 1 USD. The JSON field currency is always credits. All numbers in the examples below are illustrations, not real prices.

Send your API key as Authorization: Bearer <key>, exactly as on every other endpoint in this guide.

Personal price list

GET /api/cqt/models/me returns the same set of models and the same shape as the public GET /api/cqt/models. The only difference is that the prices of generation models already have your discount multiplied in.

curl https://api.novapi.ai/api/cqt/models/me \
  -H "Authorization: Bearer $API_KEY"

# only one category: ?category=chat | image | video | music | audio

Example: with a discount of 0.8 on the qwen channel, a tiered video model looks like this.

{
  "object": "list",
  "data": [
    {
      "id": "happyhorse-1.0-i2v",
      "object": "model",
      "category": "video",
      "channel": "qwen",
      "endpoint_mode": "async",
      "pricing": {
        "currency": "credits",
        "unit": "per_second",
        "user_rate": 0.8,
        "tiers": [
          { "key": "720P", "label": "720P", "unit": "per_second", "price": 72 },
          { "key": "1080P", "label": "1080P", "unit": "per_second", "price": 128 }
        ]
      }
    }
  ]
}

Two fields are added compared with the public list:

FieldMeaning
pricing.user_rateThe discount factor already multiplied into price and tiers. 1 means no discount.
pricing.custom_pricingtrue means you have an exclusive price on this model. price and tiers are omitted; use the quote endpoint below.

Each generation model also carries channel and an endpoint_mode field that tells you which interface to call it through:

endpoint_modeMeaning
asyncSubmit through POST /api/cqt/generator/{channel} and poll for the result by task id. Many of these models can also be submitted through the OpenAI-style endpoints; see the Images and Video guides.
syncNot submitted through the generator. Use the model's own endpoint; for example minimax-h3 uses POST /v1/videos.

Notes:

  • Chat models still return the base price and have no user_rate. Chat is billed on actual token usage, and your discount is applied at settlement.
  • tiers is a price list. Whether tiers are mutually exclusive or additive depends on the model, so do not simply add them up. To get the total for a specific request, use the quote endpoint below.
  • A model without price or tiers does not necessarily have an unpublished price. It may be a free preparatory step (the price is 0), a post-paid model whose final price cannot be known at submission, or a model whose price is not published yet. When in doubt, quote your actual parameters.

Quote before you submit

The request body of POST /api/cqt/generator/price-preview/{model} is exactly the same as the generator submit endpoint POST /api/cqt/generator/{model}. Nothing is submitted and nothing is charged. {model} is the model's channel value from the price list.

curl -X POST https://api.novapi.ai/api/cqt/generator/price-preview/nano \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "nano-banana", "prompt": "a cute cat" }'

The response uses the same code / msg / data envelope as the generator:

{
  "code": 200,
  "msg": "success",
  "data": {
    "credits": 10,
    "currency": "credits",
    "billing": "prepaid"
  }
}
FieldMeaning
creditsCredits this request will cost, with your discount and exclusive price applied. 0 means the request is free.
currencyAlways credits.
billingprepaid: this amount is held at submission and is the final price. postpaid_estimate: an estimate; the final amount is settled on actual usage after the task succeeds, with the difference refunded or topped up.

This number comes from the same calculation that determines the hold when you submit the same request, not from a separate formula.

The body is the generator body, not the OpenAI-style body of /v1/images/generations or /v1/videos. If you submit through those endpoints, translate your parameters to the generator fields to quote.

Things to know

  • Validation matches submission: invalid parameters return the same error as when submitting, for example prompt is not null.
  • A successful quote does not guarantee a successful submission. Quoting does not check your balance, content moderation or the concurrent-task limit; submission can still fail on insufficient balance, blocked content or reaching the task limit.
  • Quoting does not use any of your concurrent task slots or any API key quota.
  • If your API key has a model allow-list that excludes the model, or the model has been retired, the quote returns an error just like submission.
  • It is safe to call frequently, for example to show live prices in your own UI. Do not cache a quote for long; quote right before you submit.

Scope

You can get a quote for:

  • Async models submitted through POST /api/cqt/generator/{model} (image, video, music and so on): use POST /api/cqt/generator/price-preview/{model}.
  • MiniMax video (minimax-h3): use POST /v1/videos/price-preview, below.

Not supported for quoting:

  • Other synchronous endpoints under /v1 (such as synchronous image generation and speech). Any unit price is in the price list, but you cannot get a per-request quote.
  • Chat models. They are billed per token, so the total cannot be known before submission.

MiniMax video quote

POST /v1/videos/price-preview quotes a minimax-h3 request. It takes a request body exactly the same as POST /v1/videos for minimax-h3. Nothing is submitted, charged or queued. It applies to minimax-h3 only; for other video models, quote through the generator above.

curl -X POST https://api.novapi.ai/v1/videos/price-preview \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-h3",
    "prompt": "a fox in the snow",
    "seconds": 5,
    "resolution": "1080P"
  }'

The response is in the /v1 style, with no code / msg / data wrapper:

{
  "credits": 90,
  "currency": "credits",
  "billing": "prepaid",
  "resolution": "1080P",
  "workflow_id": "text-to-video",
  "duration": 5
}
FieldMeaning
creditsCredits held when you submit this request, with your discount applied. This is the final price.
currencyAlways credits.
billingAlways prepaid.
resolutionThe resolution tier that actually applies. If you sent none, this is the workflow's default tier.
workflow_idThe workflow that actually applies. If you sent none, it is inferred from your inputs.
durationThe duration in seconds that actually applies.
  • Errors are the OpenAI-style { "error": { ... } } body, the same as POST /v1/videos; see the Errors guide.
  • Validation matches submission: an invalid combination of resolution, duration, ratio, keyframes or reference inputs returns the same error as when submitting.
  • Quoting does not check your balance; you can quote with a zero balance.
  • Frame captures are not in this price: return_first_frame, return_last_frame and return_frame_at_second are billed separately at 1 credit per still once the video finishes, and are not included in credits.

FAQ

QuestionAnswer
Why is the price I see different from someone else's?The personal price list includes your account's discount and exclusive prices, so different accounts can see different prices. The public list GET /api/cqt/models is the same for everyone.
What does custom_pricing: true mean?Your account has an exclusive price on this model. How it is calculated differs by model and cannot be expressed as uniform unit-price tiers, so no unit price is returned. Quote your actual parameters instead.
Do prices change?The price list reads the current price on every request. Quote right before you submit and do not cache the result for long.

See also