跳转到内容
返回主页

Wan 2.5 Text-to-Image Preview (International)

wan25_t2i_preview_intl

Wan 2.5 Text-to-Image Preview (International) 是图像生成模型,在总像素约束下支持灵活分辨率,通过国际(新加坡)节点提供服务。

POST /v1/queue/wan25_t2i_preview_intl # 创建任务
GET /v1/queue/wan25_t2i_preview_intl/requests/{request_id}/status # 查询状态
GET /v1/queue/wan25_t2i_preview_intl/requests/{request_id}/response # 获取结果
PUT /v1/queue/wan25_t2i_preview_intl/requests/{request_id}/cancel # 取消任务
Terminal window
curl --location "https://cloud.seaart.ai/model/v1/queue/wan25_t2i_preview_intl" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"prompt": "A red apple on a white table, clean studio lighting, simple background."
}'
prompt string 必填

正向提示词,用于描述期望生成的图像内容、风格和构图

支持中英文;最大长度 2000 个字符,超过部分会自动截断

negative_prompt string

反向提示词,用于描述不希望在图像中出现的内容

支持中英文;最大长度 500 个字符,超出部分将自动截断

size string

输出图像的分辨率,格式为 宽*高

总像素在 1280*12801440*1440 之间,且宽高比范围为 1:44:1

常见宽高比推荐分辨率:1280*12801104*14721472*1104960*16961696*960

默认值:1280*1280

n int

生成图片的数量。该参数直接影响费用,建议在测试阶段设置为 1

范围:1 - 4

默认值:4

seed int

随机数种子。使用相同的 seed 值可使生成内容保持相对稳定。若不提供,算法将自动使用随机种子

范围:0 - 2147483647

prompt_extend bool

是否开启 prompt 智能改写。开启后会使用大模型优化正向提示词,对较短提示词有明显提升效果,但会增加耗时

可选值:truefalse

默认值:true

watermark bool

是否添加水印标识。水印位于图像右下角,文案固定为「AI生成」

可选值:falsetrue

默认值:false

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://cloud.seaart.ai/model/v1/queue/wan25_t2i_preview_intl/requests/mmsu_01hxyz.../response",
"status_url": "https://cloud.seaart.ai/model/v1/queue/wan25_t2i_preview_intl/requests/mmsu_01hxyz.../status",
"cancel_url": "https://cloud.seaart.ai/model/v1/queue/wan25_t2i_preview_intl/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
字段类型说明
request_idstring任务 ID,后续查询、获取结果和取消都使用它
response_urlstring获取最终结果的 URL
status_urlstring查询任务状态的 URL
cancel_urlstring取消任务的 URL
queue_positionint队列位置