CodingMantra LogoCodingMantra
GalleryProductsPortfolioServicesGamesPricingContact
CodingMantra LogoCodingMantra

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

WhatsApp ChannelX / TwitterLinkedInInstagramFacebookGitHubYouTube

Company

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

Top Tools

  • All Tools
  • Image Tools
  • Video Tools
  • Brand Context
  • Digital Marketing
  • Financial Tools
  • SEO Tools

Legal

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

About CodingMantra

CodingMantra is a premier digital solutions hub dedicated to empowering small and medium-sized businesses with cutting-edge technology. Our comprehensive suite of free AI-powered tools, productivity utilities, and developer resources is designed to streamline your workflow and accelerate your digital growth. From advanced AI image generation and virtual try-ons to sophisticated CRM and SEO utilities, we bridge the gap between complex technology and user-friendly applications. Our mission is to democratize access to high-end AI tools, enabling creators and entrepreneurs to compete on a global scale.

Professional Services

Beyond our free tools, CodingMantra offers specialized consulting and development services in Web 3.0, Artificial Intelligence, Mobile App Development, and custom SaaS architecture. Our team of expert developers and strategists works closely with clients to build robust, scalable, and innovative digital products that solve real-world business challenges and drive measurable results. Whether you're looking for custom AI integration, high-performance web applications, or strategic digital transformation, we provide the expertise to turn your vision into reality.

AI-Driven Innovation

Our platform leverages state-of-the-art generative AI models to provide tools like the AI Product Photography Generator, Virtual Try-Ons for apparel and jewelry, and Logo Animation creators. We are constantly updating our toolkit to include the latest advancements in machine learning, ensuring that you always have access to the most powerful creative automation tools available. By combining intuitive design with powerful back-end intelligence, CodingMantra helps you produce professional-grade content with minimal effort and zero cost.

Comprehensive AI & Digital Solutions Suite

Visual & Creative AI

Transform your brand with our Image & Video AI suite. Generate studio-quality product photography, realistic jewelry virtual try-ons, and professional apparel mockups instantly. Our AI Video Tools enable cinematic festival greetings and dynamic logo animations, while our creative editors handle everything from background removal to AI-powered upscaling.

Marketing & SEO Growth

Optimize your online presence with data-driven SEO & Marketing tools. Utilize our AI Ad Copy Generator for high-converting Google and Facebook ads, or extract your brand's unique voice with the Brand Context Generator. From Keyword Research and Meta Tag generation to Social Media Post creation, we provide the utilities to dominate search rankings.

Business & Finance Ops

Streamline your operations with our Financial & Business tools. Generate professional GST-compliant invoices, calculate EMI and Loan prepayments, or plan your investments with SIP and PPF calculators. Our CRM tools help you manage customer groups and email campaigns, while our Legal generators handle privacy policies and terms of service.

Developer & Utility Tools

Boost your productivity with our Developer & Productivity toolkit. Format and validate JSON, test Regex, generate SSH/RSA keys, and merge PDF files securely in your browser. With over 100+ utilities including QR Code generators, Text converters and Security tools, we are the ultimate resource for developers and digital professionals.

