Tout ce que vous pouvez demander, filtré par plan, en un seul appel: formats, largeurs, qualité, ratios, résolutions, l'option color et les drapeaux modificateurs (ombre/transparence/sol/miroir/filigrane) avec ce que votre plan permet.
Demande
curl "https://api.vehicleimagery.com/api/options" \
-H "x-api-key: YOUR_API_KEY" 200 · Options groupées.
{
"formats": [
"png",
"webp",
"jpeg",
"avif"
],
"widths": [
200,
400,
800,
1200,
1600,
2000
],
"quality": {
"min": 40,
"max": 100,
"default": 82
},
"modifiers": {
"shadow": {
"param": "shadow",
"values": [
"true",
"false"
],
"allowed": true
},
"mirroring": {
"param": "mirroring",
"values": [
"true",
"clean"
],
"allowed": true,
"note": "floor reflection; needs a transparent variant; shadow=false drops the underbody"
}
},
"params": [
"format",
"resolution",
"ratio",
"width",
"height",
"quality",
"color",
"shadow",
"transparency",
"ground",
"mirroring"
]
} 401 · Clé `x-api-key` manquante ou invalide.
{
"error": "Invalid API key"
} 403 · Restriction de plan (fonctionnalité, format ou marque non autorisés) ou demande bloquée.
{
"error": "Mirroring is not allowed by your plan."
} 404 · Aucune donnée pour le chemin demandé.
{
"error": "Brand 'Xyz' not found — check /api/brands for valid brands."
}