用于生成姓氏壁纸
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| xl | string | 否 | 模板名称 | 大情种 |
| msg | string | 否 | 自定义文本内容 | 蔡徐坤 |
| type | string | 否 | 返回格式(json/text/img)=lb则输出图片列表 | json |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "xl",
"type": "string",
"required": false,
"description": "模板名称",
"example": "大情种"
},
{
"name": "msg",
"type": "string",
"required": false,
"description": "自定义文本内容",
"example": "蔡徐坤"
},
{
"name": "type",
"type": "string",
"required": false,
"description": "返回格式(json/text/img)=lb则输出图片列表",
"example": "json"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "艺术壁纸",
"description": "用于生成姓氏壁纸",
"version": "1.0.0"
},
"paths": {
"/api/yljk/ysqm/ysbz/api.php": {
"get": {
"summary": "艺术壁纸",
"description": "用于生成姓氏壁纸",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "xl",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "大情种"
},
"description": "模板名称"
},
{
"name": "msg",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "蔡徐坤"
},
"description": "自定义文本内容"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "返回格式(json/text/img)=lb则输出图片列表"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "艺术壁纸",
"description": "用于生成姓氏壁纸",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "xl",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "大情种"
},
"description": "模板名称"
},
{
"name": "msg",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "蔡徐坤"
},
"description": "自定义文本内容"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "返回格式(json/text/img)=lb则输出图片列表"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api-v2.317ak.com",
"description": "当前访问入口(https)"
}
]
}
{
"status": "success",
"message": "操作成功",
"msg": "蔡徐坤",
"url": "http://21.jiqie.cn/110/114.132.201.221_0930040939.jpg",
"font_id": "2449",
"datetime": "2026-09-30 04:09:40"
}
用于生成姓氏壁纸内容的娱乐接口,适用于需要快速生成个性化艺术壁纸的应用场景。
接口支持通过调用参数生成对应壁纸结果。
https://api-v2.317ak.com/api/yljk/ysqm/ysbz/api.php
GET, POST
接口调用需要密钥认证,请通过 Query 参数方式传递密钥:
key=接口调用密钥
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥,通过 Query 参数 key 传递 |
| xl | string | 否 | 模板名称,例如:大情种 |
| msg | string | 否 | 自定义文本内容,例如:蔡徐坤 |
| type | string | 否 | 返回格式,可选值:json、text、img;填写 lb 时输出图片列表 |
{
"status": "success",
"message": "操作成功",
"msg": "蔡徐坤",
"url": "http://21.jiqie.cn/110/114.132.201.221_0930040939.jpg",
"font_id": "2449",
"datetime": "2026-09-30 04:09:40"
}
| 字段 | 类型 | 说明 |
|---|---|---|
status |
string | 请求状态,成功时返回 success |
message |
string | 操作结果说明 |
msg |
string | 生成壁纸使用的文本内容 |
url |
string | 生成后的壁纸地址 |
font_id |
string | 壁纸字体标识 |
datetime |
string | 响应时间 |
接口发生错误时,将返回 JSON 格式错误信息,示例:
{
"code": 0,
"msg": "未提供调用密钥",
"errcode": 11001
}
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | ***地址无效 |
| 11015 | ***地址不允许 |
| 11016 | ***请求失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前IP不在白名单内 |
| 11020 | 启用出口代理须提供有效密钥 |
| 11021 | 未配置可用出口代理 |
| 11022 | 出口代理不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
curl -G "https://api-v2.317ak.com/api/yljk/ysqm/ysbz/api.php" \
--data-urlencode "key=你的接口密钥" \
--data-urlencode "xl=大情种" \
--data-urlencode "msg=蔡徐坤" \
--data-urlencode "type=json"
// PHP
$url = "https://api-v2.317ak.com/api/yljk/ysqm/ysbz/api.php?key=你的接口密钥&xl=大情种&msg=蔡徐坤&type=json";
$response = file_get_contents($url);
echo $response;
key 传递调用密钥,请确保请求中正确填写有效密钥,否则可能导致调用失败。xl 参数用于选择壁纸模板名称,传入前请确认模板名称符合接口支持范围;未填写时将使用接口默认处理方式。msg 参数用于设置自定义文本内容,建议控制文本长度,过长内容可能影响生成效果。type 参数用于指定返回格式,可根据业务需求选择合适类型;需要获取图片列表时请传入对应值 lb。curl -G 'https://api-v2.317ak.com/api/yljk/ysqm/ysbz/api.php' \
--data-urlencode 'key=YOUR_API_KEY' \
--data-urlencode 'xl=大情种' \
--data-urlencode 'msg=蔡徐坤' \
--data-urlencode 'type=json' \
-H 'Accept: application/json'
echo 'done'