Back to General Pricing

Megapixel Pricing Model & Calculator

Transparent megapixel pricing model separate from calculation logic. Easily compute image processing costs across TURBO, BALANCED, and QUALITY modes.

Megapixel Pricing Model Calculator

Cost Calculation & Configuration Form

Select mode, input image dimensions, and automatically compute megapixels and total cost.

Price Per Megapixel (TURBO)
$0.007500 USD
Auto-Populated
Unit: pixels
px
px
Quick Resolution Presets:

Cost Calculation Summary

USD ($)
Selected Mode:TURBO
Image Resolution:1920 × 1080 px
Calculated Megapixels
(Width × Height) / 1,000,000
2.0736 MP
Price Per Megapixel:$0.0075
Calculation Formula:Total Cost = Megapixels × Price Per Megapixel= 2.0736 MP × $0.0075 = $0.015552
Total Calculated Cost
$0.015552
USD
Exact decimal precision preserved up to 6 places.
Pricing Configuration Data Model

Pricing rates are maintained in a structured model separate from the calculation function algorithm so pricing can be changed dynamically without modifying code.

{
  "pricing": {
    "currency": "USD",
    "unit": "megapixel",
    "modes": {
      "TURBO": {
        "price_per_megapixel": 0.0075
      },
      "BALANCED": {
        "price_per_megapixel": 0.015
      },
      "QUALITY": {
        "price_per_megapixel": 0.025
      }
    }
  }
}
API Request & Response Specification

Endpoint: POST /api/pricing/megapixel

Request Body:
{
  "mode": "TURBO",
  "width": 1920,
  "height": 1080
}
Calculated Response:
{
  "success": true,
  "mode": "TURBO",
  "width": 1920,
  "height": 1080,
  "megapixels": 2.0736,
  "price_per_megapixel": 0.0075,
  "total_cost": 0.015552,
  "currency": "USD",
  "formatted_total_cost": "$0.015552"
}