DINGJIAI
DINGJIAI
Quick start in 5 minutesWhat is DINGJIAI?

Online use

Online chatOpens in a new windowImage generationOpens in a new window

Popular Agents

Codex SetupClaude Code SetupOne-Click Setup

API Reference

API overview
Error codes

Billing

Model pricingTroubleshooting calls
Usage chargesCost control
Cost management

Cost control

Control call costs and balance consumption.

  • Choose a model that is sufficient for the task instead of defaulting to the most expensive model.
  • Limit output length and avoid repeatedly sending irrelevant context.
  • Reuse stable prefixes when caching is supported, and pay attention to cached-input prices.
  • For image requests, validate the prompt with n=1 before increasing the quantity.
  • Set a low-balance alert and regularly review the daily usage summary and ledger.
  • Automatic retries must have a retry count and total time budget; do not replay 429s, timeouts, or upstream 5xx responses indefinitely.

Do not control costs by fabricating usage, bypassing balance checks, or reusing someone else's API key.

Last updated on

Usage chargesModel selection