REST ReferencePerformance

Performance

Recalculate flight time, range, coverage, storage, and cost for up to 100 airframes in one call under your own mission conditions.

curl -X POST https://api.airpixels.com/v1/performance \
  -H "Authorization: Bearer $AP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"airframe_id":"dji-matrice-4t","wind_mph":15,"temp_f":41,"elevation_ft":5280,"reserve_pct":25}'
{
  "data": [
    {
      "airframe_id": "dji-matrice-4t",
      "name": "DJI Matrice 4T (M4T)",
      "brochure_flight_min": 49,
      "realistic_flight_min": 33.216,
      "usable_flight_min": 24.912,
      "mission_radius_mi": 4.664,
      "gsd_cm_px": 1.08,
      "acres_per_battery": 47.734,
      "storage_gb_per_battery": 23.72,
      "kit_cost_usd": 10281,
      "scores": {
        "overall": 66,
        "cinematography": 41,
        "mapping": 50,
        "inspection": 85,
        "travel": 47,
        "value": 42
      }
    }
  ],
  "next_cursor": null,
  "meta": {
    "plan": "builder",
    "calls_used": 4,
    "calls_included": 25000,
    "conditions": {
      "wind_mph": 15,
      "temp_f": 41,
      "elevation_ft": 5280,
      "reserve_pct": 25,
      "altitude_agl_ft": 200,
      "front_overlap_pct": 75,
      "side_overlap_pct": 70,
      "speed_mph": 15,
      "shutter": 1000
    },
    "model_version": "dce-engine-2026-11",
    "total": 1,
    "attribution": "Data: Air Pixels (airpixels.com)"
  }
}

Recalculate Field Performance for up to 100 airframes

POST /performance returns Field Performance for as many as 100 airframes in a single call, recomputed under the mission conditions you pass in. Price a job across a shortlist of aircraft, or compare how the same airframe performs at a different altitude, wind speed, or reserve, without recalculating one airframe at a time.

POST https://api.airpixels.com/v1/performance

Every record is a planning estimate from the model behind the Drone Comparison Engine at airpixels.com/drones. The API was checked bit for bit against that engine for every airframe and camera under 27 condition sets.

POST /performance is available on Builder plans and above. Each page of results counts as one API call.

Request body

Send JSON. You can pick airframes by id or by filter, and set conditions either at the top level or inside a conditions object. Both shapes return the same records.

Use the flat shape to price a single airframe quickly.

{
  "airframe_id": "dji-matrice-4t",
  "wind_mph": 15,
  "temp_f": 41,
  "elevation_ft": 5280,
  "reserve_pct": 25
}

Set each condition key in one place only. If the same key appears inside conditions and at the top level, the request fails with a 400.

Body parameters

airframe_idsstring[]

1 to 100 unique airframe ids. Records come back in the order you list them unless you pass sort. Do not combine with filters. Unknown ids are not an error: they are skipped and listed in meta.missing_ids.

airframe_idstring

A single airframe id, used with the flat shape.

filtersobject

The same filters as GET /airframes, supplied either as a filters object or as the same keys at the top level. List values accept arrays or comma-separated strings. Defaults to all airframes. Do not combine with ids.

conditionsobject

The nine mission conditions, supplied either as a conditions object or as the same keys at the top level. Omitted conditions take the model defaults.

camerainteger

Camera index used for the mapping and storage outputs, 0 to 9. Defaults to 0. If the airframe has fewer cameras than the index you request, the API falls back to 0 and reports the camera it actually used in camera_index.

min_usable_flight_minnumber

Keep only airframes whose usable_flight_min is at least this value. 0 or more. Alias: min_usable_min.

sortstring

One of default, name, usable_flight_min, mission_radius_mi, acres_per_battery, gsd_cm_px, storage_gb_per_battery, kit_cost_usd, or overall_score. Prefix with - for descending order. Defaults to -usable_flight_min, or to the order of airframe_ids when you send ids.

limitinteger

Records per page, 1 to 100. Defaults to 25. meta.total reports how many airframes match your request.

cursorstring

The next_cursor value from the previous page. Omit it to request the first page.

Mission conditions

