CodingMantra LogoCodingMantra
GalleryProductsPortfolioServicesGamesPricingContact
CodingMantra LogoCodingMantra

Providing business solutions for small and medium-sized businesses and helping them to grow.

WhatsApp ChannelX / TwitterLinkedInInstagramFacebookGitHubYouTube

Company

  • About Us
  • Services
  • Products
  • Portfolio
  • Pricing
  • Blog
  • API Docs
  • Contact Us

Top Tools

  • All Tools
  • Image Gallery
  • Image Tools
  • Digital Marketing
  • Financial Tools
  • Games
  • SEO Tools

Legal

  • Privacy Policy
  • Terms & Conditions
  • Return Policy
  • Deals
  • Sitemap

© 2026 CodingMantra. All Rights Reserved.

    1. Home
    2. API Documentation
    3. Image Tools
    4. Nano Banana Editor

    Nano Banana Editor API

    A powerful AI editor for complex image manipulation, blending multiple reference images, and creative composition.

    POST
    /api/image/nano-banana-editor

    Edit or generate images using multiple references and prompts.

    Request Body

    FieldTypeDescription
    imagesArray of ObjectsRequired. List of reference images. Each object should have `url` or `dataUrl`, and optional `label` or `prompt`.
    promptIdstringOptional. The ID/value of a pre-defined format style. Get available IDs from the `/api/image/nano-banana-editor-prompts` endpoint.
    promptstringOptional. Main instruction for the edit. (Required if `promptId` is omitted).
    referenceImagestringOptional. A distinct style reference image.
    modelstringOptional. `'standard'` (default) or `'pro'`.
    aspectRatiostringOptional. Default `'1:1'`.
    outputResultstringOptional. `'base64'` (default) or `'url'`.

    Example Request

    curl -X POST 'https://codingmantra.com/api/image/nano-banana-editor' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer YOUR_API_KEY' \
         -d '{
              "images": [
                { "url": "https://example.com/tiger.jpg", "label": "main subject" },
                { "url": "https://example.com/galaxy.jpg", "label": "background texture" }
              ],
              "promptId": "surreal-galaxy",
              "prompt": "with a tiger as the main subject",
              "aspectRatio": "16:9"
            }'

    Example Response

    {
      "data": {
        "photoDataUri": "data:image/png;base64,..."
      }
    }

    On This Page

    POST Generate/EditFAQ

    Frequently Asked Questions