🖼️ 随机图片 API

电脑端 · 手机端 · 自适应,一个链接即可调用

电脑端 API

从 images/pc 文件夹随机返回一张图片

preview https://api.kuromi.cloud/api.php?type=pc

手机端 API

从 images/mobile 文件夹随机返回一张图片

preview https://api.kuromi.cloud/api.php?type=mobile

自适应 API

根据访问设备自动选择电脑图或手机图

preview https://api.kuromi.cloud/api.php?type=auto

参数说明

参数可选值说明
typepc / mobile / auto设备类型,默认 auto
formatredirect / img / json返回方式:302跳转(默认)/ 直接输出图片 / 返回JSON

使用示例:
<img src="https://api.kuromi.cloud/api.php?type=auto"> https://api.kuromi.cloud/api.php?type=mobile&format=json 若服务器已启用伪静态,也可使用短链接:https://api.kuromi.cloud/pc 、/mobile 、/auto