AeroModel
Documentation
marginPercent
Margin as a percentage of the canvas width, added on each side of the aircraft.
Range
- Min:
0(aircraft edge-to-edge) - Max:
45(10% of the canvas left for the aircraft) - Default:
8 - Step: 0.01
Note: any call with
marginPercentdifferent from the default triggers the composition pipeline. Output is served as PNG (headerx-format-coerced: pngifjpg/webpwas requested).
API examples
GET https://api.aeromodel.dash-systems.fr/v1/images/plane?api-key=YOUR_KEY&plane=A320&airline=AF&marginPercent=0
GET https://api.aeromodel.dash-systems.fr/v1/images/plane?api-key=YOUR_KEY&plane=A320&airline=AF&marginPercent=8
GET https://api.aeromodel.dash-systems.fr/v1/images/plane?api-key=YOUR_KEY&plane=A320&airline=AF&marginPercent=15
GET https://api.aeromodel.dash-systems.fr/v1/images/plane?api-key=YOUR_KEY&plane=A320&airline=AF&marginPercent=25
Visuals (A320 profile 90°, contain, zoomLevel=1)
marginPercent=0 | marginPercent=8 (default) | marginPercent=15 | marginPercent=25 |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
Behavior
- With
zoomType=contain: the margin is guaranteed on each side. - With
zoomType=fill: the margin acts as a crop offset. - If
zoomLevel>1ANDmarginPercent>0, they may compensate (zoom overflows the margin).
Use cases
| Context | marginPercent |
|---|---|
| Tight view | 0-3 |
| Standard catalog | 8 (default) |
| Airy / minimalist view | 15-20 |
| Thumbnail with room for text overlay | 15-25 |
Errors
GET https://api.aeromodel.dash-systems.fr/v1/images/plane?api-key=YOUR_KEY&plane=A320&marginPercent=80&format=json
→ 400 { "error": "invalid render options", "details": ["marginPercent must be a number between 0 and 45"] }



