GET
图片壁纸
抽象字
抽象字图片,只支持单字
累计调用 11
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/Painting
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| str | string | 必填 | 单个中文文字 | 好 |
| style | number | 可选 | 可以是1-4,分别为:立体插画风、诗意水墨风、童话爱情风、水晶自由风 | 1 |
| type | string | 可选 | 返回类型 | json |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
响应示例
200 OK
🈚
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/Painting?str=%E5%A5%BD&style=1&type=json"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/Painting?str=%E5%A5%BD&style=1&type=json");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/Painting?str=%E5%A5%BD&style=1&type=json");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/Painting?str=%E5%A5%BD&style=1&type=json", timeout=10)
print(r.json())