返回 | 接口 / AI 对话 / AI绘图
GET AI 对话

AI绘图

AI绘图

累计调用 10 今日调用 0

更新于 2026-10-16

调用地址

GET
https://itapi.top/api/AiDrawImage

请求参数

参数名类型必填说明示例
prompt string 必填 提示词 猫娘
style number 可选 类型,1.现代都市 2. 古风武侠 3. 水墨国风 4. 梦幻异世 5. 现代日漫 100. 智能匹配 100
size number 可选 图片大小,1. 1080*1080 2. 1080*1512 3. 1080*1920 2
llm boolean 可选 是否需要智能补充 true
type string 可选 返回格式 json

返回字段

字段名类型说明
code number 状态码
message string 返回提示
data array 返回数据
data.*.width number 图片宽度
data.*.height number 图片高度
data.*.url string 图片链接

响应示例

200 OK
{
    "code": 1,
    "message": "http://p3-reading-sign.fqnovelpic.com/tos-cn-i-1yzifmftcy/0f35a58ede2f4a059dfc468ad6cdff66~tplv-snk2bdmkp8-image.jpeg?lk3s=95540705&x-expires=1754324333&x-signature=ijczgufDMEEVrZsg2TICIBfp7Mw%3D",
    "data": [
        {
            "width": "1080",
            "height": "1512",
            "url": "http://p3-reading-sign.fqnovelpic.com/tos-cn-i-1yzifmftcy/0f35a58ede2f4a059dfc468ad6cdff66~tplv-snk2bdmkp8-image.jpeg?lk3s=95540705&x-expires=1754324333&x-signature=ijczgufDMEEVrZsg2TICIBfp7Mw%3D"
        },
        {
            "width": "1080",
            "height": "1512",
            "url": "http://p3-reading-sign.fqnovelpic.com/tos-cn-i-1yzifmftcy/0b04790d7bc64f57867ce2565c4dead1~tplv-snk2bdmkp8-image.jpeg?lk3s=95540705&x-expires=1754329942&x-signature=60%2BSH91mEG%2BEqZzrxD0DoQWFEks%3D"
        },
        {
            "width": "1080",
            "height": "1512",
            "url": "http://p3-reading-sign.fqnovelpic.com/tos-cn-i-1yzifmftcy/ff562c89718e462cb4340338e1e73d9e~tplv-snk2bdmkp8-image.jpeg?lk3s=95540705&x-expires=1754323507&x-signature=tq%2BymZecHIhkgK%2FJ2KS53OurTdM%3D"
        },
        {
            "width": "1080",
            "heig

在线测试

代码示例

cURL · GET
curl "https://itapi.top/api/AiDrawImage?prompt=%E7%8C%AB%E5%A8%98&style=100&size=2&llm=true&type=json"
PHP
<?php
$res  = file_get_contents("https://itapi.top/api/AiDrawImage?prompt=%E7%8C%AB%E5%A8%98&style=100&size=2&llm=true&type=json");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res  = await fetch("https://itapi.top/api/AiDrawImage?prompt=%E7%8C%AB%E5%A8%98&style=100&size=2&llm=true&type=json");
const json = await res.json();
console.log(json);
Python
import requests

r = requests.get("https://itapi.top/api/AiDrawImage?prompt=%E7%8C%AB%E5%A8%98&style=100&size=2&llm=true&type=json", timeout=10)
print(r.json())
返回接口列表