luma_video_api

视频异步任务

Luma AI API 文生视频,支持上传2张参考图片;可以打造出 Luma 官网同款平台,支持官网所有操作; 兼容 GoAmz; SVIP、SSVIP 分组为快速模式,价格略高,大概40秒出视频,排队优先无水印;VIP、VVIP 分组为慢速模式,价格略低,大概5分钟出视频点击查看接入文档

官 稳 保
¥--已优惠¥--
----
  • 申请赠送05000000 Tokens

    约¥0/ 5百万Tokens

  • 一元试用11000000 Tokens

    约¥1/百万Token

  • 默认2request

    按量计费

· 首次申请送500万Token
  • 使用文档

  • 附件资料

  • 计费明细

模型信息

模型 IDluma_video_api供应商Luma
输入模态未注明输出模态未注明
分类未注明发布时间未注明

调用接口

分组接口渠道方法路径
全部接口查询单个任务(免费本站 AI 中转站GET/luma/generations/{task_id}
全部接口获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回本站 AI 中转站GET/luma/generations/{task_id}/download_video_url
全部接口获取视频(免费本站 AI 中转站GET/luma/v1/task
全部接口提交生成视频任务本站 AI 中转站POST/luma/generations
全部接口扩展视频本站 AI 中转站POST/luma/generations/{task_id}/extend
全部接口批量获取任务(免费本站 AI 中转站POST/luma/tasks
全部接口生成视频 (兼容版,开发接入请勿对接本站 AI 中转站POST/luma/v1/generations

GET /luma/generations/{task_id}

### 查询单个任务(免费
vip 账号的会在 video. download_url 返回 无水印地址,有时可能为空,需要另外从 无水印接口获取
"state": "completed" 枚举值: "pending", "processing", "completed", "failed"

请求与响应结构
{
    "summary": "查询单个任务(免费",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "properties": []
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [
        {
            "in": "path",
            "name": "task_id",
            "schema": {
                "type": "string",
                "description": "任务ID"
            },
            "required": true,
            "description": "任务ID"
        }
    ],
    "description": "### 查询单个任务(免费\nvip 账号的会在 video. download_url 返回 无水印地址,有时可能为空,需要另外从 无水印接口获取\n\"state\": \"completed\" 枚举值: \"pending\", \"processing\", \"completed\", \"failed\""
}

GET /luma/generations/{task_id}/download_video_url

### 获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回
废弃,查询接口有返回
需要在视频任务状态返回完成后调用,否则返回400错误
获取到的视频链接请尽快下载,否则账号轮换后,不可再次获取

请求与响应结构
{
    "summary": "获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回",
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "properties": []
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [
        {
            "in": "path",
            "name": "task_id",
            "schema": {
                "type": "string"
            },
            "required": true,
            "description": ""
        }
    ],
    "description": "### 获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回\n废弃,查询接口有返回\n需要在视频任务状态返回完成后调用,否则返回400错误\n获取到的视频链接请尽快下载,否则账号轮换后,不可再次获取",
    "x-security-schemes": {
        "bearerAuth": {
            "type": "http",
            "scheme": "bearer"
        }
    }
}

GET /luma/v1/task

请求与响应结构
{
    "summary": "获取视频(免费",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "properties": []
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [
        {
            "in": "query",
            "name": "id",
            "schema": {
                "type": "string",
                "example": "2de97e1c-6a60-4770-8418-2d90fb0b2c71"
            },
            "required": false,
            "description": ""
        },
        {
            "in": "query",
            "name": "server_id",
            "schema": {
                "type": "string",
                "example": "af228629-9749-40e6-ae32-84cd03a41010"
            },
            "required": false,
            "description": ""
        }
    ],
    "description": ""
}

POST /luma/generations

请求与响应结构
{
    "summary": "提交生成视频任务",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "properties": []
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [],
    "description": "",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "title": "提交生成视频任务",
                    "$schema": "",
                    "required": [
                        "user_prompt"
                    ],
                    "properties": {
                        "loop": {
                            "type": "boolean",
                            "description": "是否循环 首尾呼应"
                        },
                        "duration": {
                            "type": "string",
                            "description": "时长 5s 或者 10s"
                        },
                        "image_url": {
                            "type": "string",
                            "description": "参考图,支持第三方图片地址、Base64"
                        },
                        "model_name": {
                            "enum": [
                                "ray-v1",
                                "ray-v2",
                                "ray-v3"
                            ],
                            "type": "string"
                        },
                        "resolution": {
                            "type": "string",
                            "description": "720p或者1080p默认720p"
                        },
                        "notify_hook": {
                            "type": "string",
                            "description": "回调地址:"
                        },
                        "user_prompt": {
                            "type": "string",
                            "description": "提示词"
                        },
                        "expand_prompt": {
                            "type": "boolean",
                            "description": "是否开启prompt 优化"
                        },
                        "image_end_url": {
                            "type": "string",
                            "description": "关键帧,支持第三方图片地址、Base64"
                        }
                    },
                    "x-apifox-id": "189360757"
                }
            }
        },
        "required": true
    }
}

