随机图 - API
# 随机图片API请求方式 #
Method: GET/POST
# 请求地址 #
https://api.yimian.xyz/img
# 参数 #
type //type=moe二次元(default)/wallpaper风景壁纸/head头像/koino幼犬酱
size //size=1920x1080图片大小/ 格式: ??x?? / ??-??x?? / ??x??-?? / ??-??x??-?? / ??x* / *x?? / *x* (default)
id //id=15 根据图片id获取图片,需要先指定type,默认为moe
display //display=true 是否直接输出图片(很慢),而不是302重定向到临时地址(默认,建议)
path //path=koino/img_7_849x906_96_koino_normal.jpg 直接根据地址获取图片,优先级高于type
R18 //R18=true 是否展示18禁图片,默认不展示
# 返回数据 #
本API无返回数据,直接输出图片
# 备注 #
更多用法参考
https://www.eee.dog/tech/rand-pic-api.html
# 示例 #
https://api.yimian.xyz/img?type=koino
https://api.yimian.xyz/img?type=koino&display=true
https://api.yimian.xyz/img?type=moe&size=1920x1080&display=true
https://api.yimian.xyz/img?type=moe&size=666-888x999-2000&display=true
https://api.yimian.xyz/img?type=moe&size=*x999-2000&display=true
https://api.yimian.xyz/img?type=moe&id=15&display=true
https://api.yimian.xyz/img?path=koino/img_7_849x906_96_koino_normal.jpg
https://api.yimian.xyz/img?type=koino&R18=true&display=true
https://api.yimian.xyz/img?type=wallpaper&display=true