Appearance
🎬 视频模型 pixverse
- 2025.01.06 本站已经支持 视频模型
pixverse
- 支持
文生视频
图生视频
- 计费是按次数,一次一个视频 涉及到版本、时长、模式、像素
- 如何使用 访问 https://pixverse.ddaiai.com 看下面的
在线测试
在线测试
1.访问 https://pixverse.ddaiai.com (如果被墙了,换下二级域名前缀 suibian
)
2.如果发现被墙了 可以自己换地址 https://suibian.ddaiai.com
把 suibian
换其他的 如 https://2025.ddaiai.com
都能访问
在线测试
- 打开 https://pixverse.ddaiai.com
- 下图相应的地方设置
- OpenAi 接口地址:https://api.openai-hk.com
- OpenAi KEY: hk-你的 apiKey
- 得到效果
计费
- 1.以 v3.5 360p 时长 5s 模式 normal 为基数
- 2.v2.5 是 0.5 倍
- 3.时长 8s 是 2 倍
- 4.像素质量 540P 1.5、 倍 720P 2 倍 、1080P 4 倍
- 5.模式 performance 2 倍
- 6.倍数是相乘的 比如 720P 时长 8s 那就是 2*2 是 4 倍,如果再加 performance 就是 8 倍
Pixverse API
- 1.生成任务
- 2.查询任务状态
1.生成任务
shell
curl --request POST \
--url https://api.openai-hk.com/pixverse/generate \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "火气",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228
}'
curl --request POST \
--url https://api.openai-hk.com/pixverse/generate \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "火气",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228
}'
请求体
json
{
"prompt": "火气",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228
//"img_url":"https://www.openai-hk.com/res/img/open.png"
//"frame":["https://media.pixverse.ai/upload%2F880f121b-4036-4ff5-a153-58aff9417d05.jpg","https://media.pixverse.ai/upload%2Fd1c8f8b5-6f6f-42bc-a954-11a7582e63d0.jpg"],
//"extend": 1,
//"original_video_id": 314958906984512,
//"style":"cyberpunk",
//"template_id": 313359209531840,
//"asset_id": 315445121042560,
}
{
"prompt": "火气",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228
//"img_url":"https://www.openai-hk.com/res/img/open.png"
//"frame":["https://media.pixverse.ai/upload%2F880f121b-4036-4ff5-a153-58aff9417d05.jpg","https://media.pixverse.ai/upload%2Fd1c8f8b5-6f6f-42bc-a954-11a7582e63d0.jpg"],
//"extend": 1,
//"original_video_id": 314958906984512,
//"style":"cyberpunk",
//"template_id": 313359209531840,
//"asset_id": 315445121042560,
}
关键字段说明
字段 | 类型 | 说明 |
---|---|---|
prompt | string | 生成视频的提示词 |
model | string | 模型支持 v3 v3.5 v2.5 |
quality | string | 模式支持 360p 480p 720p 1080p |
duration | number | 视频时长 5 8 |
aspect_ratio | string | 视频宽高比 |
motion_mode | string | 视频运动模式 normal performance |
seed | number | 随机种子 |
img_url | string | 图片地址 支持 url 和 base64 |
frame | string[] | 视频帧图片地址 支持 url 和 base64 必须是 2 张图 |
extend | number | 扩展时长 0 不扩展 1 扩展 |
original_video_id | number | 原始视频 id |
style | string | 风格 可选 cyberpunk anime comic clay 3d_animation |
template_id | number | 模版 id 模版参考 ID |
asset_id | number | 自创建角色 id |
返回体 得到 video_id
json
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"video_id": 314985220084864
}
}
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"video_id": 314985220084864
}
}
2.查询任务
返回体
json
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"video_id": 315326452915648,
"video_status": 1,
"account_id": 314797200646848,
"created_at": "2025-01-05T15:19:09Z",
"first_frame": "https://media.pixverse.ai/pixverse%2Fjpg%2Fmedia%2Fa056c76c-48ab-4cca-a4fd-90e01e2b37ad.jpg",
"output_width": 640,
"output_height": 352,
"original_video_id": 0,
"upscaled": 0,
"prompt": "火气",
"model": "v3.5",
"negative_prompt": "",
"quality": "360p",
"motion_mode": "normal",
"asset_id": 0,
"auto_character_prompt": 0,
"seed": 648043228,
"likes": 0,
"model_name": "",
"queue_data": {
"queue_time": 1,
"queue_count": 0
},
"video_duration": 5,
"last_frame": "",
"extended": 0,
"lip_sync": {},
"url": "https://media.pixverse.ai/pixverse%2Fmp4%2Fmedia%2Fweb%2Ff890a133-4dde-4876-aa9f-0b236505db98_seed648043228.mp4",
"img_id": 0,
"img_url": "",
"img_path": "",
"duration": 5,
"motion_brush": "",
"asset_name": "",
"asset_img_url": "",
"remove_watermark": 0,
"nick_name": "nickAZJa",
"avatar": "https://lh3.googleusercontent.com/a/ACg8ocKRwvgEzTByyj0mloUyXJMouTPAPGZwui_EyOAlxmgYAaiufw=s96-c",
"aspect_ratio": "16:9",
"camera_movement": "",
"relation_type": 0,
"style": "",
"template_id": 0,
"template_name": "",
"template_thumbnail_url": "",
"template_thumbnail_video_url": "",
"template_i18n_json": "",
"workflow_tag": "",
"customer_paths": null,
"platform": "web"
}
}
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"video_id": 315326452915648,
"video_status": 1,
"account_id": 314797200646848,
"created_at": "2025-01-05T15:19:09Z",
"first_frame": "https://media.pixverse.ai/pixverse%2Fjpg%2Fmedia%2Fa056c76c-48ab-4cca-a4fd-90e01e2b37ad.jpg",
"output_width": 640,
"output_height": 352,
"original_video_id": 0,
"upscaled": 0,
"prompt": "火气",
"model": "v3.5",
"negative_prompt": "",
"quality": "360p",
"motion_mode": "normal",
"asset_id": 0,
"auto_character_prompt": 0,
"seed": 648043228,
"likes": 0,
"model_name": "",
"queue_data": {
"queue_time": 1,
"queue_count": 0
},
"video_duration": 5,
"last_frame": "",
"extended": 0,
"lip_sync": {},
"url": "https://media.pixverse.ai/pixverse%2Fmp4%2Fmedia%2Fweb%2Ff890a133-4dde-4876-aa9f-0b236505db98_seed648043228.mp4",
"img_id": 0,
"img_url": "",
"img_path": "",
"duration": 5,
"motion_brush": "",
"asset_name": "",
"asset_img_url": "",
"remove_watermark": 0,
"nick_name": "nickAZJa",
"avatar": "https://lh3.googleusercontent.com/a/ACg8ocKRwvgEzTByyj0mloUyXJMouTPAPGZwui_EyOAlxmgYAaiufw=s96-c",
"aspect_ratio": "16:9",
"camera_movement": "",
"relation_type": 0,
"style": "",
"template_id": 0,
"template_name": "",
"template_thumbnail_url": "",
"template_thumbnail_video_url": "",
"template_i18n_json": "",
"workflow_tag": "",
"customer_paths": null,
"platform": "web"
}
}
关键字段说明
字段 | 类型 | 说明 |
---|---|---|
video_id | number | 视频 id 查询、扩展都用这个 |
url | string | 视频链接 |
first_frame | string | 封面 |
video_status | number | 状态 1 完成成功 5 已提交 8 生成中 |
3.创建角色
- 计费 100 积分
shell
curl --request POST \
--url https://api.openai-hk.com/pixverse/character \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data ' {
"images": ["https://media.pixverse.ai/upload/880f121b-4036-4ff5-a153-58aff9417d05.jpg"]
}'
curl --request POST \
--url https://api.openai-hk.com/pixverse/character \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data ' {
"images": ["https://media.pixverse.ai/upload/880f121b-4036-4ff5-a153-58aff9417d05.jpg"]
}'
请求体
json
{
"images": [
"https://media.pixverse.ai/upload/880f121b-4036-4ff5-a153-58aff9417d05.jpg"
]
}
{
"images": [
"https://media.pixverse.ai/upload/880f121b-4036-4ff5-a153-58aff9417d05.jpg"
]
}
返回体 得到 AssetId
json
{
"Resp": {
"AssetId": 315472036507328
},
"ErrCode": 0,
"ErrMsg": "Success"
}
{
"Resp": {
"AssetId": 315472036507328
},
"ErrCode": 0,
"ErrMsg": "Success"
}
应用场景
场景 1: 文生视频
json
{
"prompt": "牛鬼蛇神",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228
}
{
"prompt": "牛鬼蛇神",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228
}
场景 2: 图生视频
json
{
"prompt": "颤抖",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228,
"img_url": "https://www.openai-hk.com/res/img/open.png"
}
{
"prompt": "颤抖",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228,
"img_url": "https://www.openai-hk.com/res/img/open.png"
}
场景 3: Transition 前后帧
json
{
"prompt": "渐变",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"frame": [
"https://media.pixverse.ai/upload%2F880f121b-4036-4ff5-a153-58aff9417d05.jpg",
"https://media.pixverse.ai/upload%2Fd1c8f8b5-6f6f-42bc-a954-11a7582e63d0.jpg"
],
"seed": 739052608
}
{
"prompt": "渐变",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"frame": [
"https://media.pixverse.ai/upload%2F880f121b-4036-4ff5-a153-58aff9417d05.jpg",
"https://media.pixverse.ai/upload%2Fd1c8f8b5-6f6f-42bc-a954-11a7582e63d0.jpg"
],
"seed": 739052608
}
场景 4: Extend 扩展
json
{
"prompt": "牛奶",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"motion_mode": "normal",
"seed": 622979623,
"platform": "web",
"extend": 1,
"original_video_id": 314958906984512
}
{
"prompt": "牛奶",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"motion_mode": "normal",
"seed": 622979623,
"platform": "web",
"extend": 1,
"original_video_id": 314958906984512
}
场景 5: Effetc 模版特效
- 模版 id 模版参考 ID
json
{
"prompt": "放马西行,直面天命!",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228,
"img_url": "https://www.openai-hk.com/res/img/open.png",
"template_id": 313359209531840
}
{
"prompt": "放马西行,直面天命!",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228,
"img_url": "https://www.openai-hk.com/res/img/open.png",
"template_id": 313359209531840
}
场景 6: Style 风格
json
{
"prompt": "放马西行,直面天命!",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"style": "cyberpunk",
"seed": 648043228
}
{
"prompt": "放马西行,直面天命!",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"style": "cyberpunk",
"seed": 648043228
}
场景 7: character 角色
A.生成角色 ID AssetId
请求体
json
{
"images": [
"https://media.pixverse.ai/upload/880f121b-4036-4ff5-a153-58aff9417d05.jpg"
]
}
{
"images": [
"https://media.pixverse.ai/upload/880f121b-4036-4ff5-a153-58aff9417d05.jpg"
]
}
返回体 得到 AssetId
json
{
"Resp": {
"AssetId": 315472036507328
},
"ErrCode": 0,
"ErrMsg": "Success"
}
{
"Resp": {
"AssetId": 315472036507328
},
"ErrCode": 0,
"ErrMsg": "Success"
}
B.利用 AssetId 进行创作
- AssetId 可以重复使用
- AssetId 不可跨账号使用 可能账号下线或者被封导致不能使用
json
{
"prompt": "微笑",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228,
"asset_id": 315472036507328
}
{
"prompt": "微笑",
"model": "v3.5",
"quality": "360p",
"duration": 5,
"aspect_ratio": "16:9",
"motion_mode": "normal",
"seed": 648043228,
"asset_id": 315472036507328
}