© 2026 CodingMantra. All Rights Reserved.

    1. API Documentation
    2. Image Tools
    3. Product Photography

    Product Photography API

    Generate studio-quality product photos by placing your product in custom scenes. Perfect for ecommerce, Amazon listings, Shopify stores, and brand marketing. Remove backgrounds, add professional backgrounds, and create consistent product imagery at scale via REST API.

    Background RemovalCustom ScenesBatch GenerationLogo OverlayMulti-ProductResolution up to 4K

    API Reference

    GET
    /api/image/product-photography-prompts

    Get list of pre-defined professional scene templates for product photography. Includes studio setups, lifestyle scenes, holiday themes, and ecommerce-ready backgrounds.

    Example Request

    curl -X GET 'https://codingmantra.com/api/image/product-photography-prompts'

    Example Response

    {
      "data": [
        {
          "id": "minimalist-white",
          "title": "E-commerce White Background",
          "categoryId": "studio-minimalist",
          "categoryTitle": "Studio & Minimalist",
          "demoImageUrl": "https://..."
        },
        // ... more prompts
      ]
    }

    GET
    /api/image/image-model-options

    Get all available AI image generation models with capabilities, supported resolutions, pricing per resolution, and estimated credit costs. Use this to dynamically check model availability and costs before generating images.

    Example Request

    curl -X GET 'https://codingmantra.com/api/image/image-model-options'

    Example Response

    {
      "data": [
        {
          "model": "standard",
          "modelId": "googleai/gemini-2.5-flash-image",
          "name": "Gemini 2.5 Flash",
          "provider": "Google AI",
          "description": "Fast and affordable...",
          "badge": "Cost-Effective",
          "supportedResolutions": ["1K"],
          "supportsVariableResolution": false,
          "supportsBatchGeneration": true,
          "maxBatchSize": 10,
          "defaultResolution": "1K",
          "estimatedCost": { "credits": 10, "usd": 0.09, "inr": 5 },
          "pricingPerResolution": {
            "1K": { "credits": 10, "usd": 0.09, "inr": 5 }
          }
        },
        // ... more models
      ]
    }

    POST
    /api/image/product-photography

    Generate a professional product photograph with AI. Send product images and scene descriptions to create studio-quality ecommerce-ready product photos with automatic background removal, custom backgrounds, logo overlay, and text marketing. Supports batch generation for multiple products at once.

    Request Body

    Note: Either `promptId` or `scenePrompt` is required.

    ParameterTypeDescription
    productImagesArray of ObjectsRequired. Array of product images to place in the scene. Each object must contain either a dataUrl (Base64 data URI) or a url (public HTTPS URL). Supports JPEG, PNG, WebP. Optional label for product identification and prompt for individual product instructions. Maximum batch size varies by model (up to 10 images with standard model).
    promptIdstringOptional. Pre-defined scene template ID for professional product photography. Use /api/image/product-photography-prompts to get available scene IDs. Examples: minimalist-white, rustic-wood-table, luxury-box.
    scenePromptstringOptional. Custom scene description for the product background. Can describe lighting, setting, props, colors, or mood. Examples: in a cozy coffee shop with warm lighting, on marble countertop with fresh flowers. Use alone or with promptId to customize.
    logoImagestringOptional. Brand logo to overlay on the product image. Provide as data URI (Base64) or public HTTPS URL. Supports PNG with transparency. Use with logoPlacement and logoSize for positioning.
    logoPlacementstringOptional. Logo position on the image. Options: top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, bottom-right. Default: bottom-right.
    logoSizenumberOptional. Logo size as percentage of image (0.1 to 0.8). Default: 0.15 (15% of image width).
    referenceImagestringOptional. Reference image URL or data URI to guide the style, lighting, color palette, and composition of the generated product photo.
    overlayTextstringOptional. Short text overlay on the product image. Great for promotional banners, sale badges, or brand taglines. Positioned prominently on the generated image.
    marketingTextstringOptional. Longer marketing text or slogan to integrate into the product scene. More detailed than overlayText for storytelling.
    modelstringOptional. AI model slug for image generation. Use pro for highest quality (Gemini 3 Pro), standard for fast bulk generation (Gemini 2.5 Flash), or flash for balanced speed/quality (Gemini 3.1 Flash). Default: pro. Call /api/image/image-model-options for latest models.
    resolutionstringOptional. Output image resolution. Options: 1K (1024px), 2K (1536px), 4K (2048px). Not all models support all resolutions. Default: Maximum supported resolution for selected model (e.g., 4K for pro, 1K for standard).
    aspectRatiostringOptional. Desired output aspect ratio. Options: 1:1 (Square - Instagram posts), 4:3, 3:4, 16:9 (Landscape - YouTube thumbnails), 9:16 (Story/Reel), 4:5 (Portrait), 3:2, 2:3, 21:9 (Ultrawide). Default: 1:1.
    outputResultstringOptional. Output format. base64 returns Base64 data URI (default for quick integration). url returns hosted image URLs from Google Cloud Storage (better for production use and CDN delivery).

    Example Request (with promptId)

    curl -X POST 'https://codingmantra.com/api/image/product-photography' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer YOUR_API_KEY' \
         -d '{
              "productImages": [
                { "url": "https://example.com/my-product.png", "label": "bottle" }
              ],
              "promptId": "rustic-wood-table",
              "scenePrompt": "with grapes and cheese",
              "logoImage": "https://example.com/my-logo.png",
              "logoPlacement": "bottom-right",
              "logoSize": 0.15,
              "aspectRatio": "16:9",
              "outputResult": "url"
            }'

    Example Response (outputResult: 'url')

    {
      "data": {
        "imageUrl": "https://storage.googleapis.com/...",
        "thumbnailUrl": "https://storage.googleapis.com/..."
      }
    }

    Example Response (outputResult: 'base64')

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

    Explore Other API Documentation

    On This Page

    GET PromptsGET Model OptionsPOST Generate ImageFAQ

    Frequently Asked Questions