1. Grok
梧柏API使用文档
WHBAI · Grok Imagine
  • 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 兼容
  • Grok
    • openai 查询任务
      GET
    • 创建视频
      POST
    • 编辑视频
      POST
  • grok
    • openai 创建视频,图生
      POST
  • 数据模型
    • GetV1VideosIdResponse
    • PostV1VideosGenerationsRequest
    • PostV1VideosEditsRequest
    • NewApiError
  1. Grok

编辑视频

POST
/v1/videos/edits
Grok Imagine 视频编辑(POST /v1/videos/edits)。仅 grok-imagine-video 系列支持。
提交后通过 GET /v1/videos/{id} 轮询。

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

编辑视频#

请求参数#

{
  "contentType": "application/json",
  "properties": {
    "aspect_ratio": {
      "description": "(\"1:1\" | \"16:9\" | \"9:16\" )",
      "type": "string"
    },
    "model": {
      "description": "grok-imagine-video",
      "type": "string"
    },
    "prompt": {
      "description": "提示词",
      "type": "string",
      "x-i18n": {
        "en-US": {
          "description": "Prompt"
        }
      }
    },
    "resolution": {
      "description": "(\"480p\" | \"720p\")",
      "type": "string"
    },
    "video": {
      "properties": {
        "url": {
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    }
  },
  "required": [
    "model",
    "prompt",
    "resolution",
    "aspect_ratio",
    "video"
  ]
}

响应示例 · 示例 1#

"{\r\n    \"model\": \"grok-imagine-video\",\r\n    \"prompt\": \"Give the woman a silver necklace\",\r\n    \"video\": {\r\n        \"url\": \"https://imageproxy.zhongzhuan.chat/api/proxy/image/5dada4bd5c095d1062b79582a51481bf.mp4\"\r\n    },\r\n    \"aspect_ratio\": \"16:9\",\r\n    \"resolution\": \"480p\",\r\n}"

请求参数

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

Body 参数application/json必填

示例
{
    "model": "string",
    "prompt": "string",
    "resolution": "string",
    "aspect_ratio": "string",
    "video": {
        "url": "string"
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/v1/videos/edits' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "model": "string",
    "prompt": "string",
    "resolution": "string",
    "aspect_ratio": "string",
    "video": {
        "url": "string"
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "model": "grok-imagine-video",
    "prompt": "Give the woman a silver necklace",
    "video": {
        "url": "https://imageproxy.zhongzhuan.chat/api/proxy/image/5dada4bd5c095d1062b79582a51481bf.mp4"
    },
    "aspect_ratio": "16:9",
    "resolution": "480p"
}
🟠400请求有误
🟠401没有权限
修改于 2026-10-24 18:33:06
上一页
创建视频
下一页
openai 创建视频,图生
Built with