Ir al contenido
GET /v1/image

Placeholder image (SVG)

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/placeholder-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}