GET
实用工具
图文
低级图文,请严格按照标准来
累计调用 7
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/ImageFillstr
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| text | string | 必填 | 文本内容 | 暂无 |
| cg | string | 可选 | 不为空则在开头增加插图 | 暂无 |
| url | string | 可选 | cg不为空时可以是http链接,也可以是base64:// | 暂无 |
| fontSize | number | 必填 | 文本大小,默认12,取值1-80 | 12 |
| fontColor | string | 可选 | 文本颜色,默认黑色,可以是rgb(),rgba(),英文单词,16进制等 | 暂无 |
| backColor | string | 可选 | 背景颜色,同fontColor | 暂无 |
| fontKerning | number | 可选 | 字体间距,有默认值,不好看可以适当加一点 | 暂无 |
| angle | number | 可选 | 字体X轴倾斜角度,-25~25之间,默认为0 | 暂无 |
| stroke | string | 可选 | 是否启用边框,默认不启用 | 暂无 |
| strokeWidth | number | 可选 | 边框宽度,默认1,取值1-5 | 暂无 |
| strokeColor | string | 可选 | 边框颜色,参考fontColor,默认为rgba(176, 176, 176, 0.6) | 暂无 |
| ratio | number | 可选 | 插图的缩放比率,默认1,取值0-1之间 | 暂无 |
| line | string | 可选 | 换行符默认\n | \n |
响应示例
200 OK
(该接口直接返回二进制图片,Content-Type: image/png; charset=utf-8。用 <img src="https://itapi.top/api/ImageFillstr?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC&url=https%3A%2F%2Fitapi.top%2Fog.png&fontSize=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC&fontColor=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC"> 直接展示即可;示例不粘贴二进制内容)
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/ImageFillstr?text=%E6%9A%82%E6%97%A0&cg=%E6%9A%82%E6%97%A0&url=%E6%9A%82%E6%97%A0&fontSize=12&fontColor=%E6%9A%82%E6%97%A0&backColor=%E6%9A%82%E6%97%A0&fontKerning=%E6%9A%82%E6%97%A0&angle=%E6%9A%82%E6%97%A0&stroke=%E6%9A%82%E6%97%A0&strokeWidth=%E6%9A%82%E6%97%A0&strokeColor=%E6%9A%82%E6%97%A0&ratio=%E6%9A%82%E6%97%A0&line=%5Cn"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/ImageFillstr?text=%E6%9A%82%E6%97%A0&cg=%E6%9A%82%E6%97%A0&url=%E6%9A%82%E6%97%A0&fontSize=12&fontColor=%E6%9A%82%E6%97%A0&backColor=%E6%9A%82%E6%97%A0&fontKerning=%E6%9A%82%E6%97%A0&angle=%E6%9A%82%E6%97%A0&stroke=%E6%9A%82%E6%97%A0&strokeWidth=%E6%9A%82%E6%97%A0&strokeColor=%E6%9A%82%E6%97%A0&ratio=%E6%9A%82%E6%97%A0&line=%5Cn");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/ImageFillstr?text=%E6%9A%82%E6%97%A0&cg=%E6%9A%82%E6%97%A0&url=%E6%9A%82%E6%97%A0&fontSize=12&fontColor=%E6%9A%82%E6%97%A0&backColor=%E6%9A%82%E6%97%A0&fontKerning=%E6%9A%82%E6%97%A0&angle=%E6%9A%82%E6%97%A0&stroke=%E6%9A%82%E6%97%A0&strokeWidth=%E6%9A%82%E6%97%A0&strokeColor=%E6%9A%82%E6%97%A0&ratio=%E6%9A%82%E6%97%A0&line=%5Cn");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/ImageFillstr?text=%E6%9A%82%E6%97%A0&cg=%E6%9A%82%E6%97%A0&url=%E6%9A%82%E6%97%A0&fontSize=12&fontColor=%E6%9A%82%E6%97%A0&backColor=%E6%9A%82%E6%97%A0&fontKerning=%E6%9A%82%E6%97%A0&angle=%E6%9A%82%E6%97%A0&stroke=%E6%9A%82%E6%97%A0&strokeWidth=%E6%9A%82%E6%97%A0&strokeColor=%E6%9A%82%E6%97%A0&ratio=%E6%9A%82%E6%97%A0&line=%5Cn", timeout=10)
print(r.json())