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. Pro Photo Editor

    Professional Photography Editor API

    Enhance personal photos, create professional headshots, or apply creative edits with AI-powered instructions.

    GET
    /api/image/professional-photography-editor-prompts

    Retrieve a list of pre-defined styles and instructions for professional photo editing.

    Example Request

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

    Example Response

    {
      "data": [
        {
          "id": "natural-light-corporate-headshot",
          "title": "Natural Light Corporate Headshot",
          "categoryId": "authentic-headshots-portraits",
          "categoryTitle": "Authentic Headshots & Portraits",
          "demoImageUrl": "https://...",
          "description": "LinkedIn profiles, corporate websites..."
        },
        // ... more prompts
      ]
    }

    POST
    /api/image/professional-photography-editor

    Enhance or modify a photo based on user instructions or pre-defined styles.

    Request Body

    FieldTypeDescription
    imagesArray of ObjectsRequired. An array of image objects. Each must have `url` or `dataUrl`.
    promptIdstringOptional. The ID/value of a pre-defined scene instruction. Get available IDs from the `/api/image/professional-photography-editor-prompts` endpoint.
    promptstringOptional. Instructions for the edit (e.g., "enhance lighting"). (Required if `promptId` is omitted).
    referenceImagestringOptional. A URL or data URI of a reference style 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/professional-photography-editor' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer YOUR_API_KEY' \
         -d '{
              "images": [
                { "url": "https://example.com/my-photo.jpg", "label": "main subject" }
              ],
              "promptId": "natural-light-corporate-headshot",
              "prompt": "with a subtle smile",
              "aspectRatio": "4:5"
            }'

    Example Response

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

    On This Page

    GET PromptsPOST Generate/EditFAQ

    Frequently Asked Questions