Charges by request outcome
The rule is the same for all three families: non-200 upstream responses are not charged. The call log is authoritative; a request with no call-log entry produced no charge.
Nano Banana’s HTTP 200 with no image is the only “no image” case among the three families that is charged: Google answers a moderation block with a short refusal instead of an error code, and LaoZhang API counts the upstream HTTP 200 as one call. See Avoid paying for empty responses for the usual triggers and how to avoid them.
On the Nano Banana native route (
/v1beta/models/{model}:generateContent), generated images come back only as Base64 in candidates[].content.parts[].inlineData.
If an HTTP 200 response has only a fileData image link in parts and no inlineData, it is not a normal result. Note the request time and request ID and contact support, and we will check the request.
When moderation blocks a request on GPT Image, Grok Imagine, or another image endpoint, the response has HTTP status 400 or 451 and this message:
code keeps its original value, such as moderation_blocked. No image is produced and the request is not charged; the FAQ below explains what to change.
Timeouts and retries
A client timeout is not a failure: the image may already have been generated and charged on the server. For batch jobs, handle requests in this order:- Record the submit time, model ID, parameters, and response of every request.
- After a timeout or disconnect, find the request in the call log by time and model and check its status and charge.
- If the call log shows success, don’t resubmit; use the returned image or ask support to retrieve it.
- Retry
429and5xxwith exponential backoff; each retry is a new request and is billed on its own if it succeeds. - Don’t resend a Nano Banana HTTP 200 with no image unchanged. Change the prompt or references first; the same content is usually blocked again and charged every time.
- Set client timeouts as API timeouts recommends: 360 seconds for image requests, 600 seconds for 4K or many reference images. A model guide with its own timeout advice takes precedence.
Concurrency and rate limits
LaoZhang API doesn’t limit concurrency per account or token, and splitting traffic across tokens doesn’t raise any limit. When you get a429 under load:
- an error body containing
insufficient_user_quotameans your balance is too low, so top up first; - any other
429comes from the upstream model’s rate or capacity limit, so halve your concurrency in a local queue and raise it gradually; - a persistent
503means upstream capacity is short, not that your parameters are wrong, so wait and retry.
Questioning a charge
Send support the following, and never a full API key:- your account email;
- the request time, model ID, and the request identifier from the call log;
- the response status and the redacted error;
- the resolution you expect.
FAQ
Is a failed request always free?
Non-200 upstream responses aren’t charged: invalid parameters, authentication failures, rate limits, and upstream 5xx errors. The exception is a Nano Banana moderation block, where Google returns HTTP 200 instead of an error code, and that request is charged once.Why does an image request return “rejected by the safety system”?
Moderation blocked the request: no image was produced and nothing was charged. The block can come from a reference image as well as from the prompt. Sending the same reference image and prompt again usually gets the same result. Replace the reference image, or reword the part of the prompt that may trip moderation, before you resubmit. In batch jobs, don’t retry this error automatically.How do I avoid paying twice in a batch job?
Give every target image a job ID, check the call log after a timeout, and retry only when the original request didn’t succeed. Never let a client timeout trigger an automatic resubmit. Grok Imagine can return up to 10 images in one request and bills each returned image.How do I see what one request cost?
The call log records model, group, status, usage, and amount per request. Per-call models show a fixed amount, GPT Image official forwarding shows input and output tokens with the converted amount, and Nano Banana shows the search count and fee when Google Search grounding is on. How to read call logs explains the fields.Related documentation
- Nano Banana API overview: prices and billing rules for the five models
- GPT Image 2.5 API: billing on the official-forward, VIP, and web routes
- Grok Imagine API: per-image billing and error handling
- Image generation APIs: models and pricing: the three families side by side
- Request timeouts: telling a timeout from a rate limit