/v1/image
Placeholder image (SVG)
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/placeholder-api/v1/image" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/placeholder-api/v1/image", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/placeholder-api/v1/image");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/placeholder-api/v1/image",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"bg": "#cccccc",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"300\" height=\"200\" viewBox=\"0 0 300 200\"><rect width=\"300\" height=\"200\" fill=\"#cccccc\"/><text x=\"50%\" y=\"50%\" dy=\".35em\" fill=\"#333333\" font-family=\"Arial,Helvetica,sans-serif\" font-size=\"40\" font-weight=\"bold\" text-anchor=\"middle\">Hello</text></svg>",
"text": "Hello",
"color": "#333333",
"width": 300,
"format": "svg",
"height": 200
},
"meta": {
"timestamp": "2026-05-30T14:35:20.102Z",
"request_id": "0b0ce810-39fc-48b2-a8e5-8d620f7088d8"
},
"status": "ok",
"message": "OK",
"success": true
}