The nine mission conditions drive every output. Omitted conditions take the model defaults, and meta.conditions echoes the full set that was used, defaults included. Decimals are accepted. Values outside the listed range return a 400 and are never clamped to the nearest valid value.

wind_mphnumber

Sustained wind in mph. Defaults to 15, valid range 0 to 30.

temp_fnumber

Air and battery temperature in °F. Defaults to 68, valid range 15 to 105.

elevation_ftnumber

Take-off elevation above sea level in feet. Defaults to 500, valid range 0 to 12000.

reserve_pctnumber

Battery percentage held back for landing. Defaults to 20, valid range 15 to 35.

altitude_agl_ftnumber

Mapping altitude above ground level in feet. Defaults to 200, valid range 50 to 400. Sets the ground sample distance and photo footprint.

front_overlap_pctnumber

Forward photo overlap. Defaults to 75, valid range 60 to 85.

side_overlap_pctnumber

Side, or line, overlap. Defaults to 70, valid range 60 to 80.

speed_mphnumber

Requested mapping speed in mph. Defaults to 15, valid range 5 to 30. The API lowers the effective speed where the photo interval, motion blur, or rolling shutter limit requires it, and names the constraint in mapping_speed_limited_by.

shutterinteger

Shutter speed as a fraction denominator, in seconds. Defaults to 1000.

Allowed values:2505001000160020004000

The tenth model input, the camera index, is documented with the body parameters as camera.

Example: price a high-altitude mission

This request prices a Matrice 4T at 5,280 ft with a 15 mph wind, 41 °F air, and a 25% reserve. The remaining five conditions use their defaults.

A response carries data (one record per airframe), next_cursor, and meta. When you filter or page, check meta.total to see how many airframes matched.

Response fields

Every record returns the same field set. Minutes, distances, and GSD are rounded to three decimals, factors to four decimals, footprints to one decimal place, and money to cents.

Identity

airframe_idstring

The airframe the record describes.

namestring

Display name of the airframe.

manufacturerstring

Aircraft manufacturer.

modelstring

Manufacturer model name.

camera_indexinteger

Index of the camera used for the mapping and storage outputs. This can differ from the camera you requested after a fallback.

camera_namestring

Name of the camera used for those outputs.

brochure_flight_minnumber

The manufacturer's published flight time in minutes, before any derating.

sourcestring

Where the airframe and camera data came from.

verified_atstring

When the airframe data was last verified.

Flight time

realistic_flight_minnumber

Flight time in minutes after wind, temperature, and elevation derating.

usable_flight_minnumber

Flight time in minutes left for the mission once the reserve is held back. This is the number to plan against.

flight_time_lost_minnumber

Minutes of flight time given up to conditions and reserve.

wind_factornumber

Derating multiplier applied for the requested wind, from 0 to 1.

temperature_factornumber

Derating multiplier applied for the requested temperature, from 0 to 1.

elevation_factornumber

Derating multiplier applied for the take-off elevation, from 0 to 1.

over_wind_limitboolean

true when the requested wind exceeds the airframe's rated wind limit.

rated_wind_limit_mphnumber

The airframe's rated wind limit in mph.

Range and coverage

mission_radius_minumber

Out-and-back radius the airframe can cover on the usable flight time, in miles.

mission_radius_kmnumber

The same radius in kilometers.

gsd_cm_pxnumber

Ground sample distance at the mapping altitude, in centimeters per pixel.

gsd_in_pxnumber

Ground sample distance at the mapping altitude, in inches per pixel.

footprint_width_ftnumber

Width of a single photo's ground footprint at the mapping altitude, in feet.

footprint_height_ftnumber

Height of a single photo's ground footprint at the mapping altitude, in feet.

acres_per_batterynumber

Area one battery can map at the requested overlaps.

hectares_per_batterynumber

The same area in hectares.

photos_per_batteryinteger

Number of photos one battery can capture at the requested overlaps.

Speed

mapping_speed_mphnumber

The speed the aircraft can actually fly while capturing usable imagery, which may be below the requested speed.

mapping_speed_limited_bystring

The constraint that held mapping_speed_mph below the requested speed.

speed_limits_mphobject

The individual caps behind the speed calculation: requested_speed, photo_interval, motion_blur, and rolling_shutter_cap.

