公開API

自分のコードから画像を一括生成できます。クレジットは Web 版と同じ残高です。

利用可能クレジット

API 呼び出しは Web 版と同じ残高を使います

0

ログインすると API トークンを取得できます

トークンは Web 版と同じ残高を使います。個別の契約は不要です。

クイックスタート

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

生成は非同期です。taskId が返ったら下のエンドポイントでポーリングしてください。失敗時はクレジットが自動返却されます。 パラメータの詳細

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

curl "https://api.bibigpt.co/api/v1/imageStatus?imageUrl=https://example.com/photo.jpg" \
  -H "Authorization: Bearer $CHATIMG_API_TOKEN"

status が completed になると、generatedImageUrl が完成画像のアドレスです。 パラメータの詳細

1 枚あたりの消費

openai25
gpt-image-250
flux12
gemini10
nanobanana-pro30
nanobanana-2-lite12
nanobanana-220
grok30
seedream15
qwen8
z-image-turbo5
flux-2-flex25

料金は API からも取得できるため、スクリプト側で予算管理ができます。 エンドポイントを見る