Hunyuan 图片模型
Hunyuan 图片模型
使用 POST /images 创建 Hunyuan 图片生成任务。示例包含可选的 route 和 route_mode 字段;移除它们即可使用默认可用路由。
使用返回的 ID 检索生成的图片结果。
Hunyuan 图片模型
使用 POST /images 创建 Hunyuan 图片生成任务。示例包含可选的 route 和 route_mode 字段;移除它们即可使用默认可用路由。
curl --request POST "https://api.getopenmodels.com/v1/images" \-H "Content-Type: application/json" \-H "Authorization: Bearer $OM_API_KEY" \-d '{"model": "hy-image-v3.0","route": { "provider": "<provider-for-this-model>" },"route_mode": "balanced","prompt": "A small river flowing","cfg_scale": 0.5,"mode": "std","duration": "5","aspect_ratio": "16:9"}'
使用返回的 ID 检索生成的图片结果。
curl "https://api.getopenmodels.com/v1/images/{id}" \-H "Content-Type: application/json" \-H "Authorization: Bearer $OM_API_KEY"