Skip to Content

Images

文生图(text-to-image)端点,按张计费。

POST https://api.ttttt.ai/v1/images/generations Authorization: Bearer owo-... Content-Type: application/json

协议对齐 OpenAI 官方 Images 

请求

curl https://api.ttttt.ai/v1/images/generations \ -H "Authorization: Bearer owo-..." \ -H "Content-Type: application/json" \ -d '{ "model": "dall-e-3", "prompt": "一只在天台上看上海日落的橘猫,水彩风格", "n": 1, "size": "1024x1024", "quality": "standard" }'
字段说明
model必填
prompt必填
n张数;不同模型上限不同
size例如 1024x1024 / 1792x1024 / 1024x1792
qualitystandard / hd(部分模型)
stylevivid / natural(部分模型)
response_formaturl(默认)或 b64_json

响应

{ "created": 1718640000, "data": [ { "url": "https://....", "revised_prompt": "..." } ] }

url 形式的图片有时效(通常 1 小时左右),需要持久化的话请下载到自己的存储桶。

计费

按张计价:

单次扣费 = imagePerImage × n

size / quality 升档后单价会更高(具体单价以模型清单为准)。

测试期注意

当前 ttttt.ai 测试阶段公开 gpt-5.5 / gpt-5.4 两款文本模型,文生图模型尚未开放公共测试。协议层已就绪,模型按计划逐步上架。

Last updated on