How to Generate and Edit Images with the Nano Banana Images API
If your product needs generated visuals, image variations, or simple multi-image edits, the hard part is usually not the model call itself—it is designing a request shape your app can track, retry, and debug later. What you can do The Nano Banana Images API provides one endpoint for two common image workflows: text-to-image generation and prompt-guided image editing. Both use the same base URL, https://api.acedata.cloud , and the same endpoint, POST /nano-banana/images . The core switch is the action field: generate : create an image from a text prompt . edit : edit one or more existing images using image_urls plus a prompt . The API returns a success flag, a task_id , a trace_id , and a data array containing successful image results. Each result includes the echoed prompt and an image_url . How it works Every request is authenticated with an HTTP header: authorization: Bearer {token} . The recommended request headers are accept: application/json and content-type: applica...