rolling_shutter_warningboolean

true when the requested speed is above 8 m/s (about 17.9 mph) on a rolling-shutter camera.

Storage and media

video_bitrate_mbpsnumber

Video bitrate the camera records at, in megabits per second.

data_rate_gb_per_minnumber

Data written per minute of flight, in gigabytes.

storage_gb_per_batterynumber

Storage consumed by one battery's worth of capture, in gigabytes.

write_speed_mb_snumber

Sustained card write speed required, in megabytes per second.

min_card_classstring

The lowest SD card speed class that keeps up with that write speed.

batteries_per_256gb_cardinteger

How many batteries you can fly before filling a 256 GB card.

batteries_for_nonstopinteger

Batteries required for nonstop operation.

Cost and ratings

kit_cost_usdinteger

Typical kit cost in US dollars.

battery_cost_per_flight_hour_usdnumber

Battery cost attributable to each flight hour, in US dollars.

faa_tierstring

The FAA operating tier that applies to the airframe.

faa_tier_labelstring

The readable label for that tier.

scoresobject

Six ratings: overall, cinematography, mapping, inspection, travel, and value.

Pagination and meta

next_cursorstring

Cursor for the next page, or null when this is the last page.

meta.totalinteger

Number of airframes that match the request, across all pages.

meta.missing_idsstring[]

Ids from airframe_ids that no longer resolve. Present only when at least one id is missing.

meta.conditionsobject

Every condition used for the calculation, with defaults filled in. Echo this back to the customer or store it with the quote so the numbers can be reproduced.

meta.model_versionstring

Identifier of the model that produced the records.

meta.planstring

The plan the call was made on.

meta.calls_usedinteger

Calls used in the current period, including this one.

meta.calls_includedinteger

Calls included in your plan for the period.

meta.attributionstring

Attribution string to display wherever you publish the data.

Page through large result sets

A page holds up to 100 records. Pass limit to size the page, then follow next_cursor until it comes back as null. Every page is a separate call.

let cursor;
const records = [];

do {
  const response = await fetch("https://api.airpixels.com/v1/performance", {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.AP_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      limit: 100,
      sort: "-usable_flight_min",
      cursor,
    }),
  });

  if (!response.ok) {
    throw new Error(`Performance request failed: ${response.status}`);
  }

  const page = await response.json();
  records.push(...page.data);
  cursor = page.next_cursor;
} while (cursor);

console.log(records.length);

Cursors are opaque. Reuse the value exactly as returned and do not construct one yourself; a malformed cursor returns a 400.

Errors

Failures return a JSON body with a code and a message. The message names the parameter that caused the problem.

StatusCodeCause and fix
400bad_requestUnknown or repeated parameter, value outside its range, malformed JSON, or bad cursor. Fix the request as the message describes.
401missing_key, invalid_key, key_revokedThe API key is absent, wrong, or revoked. Send a current key in the Authorization header.
403not_in_planThe endpoint requires Builder or above. Upgrade the plan or use an endpoint your plan includes.
429rate_limitedToo many requests in a short window. Wait for the number of seconds in Retry-After, then retry.
429quota_exceededThe period's call allowance is spent. Wait for the reset or raise the plan limit.

Call counting

  • One call returns up to 100 records, and each page counts as one call.
  • Rejected requests are never counted: 400, 401, 402, 403, and both kinds of 429 are free.
  • Requests that run are counted, even when they match nothing. On the single-airframe endpoint GET /airframes/{id}/performance, a 404 for an unknown id still consumes a call.
  • meta.calls_used and meta.calls_included in every response show where you stand.

Model version and interpretation

Every response carries meta.model_version, currently dce-engine-2026-11. Store it with any figures you keep so you can tell later which estimate a stored quote came from.

Field Performance Model documents how the inputs become outputs and what the figures assume. Field-level detail sits in the Data dictionary, and quotas and status codes in Plans and limits.

The figures are decision support from a model, not test results. Confirm flight time, wind limits and battery planning against the aircraft's manual and your own pre-flight assessment. Part 107 Compliance covers the operating rules that still apply.

For a single airframe under the same conditions, use GET /airframes/{id}/performance. To price the job around those airframes, use the rates endpoints.