接口说明
像素头像生成 QQ
像素头像生成 QQ
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 | 选填 | |
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())
{
"qq": "1735308837"
}