全部 免费额度 POST

像素头像生成

像素头像生成 QQ

平均延时 200ms SLA 99.9% 近 30 天调用 18,850

接口说明

像素头像生成 QQ

请求地址

POST http://localhost:9080/api/v1/xiangs
  • 鉴权头:X-API-Key: sk_live_xxx(兼容 ?xukey= 查询参数)
  • 网关入口:http://localhost:9080/api,路径 = api/ + 接口路径
  • 请求格式:application/json;响应统一为 {"code":0,"data":{...}}

请求参数

参数名 类型 必填 说明 示例
QQ String 选填

调用示例

鉴权头 X-API-Key
curl -X POST "http://localhost:9080/api/v1/xiangs" \
  -H "X-API-Key: sk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"input":"你好,星链 API"}'
const res = await fetch("http://localhost:9080/api/v1/xiangs", {
  method: "POST",
  headers: {
    "X-API-Key": "sk_live_xxx",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
        "input": "你好,星链 API"
    }),
});
const data = await res.json();
console.log(data);
import requests

resp = requests.post(
    "http://localhost:9080/api/v1/xiangs",
    headers={"X-API-Key": "sk_live_xxx"},
    json={
            "input": "你好,星链 API"
        },
    timeout=30,
)
print(resp.json())

响应示例

200 OK · 示例数据
{
    "qq": "1735308837"
}