1. vidu
梧柏API使用文档
WHBAI · Vidu
  • WHBAI · Google Gemini 原生 (v1alpha)
  • WHBAI · Google Gemini 原生
  • WHBAI · Ideogram
  • WHBAI · Ideogram V3
  • WHBAI · Midjourney
  • WHBAI · Jimeng
  • WHBAI · Kling
  • WHBAI · Luma
  • WHBAI · Luma V1
  • WHBAI · Omni 视频
  • WHBAI · Pixverse
  • WHBAI · Runway
  • WHBAI · Sora2
  • WHBAI · 统一视频 VEO
  • WHBAI · Vidu
  • WHBAI · 豆包 Volc
  • WHBAI · Suno
  • WHBAI · Playground
  • WHBAI · 账号与令牌
  • WHBAI · 阿里 Pix
  • WHBAI · 阿里百炼
  • WHBAI · 私域人像
  • WHBAI · Fal.ai
  • WHBAI · Replicate
  • WHBAI · 腾讯云 VOD
  • WHBAI · MiniMax
  • WHBAI · 支持模型列表
  • WHBAI · Grok Imagine
  • WHBAI · Seedance 2.0
  • WHBAI · TypeSafe
  • WHBAI · OpenAI 兼容
  • Vidu
    • 语音合成 TTS
      POST
    • 文生视频
      POST
    • 图生视频
      POST
    • 首尾帧生视频
      POST
    • 参考生视频
      POST
    • 参考生图
      POST
    • 文生音频
      POST
    • 查询任务
      GET
  • vidu
    • 创建视频
      POST
    • 查询任务
      GET
  • 数据模型
    • ViduSampleRequest
    • PostEntV2Text2videoRequest
    • PostEntV2Img2videoRequest
    • PostEntV2StartEnd2videoRequest
    • PostEntV2Reference2videoRequest
    • PostEntV2Reference2imageRequest
    • PostEntV2Text2audioRequest
    • NewApiError
  1. vidu

查询任务

GET
/vidu-native/video/generations/{task_id}
给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成

网站中的模型与调用示例#

查询任务#

给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成

请求参数#

{
  "contentType": "multipart/form-data",
  "properties": {
    "messages": {
      "description": "至今为止对话所包含的消息列表。Python 代码示例。",
      "items": {
        "properties": {
          "content": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array",
      "x-i18n": {
        "en-US": {
          "description": "list of messages in the conversation so far. Python code example."
        }
      }
    },
    "model": {
      "description": "枚举值:\nveo2\nveo2-fast\nveo2-fast-frames\nveo2-fast-components\nveo2-pro\nveo3\nveo3-fast\nveo3-pro\nveo3-pro-frames",
      "type": "string",
      "x-i18n": {
        "en-US": {
          "description": "Enum:\nveo2\nveo2-fast\nveo2-fast-frames\nveo2-fast-components\nveo2-pro\nveo3\nveo3-fast\nveo3-pro\nveo3-pro-frames"
        }
      }
    },
    "stream": {
      "description": "默认为 false 如果设置,则像在 ChatGPT 中一样会发送部分消息增量。标记将以仅数据的服务器发送事件的形式发送,这些事件在可用时,并在 data: [DONE] 消息终止流。Python 代码示例。",
      "type": "boolean",
      "x-i18n": {
        "en-US": {
          "description": "defaults to false if set, sends partial message deltas like ChatGPT. tokens are sent as data-only server-sent events,as they become available; stream ends with data: [DONE]. Python code example."
        }
      }
    }
  },
  "required": [
    "model",
    "messages"
  ]
}

响应示例 · 成功示例#

{
  "enhanced_prompt": "```\nA surreal and whimsical digital painting of a majestic brown cow with large, feathered wings soaring gracefully through a vibrant blue sky. The cow has a joyful expression, its tail streaming behind it as it flies among fluffy white clouds. Below, a patchwork of green farmland stretches into the distance, with tiny farm buildings and a group of astonished farmers looking up in amazement. The scene is bathed in warm golden sunlight, creating a dreamlike and magical atmosphere. Art style inspired by fantasy illustrations with soft brushstrokes and rich, saturated colors.\n```",
  "id": "033fa60e-f37c-4ff6-a44d-5585ffea938d",
  "status": "pending",
  "status_update_time": 1750323167003,
  "video_url": null
}

响应示例 · 成功示例#

{
  "asset_id": "393ae1ec-1dc7-4f26-bb53-afe361bc3b3a",
  "completed_at": 1764522552,
  "error": "",
  "id": "grok:299604b7-c5ea-47b5-bc64-c06f300f0d27",
  "mode": "text",
  "model": "grok-3",
  "post_id": "393ae1ec-1dc7-4f26-bb53-afe361bc3b3a",
  "progress": 100,
  "prompt": "cat fish  --mode=custom",
  "ratio": "3:2",
  "status": "completed",
  "status_update_time": 1764522552,
  "thumbnail_file_id": "f4fd6fe4-8091-4528-be32-335f4fc9af65",
  "thumbnail_url": "https://soruxgpt-saas-yimeng.soruxgpt.com/file_download/f4fd6fe4-8091-4528-be32-335f4fc9af65.jpg",
  "trace_id": "4cc3a75aa6d6a0788f86195e0cbad44e",
  "type": "create",
  "upscale_on_complete": false,
  "upscaled": false,
  "video_file_id": "ca10efbb-ae64-426e-99f0-f365bc3cd941",
  "video_id": "393ae1ec-1dc7-4f26-bb53-afe361bc3b3a",
  "video_url": "https://soruxgpt-saas-yimeng.soruxgpt.com/file_download/ca10efbb-ae64-426e-99f0-f365bc3cd941.mp4"
}

请求参数

Authorization
Bearer Token
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
or
Path 参数

Header 参数

Body 参数multipart/form-data

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/vidu-native/video/generations/' \
--header 'Accept: application/json' \
--header 'X-Forwarded-Host: localhost:5173' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "id": "033fa60e-f37c-4ff6-a44d-5585ffea938d",
    "status": "pending",
    "enhanced_prompt": "```\nA surreal and whimsical digital painting of a majestic brown cow with large, feathered wings soaring gracefully through a vibrant blue sky. The cow has a joyful expression, its tail streaming behind it as it flies among fluffy white clouds. Below, a patchwork of green farmland stretches into the distance, with tiny farm buildings and a group of astonished farmers looking up in amazement. The scene is bathed in warm golden sunlight, creating a dreamlike and magical atmosphere. Art style inspired by fantasy illustrations with soft brushstrokes and rich, saturated colors.\n```",
    "status_update_time": 1750323167003
}
🟠400请求有误
🟠401没有权限
修改于 2026-10-24 18:33:24
上一页
创建视频
下一页
ViduSampleRequest
Built with