API 详情
北京时间 -- 返回首页 登录

API Details

图文生成

图片自动加文字水印/文案的 PHP 脚本。访问它时通过 URL 参数传入文字、字体、位置等,它会直接输出生成后的图片。

状态
正常 GET
总调用 20
添加时间 2026-06-05
最后更新 2026-06-05

计费信息

Pricing
免费

此接口完全免费

无需账户余额即可调用,仅需有效密钥

请求地址

Endpoint

正式地址

https://www.tiax.pw/API/tuwe.php

示例地址

https://www.tiax.pw/API/tuwe.php?msg=第一行|第二行|第三行&wb=版权所有&dx=42&x=80&y=600&tm=0&apikey=你的密钥

请求参数

Parameters
参数名类型必填说明
imgurl string 可选 指定背景图片路径(随机 data/tuweimg/0-36.png)
msg string 可选 要写到图片上的主要文字
wb string 可选 底部版权文字(xxx版权所有)
zt string 可选 字体编号,对应 data/ttf/数字.ttf
dx string 可选 字体大小(46)
x string 可选 文字起始 X 坐标(90)
y string 可选 文字起始 Y 坐标(700)
tm string 可选 透明度,GD 中 0 不透明,127 全透明
hh string 可选 换行分隔符( `)
wzkd string 可选 自动换行的文字最大宽度( 图片宽度 - 60)
apikey string 可选 你的密钥

在线测试

Tester

返回结果

点击"立即测试"查看返回结果...

调用示例

Code Examples
<?php
$url = 'https://www.tiax.pw/API/tuwe.php';
$params = [
    'imgurl' => 'YOUR_VALUE',
    'msg' => 'YOUR_VALUE',
    'wb' => 'YOUR_VALUE',
    'zt' => 'YOUR_VALUE',
    'dx' => 'YOUR_VALUE',
    'x' => 'YOUR_VALUE',
    'y' => 'YOUR_VALUE',
    'tm' => 'YOUR_VALUE',
    'hh' => 'YOUR_VALUE',
    'wzkd' => 'YOUR_VALUE',
    'apikey' => 'YOUR_VALUE',
];
$url .= '?' . http_build_query($params);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
import requests

url = "https://www.tiax.pw/API/tuwe.php"
params = {
    'imgurl': 'YOUR_VALUE',
    'msg': 'YOUR_VALUE',
    'wb': 'YOUR_VALUE',
    'zt': 'YOUR_VALUE',
    'dx': 'YOUR_VALUE',
    'x': 'YOUR_VALUE',
    'y': 'YOUR_VALUE',
    'tm': 'YOUR_VALUE',
    'hh': 'YOUR_VALUE',
    'wzkd': 'YOUR_VALUE',
    'apikey': 'YOUR_VALUE',
}

response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://www.tiax.pw/API/tuwe.php');
const params = {
    'imgurl': 'YOUR_VALUE',
    'msg': 'YOUR_VALUE',
    'wb': 'YOUR_VALUE',
    'zt': 'YOUR_VALUE',
    'dx': 'YOUR_VALUE',
    'x': 'YOUR_VALUE',
    'y': 'YOUR_VALUE',
    'tm': 'YOUR_VALUE',
    'hh': 'YOUR_VALUE',
    'wzkd': 'YOUR_VALUE',
    'apikey': 'YOUR_VALUE',
};

Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

fetch(url)
    .then(response => response.json())
    .then(data => console.log(data))
    .catch(error => console.error('Error:', error));
curl -X GET "https://www.tiax.pw/API/tuwe.php?imgurl=YOUR_VALUE&msg=YOUR_VALUE&wb=YOUR_VALUE&zt=YOUR_VALUE&dx=YOUR_VALUE&x=YOUR_VALUE&y=YOUR_VALUE&tm=YOUR_VALUE&hh=YOUR_VALUE&wzkd=YOUR_VALUE&apikey=YOUR_VALUE"

状态码说明

Status Codes
200请求成功
403拒绝访问 (缺少密钥或权限不足)
404资源未找到 (检查 URL)
429请求过于频繁 (触发限流)
500服务器内部错误