API mở
Tạo ảnh hàng loạt từ mã của bạn — credit dùng chung số dư với bản web.
Credit khả dụng
Lệnh gọi API dùng chung số dư với bản web
0
Đăng nhập để lấy API token
Token dùng chung số dư tài khoản web — không cần đăng ký riêng.
Bắt đầu nhanh
1. Bắt đầu tạo
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"
}'Việc tạo là bất đồng bộ: dùng endpoint bên dưới để truy vấn sau khi nhận taskId. Thất bại sẽ được hoàn credit tự động. Tài liệu tham số đầy đủ
2. Truy vấn kết quả
curl "https://api.bibigpt.co/api/v1/imageStatus?imageUrl=https://example.com/photo.jpg" \
-H "Authorization: Bearer $CHATIMG_API_TOKEN"Khi status là completed, generatedImageUrl chứa ảnh hoàn chỉnh. Tài liệu tham số đầy đủ
Credit mỗi ảnh
openai25
gpt-image-250
gpt-image-2.5-flare50
gpt-image-2.5-sunburst50
gpt-image-2.6-flare50
gpt-image-2.6-sunburst50
mai-image-2.6-flash20
flux12
gemini10
nanobanana-pro30
nanobanana-2-lite12
nanobanana-220
nanobanana-2.14K20
grok30
ideogram-4.535
seedream15
seedream-5-flash2K12
flux34K18
flux3-klein4K12
krea-315
hy-image-3.512
qwen8
qwen-image-2.18
qwen-image-2.1-turbo8
qwen-image-2.1-pro15
qwen-image-3.018
qwen-image-3.0-pro25
z-image-turbo5
flux-2-flex25
Các mô hình gắn 2K / 4K cho chọn độ phân giải (resolution): 2K tính 2,5×, 4K tính 5×. Giá cũng có sẵn qua API để script kiểm soát ngân sách. Xem endpoint