CodingMantra LogoCodingMantra
GalleryProductsPortfolioServicesGamesPricingContact
CodingMantra LogoCodingMantra

AI tools and software services for people building better digital experiences.

WhatsApp ChannelX / TwitterLinkedInInstagramFacebookGitHubYouTube

Company

  • Home
  • About Us
  • Services
  • Products
  • Portfolio
  • Pricing
  • Blog
  • API Docs
  • MCP Integration
  • 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

© 2026 CodingMantra. All Rights Reserved.

    1. Home
    2. API Documentation
    3. Image Tools
    4. Baby Milestone Generator

    Baby Milestone Generator API

    Create beautiful, themed milestone photos for babies by replacing the background while preserving the baby's natural look.

    API Reference

    GET
    /api/image/baby-milestone-generator-prompts

    Retrieve a list of pre-defined milestone themes and styles.

    Example Request

    curl -X GET 'https://codingmantra.com/api/image/baby-milestone-generator-prompts'

    Example Response

    {
      "data": [
        {
          "id": "watercolor-dream",
          "title": "Watercolor Dream",
          "categoryId": "whimsical",
          "categoryTitle": "Whimsical & Fantasy",
          "description": "Create a soft, dreamy background..."
        },
        // ... more prompts
      ]
    }

    POST
    /api/image/baby-milestone-generator

    Generate a milestone photo using a baby photo and optional milestones.

    Request Body

    FieldTypeDescription
    photoDataUristringRequired. Data URI or URL of the baby's photo.
    promptIdstringOptional. The ID of a pre-defined theme. Fetch IDs via `/api/image/baby-milestone-generator-prompts`.
    customPromptstringOptional. Extra instructions/descriptions for the scene format.
    milestoneValuenumberOptional. The number (e.g., 6).
    milestoneUnitstringOptional. 'month' or 'year'.
    maskDataUristringOptional. PNG mask data URI.
    modelstringOptional. `'standard'` (default) or `'pro'`.
    aspectRatiostringOptional. Default `'1:1'`.
    outputResultstringOptional. `'base64'` (default) or `'url'`.

    Example Request

    curl -X POST 'https://codingmantra.com/api/image/baby-milestone-generator' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer YOUR_API_KEY' \
         -d '{
              "photoDataUri": "https://example.com/baby.jpg",
              "promptId": "watercolor-dream",
              "milestoneValue": 6,
              "milestoneUnit": "month",
              "customPrompt": "Surrounded by colorful balloons in a bright room"
            }'

    Example Response

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

    Explore Other API Documentation

    On This Page

    GET PromptsPOST GenerateFAQ

    Frequently Asked Questions