gpt api

GPT API Billing: Media Tasks, Account Credits and Plans

Understand how media generation uses account credits, how to quote before submitting, and how failures, timeouts, duplicate requests and plan validity are handled.

Last updated: 2026-11-12

Media APIs use your account credits

Image, video and music tasks created through POST /api/ai/generate use the same account balance as the workspace. A user API key identifies an account; it is not a separate top-up account. Tasks submitted with different keys for one account use the same balance.

The documented media tasks are charged in credits. This page does not publish per-million-token rates for a general text conversation API. The homepage’s token calculation example is not a site tariff. Chat subscriptions, upstream provider balances and site credits are separate.

View current plans, credit packs and purchase prices

·

See quote and submission examples

Estimate a request before submitting

Send your intended mediaType, model slug, prompt, references and options to POST /api/ai/router01/quote. In a successful response, data.credits is the estimated credit cost for that combination. Quoting does not create a task or deduct generation credits.

Model, output count, resolution, video duration and references can affect the quote. Check the current model’s params for supported inputs. A starting price does not replace a quote for the complete request.

A quote does not lock a price or reserve a balance. When you submit, the server validates the model and inputs again and creates the task using the recalculated cost. Submit the same inputs you quoted; request another quote after changing parameters or waiting a significant time.

When credits are charged

  1. Submission validates credentials, inputs and model availability, then recalculates the cost.
  2. The account’s available credits are checked. Insufficient credits return a business error rather than an accepted task.
  3. Task creation deducts the required credits. The acknowledgement contains costCredits, remainingBalance and a task ID, with initial status queued.
  4. That charge remains while the task is queued or processing. Querying the same task does not create another generation or deduct generation credits again.

Check both the HTTP status and JSON code. HTTP 200 with code: -1 is still a business failure, not a successfully accepted task.

Estimate a budget

Quote representative tasks, then add their expected usage:

Estimated credits = sum of (task count × current quoted credits per task)

For example, if a particular request costs 40 credits and you plan to submit 100 such tasks successfully, allow about 4,000 credits. The 40-credit figure is illustrative, not a fixed price for any model. Quote different task types separately.

Your purchase cost depends on the selected plan or pack, payment currency and checkout amount. A dollar field in a generation quote is not your purchase-order total. Credits cannot be converted into a fixed call count or token allowance. Compare current options on the plans page.

Failures, cancellations and timeouts

Tasks confirmed as failed or canceled enter the existing credit-return process. Returns can require synchronization; verify them in credit records. Contact support with the task ID if task state and balance do not match.

A local timeout, closed browser or temporarily unavailable result does not establish that a task failed or qualifies for a return. Submitted work may still be running. Query the original task and account records before resubmitting. Returning task credits differs from refunding a purchase payment. Submit purchase issues through support tickets, subject to the Terms of Service.

Can retries charge twice?

Another POST /api/ai/generate can create a separate task and another charge. Do not repeatedly submit generation requests while waiting for an output. Save data.id from the first acknowledgement and query it with GET /api/ai/task.

If the connection closes before you receive a task ID, inspect creation history and credit records before deciding what to do next. See troubleshooting for details.

Plans, validity and allowances

  • Monthly subscriptions renew monthly. Annual subscriptions are paid upfront and release credits monthly rather than making all credits available immediately.
  • Credits from newly purchased subscriptions expire at the next monthly refresh without rollover. One-time packs are valid for 365 days from grant. Historical orders retain their original rules; check account records for exact dates.
  • Available credits with earlier expiry are consumed first. Unreleased or expired credits are not part of the currently available balance.
  • Canceling renewal differs from refunding a payment. Review the paid period, pending changes and renewal state in billing and subscriptions.
  • Keys share a balance. This documentation does not promise per-key budget caps, separate invoices or unlimited concurrency. Control submissions and monitor spending in your own service.

Current benefits, prices and available payment methods are shown on the pricing and checkout pages.

Account or billing questions

Contact support@gptapi.app or sign in to submit a support ticket. Include order numbers, task IDs, timestamps and credit records, never API keys or payment-card details.

Developers

·

Quickstart

·

Troubleshooting