小宇API

[工具]无限制图床

不限制总容量,自抓服务,理论永久有效<br> <br> 严禁上传 侵权违规、儿童色情、色情擦边、暴力恐怖、个人隐私、非法商品、违规服务 等一切触犯中国法定违法犯罪,坚持0容忍,一经发现,提交账号相关信息至网安

接口状态
正常
总调用次数
74
添加时间
2026-07-21
更新时间
2026-10-25

请求地址

https://api.xiaoyu17love.top/API/tc.php

请求参数

参数名类型必填说明
apikey string either API密钥,注册账号免费获取(本接口的image参数免检apikey)
data string either 上传时必填,上传图片,可为base64/URL
image string either 图片id,与data参数互斥
type string no 返回图片类型,默认直接返回图片,可选:image-直接返回、json-返回在json里面、text-直接返回链接

返回参数

参数名类型说明
codestring状态码
msgstring状态信息
datastring图片id
FILEstring直接返回图片
如果返回cdn链接是有有效期的,暂时不清楚有效期是多久,如果直接返回图片倒是没事string提示

状态码

状态码说明
200成功
403拒绝
404未找到
429限速
500服务器错误

查看示例

在线测试 请求模式:

结果将显示在这里

调用示例

<?php
$url = 'https://api.xiaoyu17love.top/API/tc.php';
$params = [
    'apikey' => 'API密钥,注册账号免费获取(本接口的image参数免检apikey)',
    'data' => '上传时必填,上传图片,可为base64/URL',
    'image' => '图片id,与data参数互斥',
    'type' => '返回图片类型,默认直接返回图片,可选:image-直接返回、json-返回在json里面、text-直接返回链接',
];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests

url = "https://api.xiaoyu17love.top/API/tc.php"
params = {
    "apikey": "API密钥,注册账号免费获取(本接口的image参数免检apikey)",
    "data": "上传时必填,上传图片,可为base64/URL",
    "image": "图片id,与data参数互斥",
    "type": "返回图片类型,默认直接返回图片,可选:image-直接返回、json-返回在json里面、text-直接返回链接",
}

response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.xiaoyu17love.top/API/tc.php');
const params = {
    'apikey': 'API密钥,注册账号免费获取(本接口的image参数免检apikey)',
    'data': '上传时必填,上传图片,可为base64/URL',
    'image': '图片id,与data参数互斥',
    'type': '返回图片类型,默认直接返回图片,可选:image-直接返回、json-返回在json里面、text-直接返回链接',
};

Object.keys(params).forEach(key => {
    url.searchParams.append(key, params[key]);
});

fetch(url)
    .then(response => response.text())
    .then(data => console.log(data))
    .catch(error => console.error('Error:', error));