New12,480+ smartphones indexed — free sandbox tier on every plan.Edge-cached JSON responses, typically under 100ms.SDKs for C#, TypeScript and Python, plus an MCP server for AI agents.New12,480+ smartphones indexed — free sandbox tier on every plan.Edge-cached JSON responses, typically under 100ms.SDKs for C#, TypeScript and Python, plus an MCP server for AI agents.
Get Free API Key
Specs comparison

Sony Xperia 5 IV vs Xiaomi 12 Pro

On the 4 metrics where both phones differ and a direction is meaningful, the two devices split evenly. Every value comes from the Device Specs API; the requests that return both payloads are at the bottom of the page.

Sony Xperia 5 IV

Sony Xperia 5 IV

2022 · Qualcomm SM8450 Snapdragon 8 Gen 1
VS
Xiaomi 12 Pro

Xiaomi 12 Pro

2021 · Qualcomm SM8450 Snapdragon 8 Gen 1
SpecificationSony Xperia 5 IVXiaomi 12 Pro
Release
Announced2022, September 012021, December 28
StatusAvailable. Released 2022, September 22Available. Released 2021, December 31
Display
Size6.1 in6.73 in
PanelOLEDLTPO AMOLED
Refresh rate120 Hz120 Hz
Peak brightness—1,500 nits
ResolutionOLED, 1B colors, 120Hz, HDR BT.2020LTPO AMOLED, 1B colors, 120Hz, Dolby Vision, HDR10+, 1000 nits (HBM), 1500 nits (peak)
ProtectionCorning Gorilla Glass VictusCorning Gorilla Glass Victus
Platform
ChipsetQualcomm SM8450 Snapdragon 8 Gen 1Qualcomm SM8450 Snapdragon 8 Gen 1
CPUOcta-core (1x3.00 GHz Cortex-X2 & 3x2.50 GHz Cortex-A710 & 4x1.80 GHz Cortex-A510)Octa-core (1x3.00 GHz Cortex-X2 & 3x2.50 GHz Cortex-A710 & 4x1.80 GHz Cortex-A510)
Cores88
Max clock3 GHz3 GHz
GPUAdreno 730Adreno 730
OSAndroid 12, upgradable to Android 13Android 12, MIUI 13
AnTuTu835038 (v9) GeekBench: 3448 (v5.1) GFXBench: 63fps (ES 3.1 onscreen)985226 (v9) GeekBench: 3682 (v5.1) GFXBench: 46fps (ES 3.1 onscreen)
Geekbench3448 (v5.1) GFXBench: 63fps (ES 3.1 onscreen)3682 (v5.1) GFXBench: 46fps (ES 3.1 onscreen)
Memory
RAM options8 GB8 GB / 12 GB
Storage options128 GB / 256 GB128 GB / 256 GB
Storage techUFS 3.XUFS 3.1
microSD slotYesNo
Battery
Capacity5000 mAh4600 mAh
Wired charging—120 W
Wireless chargingYesYes
Cameras
Rear lenses33
Main resolution12 MP50 MP
Rear camera12 MP, f/1.7, 24mm (wide), 1/1.7", 1.8µm, dual pixel PDAF, OIS, 12 MP, f/2.4, 60mm (telephoto), 1/3.5", dual pixel PDAF, OIS, 12 MP, f/2.2, 124˚, 16mm (ultrawide), 1/2.5", dual pixel PDAF50 MP, f/1.9, 24mm (wide), 1/1.28", 1.22µm, dual pixel PDAF, OIS, 50 MP, f/1.9, 48mm (telephoto), PDAF, 2x optical zoom, 50 MP, f/2.2, 115˚ (ultrawide)
Rear video4K@24/25/30/60/120fps HDR, 1080p@30/60/120fps; 5-axis gyro-EIS, OIS8K@24fps (HDR), 4K@30/60fps (HDR10+), 1080p@30/120/240/960fps, 720p@1920fps, gyro-EIS
Front camera12 MP, f/2.0, 24mm (wide), 1/2.9", 1.25µm32 MP, f/2.5, 26mm (wide), 0.7µm
Body
Weight172 g204 g
Thickness8.2 mm8.2 mm
Height156 mm163.6 mm
Width67 mm74.6 mm
IP ratingIP65—
MaterialsGlass front (Gorilla Glass Victus), glass back (Gorilla Glass Victus), aluminum frameGlass front (Gorilla Glass Victus), glass back, aluminum frame
SIMNano-SIM, eSIMNano-SIM
Sound and connectivity
Stereo speakersYesYes
3.5 mm jackYesNo
NFCYesYes
Bluetooth5.25.2
Wi-FiWi-Fi 802.11 a/b/g/n/ac/6e, tri-band, Wi-Fi Direct, DLNAWi-Fi 802.11 a/b/g/n/ac/6 or 6e (market dependent), dual-band, Wi-Fi Direct
USBUSB Type-C 3.2USB Type-C 2.0
InfraredNoYes

