AeroModel

AeroModel

Documentation

Terminology

Glossary of terms used throughout the docs and in response headers.

Aircraft models (planes)

TermDefinitionExample
SlugUnique stable identifier used internally. Case-insensitive, kebab-case.airbus-a320-200
IATA3-character code defined by IATA.320 (A320), 388 (A380)
ICAO4-character code defined by ICAO.A320, A388, B789
FamilyGroup of planes sharing an airframe. The renderer reuses the same image when a variant doesn't exist.airbus-a320-family

Airlines

TermDefinitionExample
SlugUnique stable identifier.air-france, emirates
IATA2-character code.AF, EK
ICAO3-character code.AFR, UAE
Canonical brandShort official display name."Air France", "Emirates"

Liveries

TermDefinition
BaseAirline's current main livery.
Special liveryTemporary or event livery (e.g. expo-2020, real-madrid).
BlankUnpainted aircraft (factory image delivered by manufacturer).
FallbackWhen the requested livery doesn't exist, the API falls back to base then blank. The x-fallback-reason header indicates the cause.

View / orientation

TermDefinition
AngleHorizontal view in degrees (0 = front, 90 = right profile, 180 = rear, 270 = left profile, top = top-down view).
GearLanding gear state (down or up).
PitchVertical inclination — number in degrees between -45 (nose-down) and 45 (nose-up).
AlignVertical alignment within the canvas (bottom, center, top).

Render / output

TermDefinition
CanvasThe PNG/JPEG/WebP returned by the API, of size width × height.
BboxBounding rectangle of the aircraft inside the source PNG.
Content sizeEffective aircraft size after resizing into the canvas.
zoomTypecontain (whole aircraft fits) or fill (canvas filled, may crop).
zoomLevelContent size multiplier (1 = default, 0.5 = smaller, 2 = larger).
marginPercentMargin between content and canvas edge as a percent (0–45).

Cache

TermDefinition
Edge cacheCloudflare cache local to the datacenter. Default TTL 24 hours.
R2Cloudflare object storage; long-term persistence of pre-rendered assets and compositions.
Composed assetPNG generated on the fly and persisted in R2 for subsequent requests.
cf-cache-statusHeader indicating HIT, MISS, REVALIDATED, STALE, ...
x-image-sourceWhere the image came from (r2-livery, r2-base, r2-blank, composed, watermark-overlay).

Security / auth

TermDefinition
API keyHex/base64 shared string. x-api-key header (or Authorization: Bearer, or ?api-key=).
WatermarkedImage served without a valid key: a central watermark indicates the request is not authenticated.
x-auth-statusDiagnostic header: unauthorized or absent (auth OK).