POST /luma/generations/{task_id}/extend

### 扩展视频
task id 为需要延长的视频任务id

请求与响应结构
{
    "summary": "扩展视频",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "properties": []
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [
        {
            "in": "path",
            "name": "task_id",
            "schema": {
                "type": "string"
            },
            "required": true,
            "description": ""
        }
    ],
    "description": "### 扩展视频\ntask id 为需要延长的视频任务id",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "title": "扩展视频",
                    "$schema": "",
                    "required": [
                        "user_prompt"
                    ],
                    "properties": {
                        "image_url": {
                            "type": "string",
                            "description": "参考图,支持第三方图片地址、Base64"
                        },
                        "notify_hook": {
                            "type": "string",
                            "description": "回调地址:"
                        },
                        "user_prompt": {
                            "type": "string"
                        },
                        "expand_prompt": {
                            "type": "boolean",
                            "description": "是否开启prompt 优化"
                        },
                        "image_end_url": {
                            "type": "string",
                            "description": "关键帧,支持第三方图片地址、Base64"
                        }
                    },
                    "x-apifox-id": "191475015"
                }
            }
        },
        "required": true
    }
}

POST /luma/tasks

请求与响应结构
{
    "summary": "批量获取任务(免费",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "properties": []
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [],
    "description": "",
    "requestBody": {
        "content": {
            "text/plain": {
                "schema": {
                    "type": "object",
                    "title": "批量获取任务(免费",
                    "$schema": "",
                    "x-apifox-id": "189360758"
                }
            }
        },
        "required": true
    }
}

POST /luma/v1/generations

请求与响应结构
{
    "summary": "生成视频 (兼容版,开发接入请勿对接",
    "responses": {
        "200": {
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "properties": []
                    }
                }
            },
            "description": "成功"
        }
    },
    "parameters": [],
    "description": "",
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "title": "生成视频 (兼容版,开发接入请勿对接",
                    "$schema": "",
                    "required": [
                        "user_prompt",
                        "aspect_ratio",
                        "expand_prompt",
                        "image_url",
                        "image_end_url"
                    ],
                    "properties": {
                        "image_url": {
                            "type": "string"
                        },
                        "user_prompt": {
                            "type": "string"
                        },
                        "aspect_ratio": {
                            "type": "string"
                        },
                        "expand_prompt": {
                            "type": "boolean"
                        },
                        "image_end_url": {
                            "type": "string"
                        }
                    },
                    "x-apifox-id": "220409212"
                }
            }
        },
        "required": true
    }
}

价格

价格组渠道计费项价格单位
default AI 中转站requestCNY 2request

服务级错误码参照(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) 具体错误代码

使用文档下载

luma_video_api
--
今日调用
--
成功率
--
近期调用

推荐API

  • gemini-3.8-flash-thinking-medium

    Gemini 3.8 Flash 是我们最智能的 Flash 模型,专为长远软件工程、自主代理和复杂企业工作流程设计——所有这些都具备 Flash 的速度和成本效益。
  • gemini-3.7-flash-thinking-low

  • gemini-3.8-flash-thinking-low

    Gemini 3.8 Flash 是我们最智能的 Flash 模型,专为长远软件工程、自主代理和复杂企业工作流程设计——所有这些都具备 Flash 的速度和成本效益。
  • gemini-3.7-flash-thinking-medium

  • gemini-3.8-flash-thinking-high

    Gemini 3.8 Flash 是我们最智能的 Flash 模型,专为长远软件工程、自主代理和复杂企业工作流程设计——所有这些都具备 Flash 的速度和成本效益。
  • gemini-3.8-flash

    Gemini 3.8 Flash 是我们最智能的 Flash 模型,专为长远软件工程、自主代理和复杂企业工作流程设计——所有这些都具备 Flash 的速度和成本效益。

API资讯

数 据 驱 动 未 来
Data Drives The Future
数 据 驱 动 未 来
Data Drives The Future