GET
AI 对话
AI绘图 168版
又一个AI绘图
累计调用 12
今日调用 1
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/Play168
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| prompt | string | 必填 | 绘图的提示词 | 猫娘 |
| size | string | 可选 | 图片比例 | 1:1 |
| style | number | 可选 | 图片风格 | 8 |
| method | string | 可选 | 默认是绘图,可用于查询,参数为Query时 | Draw |
| id | string | 必填 | 查询时必填 | 128bc82fea2b4d6498645c5aa6e9a645 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
| data | object | 返回数据 |
| data.id | string | 任务id |
| data.url | string | 图片链接 |
| data.prompt | string | 提示词 |
| data.size | string | 图片比例 |
| data.style | number | 图片风格 |
| data.query | number | 所耗时间单位:秒 |
响应示例
200 OK
{
"code": 1,
"message": "https://aires.168play.cn/draw/20250724/78d19551-ee21-4c52-96b0-e9363d56abf0.jpg?x-tos-process=image/watermark,image_bG9nL1dhdGVybWFyay5wbmc=",
"data": {
"id": "128bc82fea2b4d6498645c5aa6e9a645",
"url": "https://aires.168play.cn/draw/20250724/78d19551-ee21-4c52-96b0-e9363d56abf0.jpg?x-tos-process=image/watermark,image_bG9nL1dhdGVybWFyay5wbmc=",
"prompt": "猫娘",
"size": "1:1",
"style": 8,
"query": 9
}
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/Play168?prompt=%E7%8C%AB%E5%A8%98&size=1%3A1&style=8&method=Draw&id=128bc82fea2b4d6498645c5aa6e9a645"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/Play168?prompt=%E7%8C%AB%E5%A8%98&size=1%3A1&style=8&method=Draw&id=128bc82fea2b4d6498645c5aa6e9a645");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/Play168?prompt=%E7%8C%AB%E5%A8%98&size=1%3A1&style=8&method=Draw&id=128bc82fea2b4d6498645c5aa6e9a645");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/Play168?prompt=%E7%8C%AB%E5%A8%98&size=1%3A1&style=8&method=Draw&id=128bc82fea2b4d6498645c5aa6e9a645", timeout=10)
print(r.json())