Generate or edit an image with AI (chatimg.ai)
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
URL of the source image to process. Supports http URLs and base64 encoded images (with or without data:image/... prefix)
1Prompt describing the desired transformation (default: ghibli style)
AI model to use (default: nanobanana-2-lite). Pricing per image: openai: 25 credits, gpt-image-2: 50 credits, flux: 12 credits, gemini: 10 credits, nanobanana-pro: 30 credits, nanobanana-2-lite: 12 credits, nanobanana-2: 20 credits, grok: 30 credits, seedream: 15 credits, qwen: 8 credits, z-image-turbo: 5 credits, flux-2-flex: 25 credits
openai, gpt-image-2, flux, gemini, nanobanana-pro, nanobanana-2-lite, nanobanana-2, grok, seedream, qwen, z-image-turbo, flux-2-flex 响应
Successful response
Unique identifier for the generation task
Initial status of the generation task (pending)
pending, completed, error, unknown The source image URL, used as the key when polling /v1/imageStatus
Timestamp when the task was created
Credits charged for this generation
Remaining credits balance after this charge
