全部接口
查询视频进度
Get video generation results
grok 1.5
Generate videos
Reference-to-Video
Image-to-Video
模型信息
| 模型 ID | grok-imagine-video-1.5 | 供应商 | X.AI |
|---|---|---|---|
| 输入模态 | text、image、video、audio | 输出模态 | video |
| 分类 | video | 发布时间 | 2026-08-06 18:14:09 |
调用接口
| 分组 | 接口 | 渠道 | 方法 | 路径 |
|---|---|---|---|---|
| 全部接口 | 查询视频进度 | 本站 AI 中转站 | GET | /v1/videos/{task_id} |
| 全部接口 | Get video generation results | 本站 AI 中转站 | GET | /xai/v1/videos/{request_id} |
| 全部接口 | grok 1.5 | 本站 AI 中转站 | POST | /v1/videos |
| 全部接口 | Generate videos | 本站 AI 中转站 | POST | /xai/v1/videos/generations |
| 全部接口 | Reference-to-Video | 本站 AI 中转站 | POST | /xai/v1/videos/generations |
| 全部接口 | Image-to-Video | 本站 AI 中转站 | POST | /xai/v1/videos/generations |
GET /v1/videos/{task_id}
### 查询视频进度
status :
queued、in_progress、completed、failed
{
"summary": "查询视频进度",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "path",
"name": "task_id",
"schema": {
"type": "string"
},
"required": true,
"description": ""
}
],
"description": "### 查询视频进度\n\n\nstatus :\nqueued、in_progress、completed、failed"
}GET /xai/v1/videos/{request_id}
### Get video generation results
{
"summary": "Get video generation results",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "path",
"name": "request_id",
"schema": {
"type": "string"
},
"required": true,
"description": ""
}
],
"description": "### Get video generation results",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Get video generation results",
"$schema": "",
"required": [
"model",
"prompt",
"reference_images",
"duration",
"aspect_ratio",
"resolution"
],
"properties": {
"model": {
"type": "string"
},
"prompt": {
"type": "string"
},
"duration": {
"type": "integer"
},
"resolution": {
"type": "string"
},
"aspect_ratio": {
"type": "string"
},
"reference_images": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
}
}
},
"x-apifox-id": "498243130"
}
}
},
"required": true
}
}POST /v1/videos
{
"summary": "grok 1.5",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"title": "grok 1.5",
"$schema": "",
"required": [
"model",
"prompt",
"size",
"input_reference"
],
"properties": {
"size": {
"type": "string",
"example": "1280x720"
},
"model": {
"type": "string",
"example": "grok-1.5-video-15s"
},
"prompt": {
"type": "string",
"example": "基于这张图片生成视频"
},
"input_reference": {
"type": "file",
"example": "E:\\\\Downloads\\\\9959c0e0-84a6-46c6-a2d4-5666adfe2bf8.jpg"
}
},
"x-apifox-id": "472416532"
}
}
},
"required": true
}
}POST /xai/v1/videos/generations
### Generate videos
{
"summary": "Generate videos",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"request_id"
],
"properties": {
"request_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Generate videos",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Generate videos",
"$schema": "",
"required": [
"model",
"prompt"
],
"properties": {
"model": {
"type": "string"
},
"prompt": {
"type": "string"
}
},
"x-apifox-id": "498242621"
}
}
},
"required": true
}
}POST /xai/v1/videos/generations
### Reference-to-Video
{
"summary": "Reference-to-Video",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"request_id"
],
"properties": {
"request_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Reference-to-Video",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Reference-to-Video",
"$schema": "",
"required": [
"model",
"prompt",
"reference_images",
"duration",
"aspect_ratio",
"resolution"
],
"properties": {
"model": {
"type": "string"
},
"prompt": {
"type": "string"
},
"duration": {
"type": "integer"
},
"resolution": {
"type": "string"
},
"aspect_ratio": {
"type": "string"
},
"reference_images": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
}
}
},
"x-apifox-id": "498242631"
}
}
},
"required": true
}
}POST /xai/v1/videos/generations
### Image-to-Video
{
"summary": "Image-to-Video",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"request_id"
],
"properties": {
"request_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Image-to-Video",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Image-to-Video",
"$schema": "",
"required": [
"model",
"prompt",
"image"
],
"properties": {
"image": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
}
},
"model": {
"type": "string"
},
"prompt": {
"type": "string"
}
},
"x-apifox-id": "498242632"
}
}
},
"required": true
}
}价格
| 价格组 | 渠道 | 计费项 | 价格 | 单位 |
|---|---|---|---|---|
| default | 本站 AI 中转站 | request | CNY 1 | 次 |
| openai官-优质 | 本站 AI 中转站 | duration | CNY 4 | second |
| origin | 本站 AI 中转站 | duration | CNY 7.3 | second |
| ssvip | 本站 AI 中转站 | duration | CNY 3 | second |
服务级错误码参照(error_code):
| 错误码 | 说明 | |
|---|---|---|
| 221301 | 数据源超时 | |
| 221303 | 认证失败 认证失败,请稍后重试 认证失败,该卡当日连续多次认证不通过被限制校验,次日恢复 |
|
| 221306 | 参数错误 参数错误:姓名格式不正确 参数错误:手机号格式不正确 参数错误:身份证格式不正确 参数错误:银行卡号格式不正确 同一银行卡请求过于频繁 |
系统级错误码参照:
| 错误码 | 说明 | |
|---|---|---|
| 10001 | 错误的请求KEY | |
| 10002 | 该KEY无请求权限 | |
| 10003 | KEY过期 | |
| 10004 | 错误的OPENID | |
| 10005 | 应用未审核超时,请提交认证 | |
| 10007 | 未知的请求源 | |
| 10008 | 被禁止的IP | |
| 10009 | 被禁止的KEY | |
| 10011 | 当前IP请求超过限制 | |
| 10012 | 请求超过次数限制 | |
| 10013 | 测试KEY超过请求限制 | |
| 10014 | 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) | |
| 10020 | 接口维护 | |
| 10021 | 接口停用 |
错误码格式说明(示例:200201):
| 2 | 002 | 01 | |
|---|---|---|---|
| 服务级错误(1为系统级错误) | 服务模块代码(即数据ID) | 具体错误代码 |
使用文档下载
| 附件标题/下载链接 | 更新时间 | |
|---|---|---|
| 接口资料:GET /v1/videos/{task_id}(查询视频进度) | 2026-09-09 15:29:05 | |
| 接口资料:GET /xai/v1/videos/{request_id}(Get video generation results) | 2026-09-09 15:29:05 | |
| 接口资料:POST /v1/videos(grok 1.5) | 2026-09-09 15:29:05 | |
| 接口资料:POST /xai/v1/videos/generations(Generate videos) | 2026-09-09 15:29:05 | |
| 接口资料:POST /xai/v1/videos/generations(Reference-to-Video) | 2026-09-09 15:29:05 | |
| 接口资料:POST /xai/v1/videos/generations(Image-to-Video) | 2026-09-09 15:29:05 | |
| 价格分组:default(CNY 1/次) | 2026-09-09 15:29:05 | |
| 价格分组:openai官-优质(CNY 4/second) | 2026-09-09 15:29:05 | |
| 价格分组:origin(CNY 7.3/second) | 2026-09-09 15:29:05 | |
| 价格分组:ssvip(CNY 3/second) | 2026-09-09 15:29:05 | |
| 阶梯与倍率计费资料 | 2026-09-09 15:29:05 | |
| 供应商令牌分组折扣资料 | 2026-09-09 15:29:05 |
常见问题:
| 标题 | 更新时间 | |
|---|---|---|
| Token 是什么?中文、英文与上下文窗口如何计算 | 2026-09-18 19:52:51 | |
| LLM API 费用如何计算?如何选择合适的模型 | 2026-09-18 19:52:54 | |
| Word-to-Token 转换与用量估算指南 | 2026-09-19 00:49:28 |
gemini-3.8-flash-thinking-medium
gemini-3.8-flash-thinking-high