1. grok
ai.yijiarj.cn文档
  • 引言
  • 教程文档
    • 一加API充值教程
    • 文本对话模型使用方法
    • openclaw 小龙虾使用我们网站模型教程
    • 程序员写代码必备 claude code使用claude模型连接一加使用教程
    • sora教程文件夹
      • sora2使用教程方法①推荐使用
      • 生成角色:人物、物品一致性教程(实现人物、声音完全一致)
      • 局部修改remix使用教程
      • 分镜模式(故事板)使用教程
      • sora2使用教程方法②cherry studio版(不建议用这个太繁琐,建议用第一个教程)
      • 视频及角色常见违规情况
      • 新系统工作流使用方法
  • API接口文档
    • 接口调用流程
    • 共用接口
      • 通用任务进度查询
      • openai聊天接口
      • form-data文件file格式传输样例
    • 系统接口
      • 查询令牌额度情况
      • 获取模型实时价格
    • sora-2
      • 创建视频-yijia模型
      • 创建视频-非yijia模型
      • 编辑视频-非yijia模型
      • 创建角色
      • 查询角色
      • 删除角色
      • 获取视频文件内容接口-非yijia模型
      • 获取角色信息列表
    • veo
      • 自建分组创建视频
      • 创建veo_3_1-fast视频
      • 查询veo_3_1-fast任务
    • grok
      • grok视频生成
        POST
    • 香蕉
      • 香蕉生图-自建分组
      • nano-banana-2模型
      • 香蕉pro文/图生图(异步)-仅适用yijia模型
      • 香蕉-文/图生图-不适用yijia模型
    • chatgpt
      • gpt文本对话
    • 即梦seedance
      • 创建视频任务
    • gemini聊天接口
      POST
    • chat聊天接口(流式输出)
      POST
    • Sora2图生视频(异步请求)-链接传图片
      POST
    • (即将废弃,请调用链接传图片接口)Sora2图生视频(异步请求)
      POST
  • 其他第三方接入教程
    • 扣子工作流使用一加API官方接口教程
  1. grok

grok视频生成

国内线路(大带宽)
https://api.yijiarj.cn
国内线路(大带宽)
https://api.yijiarj.cn
POST
/v1/chat/completions
10秒20 30秒高清都通过切换模型实现,看模型广场的grok模型
注意 目前发现grok会有个别尺寸的图片会报错"检测到图片尺寸特殊,请重新上传一张常规图片尺寸的图片生成即可" 这种情况你们换下图片就好了 传入请尽量传入常规图片尺寸
每张图片大小不允许超过8MB

请求参数

Header 参数

Body 参数application/json必填

示例

返回响应

🟢200成功
text/event-stream
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.yijiarj.cn/v1/chat/completions' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "grok-imagine-1.0-video-super",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "@图一 变成 @图二"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://xxxxx.png"
          }
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://xxxxxx.png"
          }
        }
      ]
    }
  ],
  "video_config": {
    "video_length": "10",
    "aspect_ratio": "9:16",
    "preset": "fun",
    "resolution_name": "480p"
  }
}'
响应示例响应示例
data: {"id":"chatcmpl-967722ca757a4b5a83c44566","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"<think>\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"正在生成视频中,当前进度1%\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"正在生成视频中,当前进度5%\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"正在生成视频中,当前进度19%\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"正在生成视频中,当前进度32%\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"正在生成视频中,当前进度47%\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"正在生成视频中,当前进度62%\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"正在生成视频中,当前进度95%\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"正在生成视频中,当前进度100%\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"</think>\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{"content":"http://154.9.224.66:8081/v1/files/video/users/d6f48bfd-3655-48ed-bfae-027b449527fe/generated/4dad857b-8799-4c33-af8b-208d9c24c3b2/generated_video.mp4"},"logprobs":null,"finish_reason":null}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}

data: {"id":"56eb096a-4ab8-474f-b55d-7599e9b960ed","object":"chat.completion.chunk","created":1770388526,"model":"grok-imagine-1.0-video","system_fingerprint":"","choices":[],"usage":{"prompt_tokens":13,"completion_tokens":154,"total_tokens":167,"prompt_tokens_details":{"cached_tokens":0,"text_tokens":0,"audio_tokens":0,"image_tokens":0},"completion_tokens_details":{"text_tokens":0,"audio_tokens":0,"reasoning_tokens":0},"input_tokens":0,"output_tokens":0,"input_tokens_details":null,"claude_cache_creation_5_m_tokens":0,"claude_cache_creation_1_h_tokens":0}}

data: [DONE]

修改于 2026-03-26 09:34:29
上一页
查询veo_3_1-fast任务
下一页
香蕉生图-自建分组
Built with