Sony Xperia 5 IV JSON

GET/api/values/clean/getspecs/Sony/Xperia%205%20IV
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Sony/Xperia%205%20IV' \
-H 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
-H 'x-rapidapi-host: gsmarenaparser.p.rapidapi.com'
SDK equivalents (Python, TypeScript, C#)
Python
from devicespecs import DeviceSpecsClient
client = DeviceSpecsClient("YOUR_RAPIDAPI_KEY")
device = client.get_specs("Sony", "Xperia 5 IV")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Sony", "Xperia 5 IV");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Sony", "Xperia 5 IV");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 457257,
  "manufacturer": "Sony",
  "model": "Xperia 5 IV",
  "network": "GSM / HSPA / LTE / 5G",
  "announceDate": "2022, September 01",
  "status": "Available. Released 2022, September 22",
  "chipset": "Qualcomm SM8450 Snapdragon 8 Gen 1",
  "androidVersion": "Android 12, upgradable to Android 13",
  "battery_raw": "Li-Po 5000 mAh",
  "cpu_raw": "Octa-core (1x3.00 GHz Cortex-X2 & 3x2.50 GHz Cortex-A710 & 4x1.80 GHz Cortex-A510)",
  "displayResolution_raw": "OLED, 1B colors, 120Hz, HDR BT.2020",
  "displaySize_raw": "6.1 inches, 86.9 cm<sup>2</sup> (~83.2% screen-to-body ratio)",
  "displayType_raw": "OLED, 1B colors, 120Hz, HDR BT.2020",
  "gpu": "Adreno 730",
  "internal_raw": "128GB 8GB RAM, 256GB 8GB RAM",
  "mainCameraFeatures": "Zeiss optics, Zeiss T* lens coating, color spectrum sensor, LED flash, panorama, HDR, eye tracking",
  "mainCameraSpecs_raw": "12 MP, f/1.7, 24mm (wide), 1/1.7\", 1.8µm, dual pixel PDAF, OIS<br>\n12 MP, f/2.4, 60mm (telephoto), 1/3.5\", dual pixel PDAF, OIS<br>\n12 MP, f/2.2, 124˚, 16mm (ultrawide), 1/2.5\", dual pixel PDAF",
  "mainVideoSpecs": "4K@24/25/30/60/120fps HDR, 1080p@30/60/120fps; 5-axis gyro-EIS, OIS",
  "selfieCameraFeatures": "HDR",
  "selfieCameraSpecs_raw": "12 MP, f/2.0, 24mm (wide), 1/2.9\", 1.25µm",
  "selfieVideoSpecs": "4K@30fps, 1080p@30/60fps, 5-axis gyro-EIS",
  "sensors": "",
  "charging_raw": "Wired, PD3.0, 50% in 30 min\nWireless\nReverse wireless",
  "price_usd": 0,
  "price_eur": 297.89,
  "price_gbp": 194.99,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/sony-xperia-5-iv-ofic.jpg",
  "colors": [
    "Green",
    "Black",
    "Ecru White"
  ],
  "variants": [
    {
      "id": 511211,
      "model_number": "XQCQ62B-GC"
    },
    {
      "id": 511212,
      "model_number": "XQCQ62G.GC"
    },
    {
      "id": 511213,
      "model_number": "XQ-CQ72/B2TWCX0"
    },
    {
      "id": 511214,
      "model_number": "XQ-CQ72/C2TWCX0"
    },
    {
      "id": 511215,
      "model_number": "XQ-CQ72/G2TWCX0"
    },
    {
      "id": 511216,
      "model_number": "XQCQ54C0B.YD"
    },
    {
      "id": 511217,
      "model_number": "XQCQ54C0G.YD"
    },
    {
      "id": 511218,
      "model_number": "XQCQ54C0C.YD"
    },
    {
      "id": 511219,
      "model_number": "XQ-CQ54"
    },
    {
      "id": 511220,
      "model_number": "XQ-CQ72"
    },
    {
      "id": 511221,
      "model_number": "A204SO"
    },
    {
      "id": 511222,
      "model_number": "SOG09"
    },
    {
      "id": 511223,
      "model_number": "SO-54C"
    }
  ],
  "normalized_specs": {
    "id": 457262,
    "display": {
      "id": 457262,
      "size_inches": 6.1,
      "panel_type": "OLED",
      "refresh_rate_hz": 120,
      "peak_brightness_nits": 0,
      "protection_type": "Corning Gorilla Glass Victus"
    },
    "processor": {
      "id": 457262,
      "total_cores": 8,
      "max_clock_speed_ghz": 3
    },
    "memory_options": {
      "id": 457262,
      "available_ram_gb": [
        8
      ],
      "available_storage_gb": [
        128,
        256
      ],
      "has_card_slot": true,
      "storage_technology": "UFS 3.X"
    },
    "battery_and_charging": {
      "id": 457262,
      "capacities_mah": [
        5000
      ],
      "max_wired_charging_w": 0,
      "has_wireless_charging": true
    },
    "cameras": {
      "id": 457262,
      "main_lenses_count": 3,
      "max_main_resolution_mp": 12,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 457262,
      "height_mm": 156,
      "width_mm": 67,
      "thickness_mm": 8.2,
      "weight_g": 172,
      "build_materials": [
        "Glass front (Gorilla Glass Victus)",
        "glass back (Gorilla Glass Victus)",
        "aluminum frame"
      ],
      "sim_options": [
        "Nano-SIM",
        "eSIM"
      ],
      "ip_rating": "IP65",
      "is_water_resistant": true
    },
    "sound": {
      "id": 457262,
      "has_stereo_speakers": true,
      "has_jack_35mm": true,
      "audio_quality_features": [
        "Hi-Res audio  Dynamic vibration system  Snapdragon Sound"
      ]
    },
    "connectivity": {
      "id": 457262,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac/6e",
        "tri-band",
        "Wi-Fi Direct",
        "DLNA"
      ],
      "bluetooth_version": 5.2,
      "bluetooth_features": [
        "A2DP",
        "LE",
        "aptX HD",
        "aptX Adaptive"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS",
        "BDS",
        "GALILEO",
        "QZSS"
      ],
      "has_nfc": true,
      "has_infrared": false,
      "has_radio": false,
      "usb_type": "USB Type-C 3.2",
      "usb_has_otg": true
    },
    "benchmarks": {
      "id": 457262,
      "antutu_score": "835038 (v9)  GeekBench: 3448 (v5.1)  GFXBench: 63fps (ES 3.1 onscreen)",
      "geekbench_score": "3448 (v5.1)  GFXBench: 63fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 979,
      "measured_loudspeaker_lufs": -26.9,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 457262,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

Xiaomi 12 Pro JSON

GET/api/values/clean/getspecs/Xiaomi/12%20Pro
cURL
curl 'https://gsmarenaparser.p.rapidapi.com/api/values/clean/getspecs/Xiaomi/12%20Pro' \
-H 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
-H 'x-rapidapi-host: gsmarenaparser.p.rapidapi.com'
SDK equivalents (Python, TypeScript, C#)
Python
from devicespecs import DeviceSpecsClient
client = DeviceSpecsClient("YOUR_RAPIDAPI_KEY")
device = client.get_specs("Xiaomi", "12 Pro")
print(device["normalized_specs"]["display"])
TypeScript
import { DeviceSpecsClient } from "@granturismo/devicespecs";
const client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
const device = await client.getSpecs("Xiaomi", "12 Pro");
console.log(device?.normalized_specs?.display);
C#
using var client = new DeviceSpecsClient("YOUR_RAPIDAPI_KEY");
var device = await client.GetSpecsAsync("Xiaomi", "12 Pro");
Console.WriteLine(device?.NormalizedSpecs?.Display?.SizeInches);
Get a free API key
Show raw response
{
  "id": 448030,
  "manufacturer": "Xiaomi",
  "model": "12 Pro",
  "network": "GSM / CDMA / HSPA / EVDO / LTE / 5G",
  "announceDate": "2021, December 28",
  "status": "Available. Released 2021, December 31",
  "chipset": "Qualcomm SM8450 Snapdragon 8 Gen 1",
  "androidVersion": "Android 12, MIUI 13",
  "battery_raw": "Li-Po 4600 mAh",
  "cpu_raw": "Octa-core (1x3.00 GHz Cortex-X2 &amp; 3x2.50 GHz Cortex-A710 &amp; 4x1.80 GHz Cortex-A510)",
  "displayResolution_raw": "LTPO AMOLED, 1B colors, 120Hz, Dolby Vision, HDR10+, 1000 nits (HBM), 1500 nits (peak)",
  "displaySize_raw": "6.73 inches, 109.4 cm<sup>2</sup> (~89.6% screen-to-body ratio)",
  "displayType_raw": "LTPO AMOLED, 1B colors, 120Hz, Dolby Vision, HDR10+, 1000 nits (HBM), 1500 nits (peak)",
  "gpu": "Adreno 730",
  "internal_raw": "128GB 8GB RAM, 256GB 8GB RAM, 256GB 12GB RAM",
  "mainCameraFeatures": "Color spectrum sensor, Dual-LED dual-tone flash, HDR, panorama",
  "mainCameraSpecs_raw": "50 MP, f/1.9, 24mm (wide), 1/1.28\", 1.22µm, dual pixel PDAF, OIS<br>\n50 MP, f/1.9, 48mm (telephoto), PDAF, 2x optical zoom<br>\n50 MP, f/2.2, 115˚ (ultrawide)",
  "mainVideoSpecs": "8K@24fps (HDR), 4K@30/60fps (HDR10+), 1080p@30/120/240/960fps, 720p@1920fps, gyro-EIS",
  "selfieCameraFeatures": "HDR, panorama",
  "selfieCameraSpecs_raw": "32 MP, f/2.5, 26mm (wide), 0.7µm",
  "selfieVideoSpecs": "1080p@30/60fps, 720p@120fps, HDR10+",
  "sensors": "",
  "charging_raw": "120W wired, PD3.0, QC4, 100% in 18 min\n50W wireless, 100% in 42 min\n10W reverse wireless",
  "price_usd": 0,
  "price_eur": 239.9,
  "price_gbp": 0,
  "imageUrl": "https://fdn2.gsmarena.com/vv/bigpic/xiaomi-12-pro.jpg",
  "colors": [
    "Gray",
    "Blue",
    "Purple",
    "Green"
  ],
  "variants": [
    {
      "id": 500343,
      "model_number": "2201122C"
    },
    {
      "id": 500344,
      "model_number": "2201122G"
    }
  ],
  "normalized_specs": {
    "id": 448035,
    "display": {
      "id": 448035,
      "size_inches": 6.73,
      "panel_type": "LTPO AMOLED",
      "refresh_rate_hz": 120,
      "peak_brightness_nits": 1500,
      "protection_type": "Corning Gorilla Glass Victus"
    },
    "processor": {
      "id": 448035,
      "total_cores": 8,
      "max_clock_speed_ghz": 3
    },
    "memory_options": {
      "id": 448035,
      "available_ram_gb": [
        8,
        12
      ],
      "available_storage_gb": [
        128,
        256
      ],
      "has_card_slot": false,
      "storage_technology": "UFS 3.1"
    },
    "battery_and_charging": {
      "id": 448035,
      "capacities_mah": [
        4600
      ],
      "max_wired_charging_w": 120,
      "has_wireless_charging": true
    },
    "cameras": {
      "id": 448035,
      "main_lenses_count": 3,
      "max_main_resolution_mp": 50,
      "selfie_lenses_count": 1
    },
    "physical": {
      "id": 448035,
      "height_mm": 163.6,
      "width_mm": 74.6,
      "thickness_mm": 8.2,
      "weight_g": 204,
      "build_materials": [
        "Glass front (Gorilla Glass Victus)",
        "glass back",
        "aluminum frame"
      ],
      "sim_options": [
        "Nano-SIM"
      ],
      "ip_rating": "",
      "is_water_resistant": false
    },
    "sound": {
      "id": 448035,
      "has_stereo_speakers": true,
      "has_jack_35mm": false,
      "audio_quality_features": [
        "24-bit/192kHz Hi-Res audio  Tuned by Harman Kardon  Snapdragon Sound"
      ]
    },
    "connectivity": {
      "id": 448035,
      "wlan_features": [
        "Wi-Fi 802.11 a/b/g/n/ac/6 or 6e (market dependent)",
        "dual-band",
        "Wi-Fi Direct"
      ],
      "bluetooth_version": 5.2,
      "bluetooth_features": [
        "A2DP",
        "LE",
        "aptX HD",
        "aptX Adaptive"
      ],
      "positioning_tech": [
        "GPS",
        "GLONASS",
        "BDS",
        "GALILEO",
        "QZSS",
        "NavIC"
      ],
      "has_nfc": true,
      "has_infrared": true,
      "has_radio": false,
      "usb_type": "USB Type-C 2.0",
      "usb_has_otg": true
    },
    "benchmarks": {
      "id": 448035,
      "antutu_score": "985226 (v9)  GeekBench: 3682 (v5.1)  GFXBench: 46fps (ES 3.1 onscreen)",
      "geekbench_score": "3682 (v5.1)  GFXBench: 46fps (ES 3.1 onscreen)",
      "measured_display_brightness_nits": 1050,
      "measured_loudspeaker_lufs": -29.5,
      "measured_battery_active_use_hours": 0
    },
    "eu_label": {
      "id": 448035,
      "energy_class": "",
      "battery_endurance": "",
      "battery_endurance_hours": 0,
      "free_fall_class": "",
      "repairability_class": ""
    }
  }
}

More comparisons