Open API
Generate images in bulk from your own code — credits come from the same balance as the web app.
Available credits
API calls share the same balance as the web app
0
Sign in to get your API token
The token shares your web account balance — no separate plan needed.
Quick start
(chatimg.ai).1. 发起生成
curl -X POST https://api.bibigpt.co/api/v1/generateImage \
-H "Authorization: Bearer $CHATIMG_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"imageUrl": "https://example.com/photo.jpg",
"prompt": "ghibli style",
"model": "nanobanana-2-lite"
}'Generation is asynchronous: use the endpoint below to poll after you get a taskId. Failed generations are refunded automatically. Full parameter reference
(chatimg.ai).2. 轮询结果
curl "https://api.bibigpt.co/api/v1/imageStatus?imageUrl=https://example.com/photo.jpg" \
-H "Authorization: Bearer $CHATIMG_API_TOKEN"Once status is completed, generatedImageUrl holds the finished image. Full parameter reference
Credits per image
openai25
gpt-image-250
flux12
gemini10
nanobanana-pro30
nanobanana-2-lite12
nanobanana-220
grok30
seedream15
qwen8
z-image-turbo5
flux-2-flex25
Pricing is also available via API so your scripts can enforce a budget. View endpoint