Swap a person into a scene image using Nano Banana 2. Credits depend on resolution (from 100 credits at 640px upward).
Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".
Body
Output resolution. Determines credits charged for the run.
640px, 1k, 2k, 4k "1k"
Person image and scene image for body swap
Give your image a custom name for easy identification.
"My Body Swap image"
Success
Success
Unique ID of the image. Use it with the Get image Project API to fetch status and downloads.
"cuid-example"
The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
100