GET /placeholder/random
生成来自 Lorem Picsum 的随机占位图片 URL。非常适合线框图、模型和开发。返回多种样式的直接图片 URL,包括灰度和模糊效果。无热链接限制。
width
可选
默认: 600
Image width in pixels
height
可选
默认: 400
Image height in pixels
| 名称 | 必填 | 默认值 | 描述 |
|---|---|---|---|
width |
否 | 600 | Image width in pixels |
height |
否 | 400 | Image height in pixels |
curl "https://nordapi.ee/api/v1/placeholder/random?width=800&height=600"
curl https://nordapi.ee/api/v1/placeholder/random
curl "https://nordapi.ee/api/v1/placeholder/random?width=500&height=500"
curl "https://nordapi.ee/api/v1/placeholder/random?width=1200&height=300"
{
"data": {
"blur_url": "https://picsum.photos/800/600?blur=2",
"grayscale_url": "https://picsum.photos/800/600?grayscale",
"height": 600,
"image_url": "https://picsum.photos/800/600",
"specific_url": "https://picsum.photos/id/579/800/600",
"width": 800
},
"success": true
}