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
mai-image-2.6-flash20
flux12
gemini10
nanobanana-pro30
nanobanana-2-lite12
nanobanana-220
grok30
seedream15
qwen8
qwen-image-2.18
z-image-turbo5
flux-2-flex25

Giá cũng có sẵn qua API để script kiểm soát ngân sách. Xem endpoint