Trenz Open Platform uses a prepaid Credit model. Every API call is charged a fixed number of Credits; different endpoints have different prices.
Billing modes
| Mode | Description | Applicable endpoints |
|---|---|---|
per_call | Charged synchronously on each call | Data queries, social media ops, ads, synchronous AI endpoints |
async_on_complete | Pre-charged on successful submission; no refund on task failure | Asynchronous AI jobs (image / video generation) |
Charging rules
- Charge before dispatch — Credits are deducted before calling the backend, preventing over-charging
- Refund on failure — Credits are refunded automatically when the backend returns 5xx. For asynchronous image/video jobs: if submission itself fails no Credits are charged; if the job fails during processing no refund is issued
- Insufficient balance — returns HTTP 402
INSUFFICIENT_BALANCE
Endpoint pricing
The exact Credit price and billing mode for each endpoint are documented on each endpoint's page in the API Reference. Listings and price adjustments are kept up to date.
Balance management
- Top up — contact Trenz to recharge Credits; available for use immediately after activation
- Check balance — every API response returns the current balance in
usage.remaining_balance - Insufficient balance — returns HTTP 402 without calling the backend, incurring no charge
Last modified on

