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

(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"
  }'

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 đủ

(chatimg.ai).2. 轮询结果

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
flux12
gemini10
nanobanana-pro30
nanobanana-2-lite12
nanobanana-220
grok30
seedream15
qwen8
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