viduq2-fast 完整解析(Markdown)

返回模型解析页

viduq2-fast API 模型解析指南

快速结论

  • Supports prompt-based text-to-image workflows for marketing and creative assets.
  • Supports reference-guided generation for stronger style consistency.
  • Stabilize parameters in this guide first, then move into production API.

核心能力

  • High-quality generation:Generate production-ready visual assets via a unified API.
  • Reference consistency:Use references to stabilize style and composition.
  • Parameter tuning:Tune ratio/count/sampling for quality and cost balance.

适用场景

  • When generating marketing, e-commerce, and social visual assets quickly.
  • When reference-guided consistency is required.

不适用场景

  • For long-form video generation workflows.
  • For complex multi-turn reasoning conversations.

运行特性

  • Uses unified image generation endpoints with task-style responses.
  • Poll task status and fetch result URLs after completion.

最小请求示例

{
  "model": "viduq2-fast",
  "prompt": "Premium product poster, soft light, realistic texture, minimal background",
  "size": "1:1"
}

最小响应示例

{
  "id": "task_img_xxxxxxxx",
  "object": "generation.task",
  "model": "viduq2-fast",
  "status": "queued",
  "progress": 0
}

关键参数

参数类型必填默认值范围说明
modelstringviduq2-fast-Exact model identifier from ToAPIs.
promptstring--Primary image instruction prompt.
sizestring1:1-Output aspect ratio, model-dependent.
ninteger1-Number of generated images per request.
reference_imagesfile[]--Reference images for style consistency.

常见错误

HTTPCode触发条件修复建议重试策略
400invalid_request_errorMissing or invalid payload fields.Validate model/prompt/size payload fields.Retry only after payload fix.
401authentication_errorMissing or invalid API key.Verify Authorization header and key scope.Retry after authentication fix.

FAQ

  1. What is viduq2-fast best for?
    Best for high-frequency creative generation and reference-guided consistency workflows.
  2. 图像视频模型报错:invalid apitype: -1
    这类错误通常说明接口走错了。图像和视频模型一般不走 chat 接口,而是按对应文档发起 HTTP 任务请求,并通过任务状态接口轮询结果。排查时建议先看用户的实际请求代码、请求地址和请求体。
  3. 用户进行生成图片/视频的任务时出现任务失败,但是扣款
    先让用户提供任务日志或截图,重点看是否出现了输入或输出 token 统计。如果有这类 token 记录,大概率是用户把图片/视频模型走成了 chat 接口;这不是正确用法。图片和视频模型通常是异步任务接口,需要通过 HTTP 请求先提交任务,再拿到任务 ID 轮询状态,详细以对应文档为准。

相关 API