Seedream 5.0 Lite, 4.5 and GPT Image 2 API: Billing Guide
Call Seedream 5.0 Lite, Seedream 4.5 and GPT Image 2 on POST /v1/images/generations, compare per-image vs token billing, and avoid retry waste.
Published 2026-10-03 · Updated 2026-10-03 · KeepRouter Editorial · 6 minute read

Call ByteDance Seedream and OpenAI GPT Image models through KeepRouter on POST /v1/images/generations using one API key and USD prepaid balance, while reconciling two distinct billing units: fixed per-image pricing on seedream-5-0-lite and seedream-4-5, versus input-and-output token pricing on gpt-image-2 and gpt-image-1.5. Never assume two models on the same endpoint share the same cost formula.
Teams building marketing asset pipelines, product-mockup generators or localization workflows often combine both families: fast fixed-cost drafts during prompt iteration, followed by targeted runs on models chosen for typography or layout adherence.
Same endpoint, two different billing units
OpenAI's image generation guide explains how token-metered image models bill prompt and image output tokens, and the OpenAI image prompting cookbook shows how size and quality settings change output token counts. On KeepRouter, both Seedream and GPT Image models share POST /v1/images/generations, yet their catalog pricing shapes differ fundamentally:
| Catalog model ID | Maker | Endpoint | Billing unit on KeepRouter | Best suited for |
|---|---|---|---|---|
| seedream-5-0-lite | ByteDance | POST /v1/images/generations | Fixed USD per generated image | Predictable unit economics for batch visual generation |
| seedream-4-5 | ByteDance | POST /v1/images/generations | Fixed USD per generated image | Established Seedream 4.5 prompt workflows and A/B baselines |
| gpt-image-2 | OpenAI | POST /v1/images/generations | USD per 1M input & output tokens | Instruction-heavy layouts and text-in-image rendering |
| gpt-image-1.5 | OpenAI | POST /v1/images/generations | USD per 1M input & output tokens | Existing GPT Image 1.5 pipelines needing exact version continuity |
Check each model page before running a batch job so your budget sheet uses the current live rate rather than a guessed flat fee.
Send one bounded server-side image request
Use the standard OpenAI Python SDK pointed at https://keeprouter.com/v1 with max_retries=0. Disabling automatic SDK retries is especially important on image generation: a slow network timeout after upstream acceptance can otherwise bill two images when you only wanted one.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://keeprouter.com/v1",
api_key=os.environ["KEEPROUTER_API_KEY"],
timeout=90.0,
max_retries=0,
)
result = client.images.generate(
model="seedream-5-0-lite",
prompt="Minimalist ceramic pour-over coffee dripper on warm linen, studio daylight",
size="1024x1024",
n=1,
)
print(result.data[0].url or f"b64 length: {len(result.data[0].b64_json or '')}")Store or transcode the returned image into your own object storage right away. Temporary delivery URLs are transport artifacts, not permanent CDN hosting for your production application.
Compare total cost per accepted asset
When comparing per-image and token-metered models, normalize both to cost per accepted asset:
- Fixed per-image models (
seedream-5-0-lite,seedream-4-5). Multiply the published per-image price bynand by the number of generation attempts per accepted image. Prompt length changes do not alter a fixed per-image charge. - Token-metered image models (
gpt-image-2,gpt-image-1.5). Readusageon the response and compute(input_tokens * input_rate) + (output_tokens * output_rate). Higher resolutions and higher quality tiers emit more image output tokens, increasing per-asset cost.
Run a 10-prompt fixture covering your real aspect ratios, text labels and style constraints before committing a batch job. Estimate token vs per-image scenarios in the API cost calculator, test desktop prompt iteration in the Cherry Studio setup guide, and create a scoped key via the quickstart with a hard spend limit so an unattended worker loop cannot exceed your campaign budget.
Frequently asked questions
Do Seedream 5.0 Lite and GPT Image 2 use the same endpoint on KeepRouter?
Yes. Both use POST /v1/images/generations, while Seedream models bill per generated image and GPT Image models bill per input and output token.
Can I call paid image models with the free trial model key?
No. Image generation models require prepaid credit and an API key whose model allowlist includes the target image model ID.
Why set max_retries=0 on image generation requests?
Image generation takes longer than short text calls. Disabling blind SDK retries avoids billing duplicate renders if a local timeout fires.
Sources reviewed
Article last reviewed 2026-10-03