Pruna P-Video 2 Pro 文生视频

pruna-ai/p-video-2-pro/text-to-video

生成带音频的 5–15 秒视频,支持 480p、768p 和 cost、speed、quality 模式。

示例

Pruna P-Video 2 Pro 文生视频 示例 1

参数

名称类型默认约束说明
prompt *提示词textarea—≤ 5000 chars用于描述要生成视频的文本提示词。
duration时长slider55 ~ 15 · step 1视频时长(秒),范围为 5 到 15。
aspect_ratio宽高比select16:916:9 | 9:16 | 4:3 | 3:4 | 3:2 | 2:3 | 1:1生成视频的宽高比。
resolution分辨率select768p480p | 768p输出视频分辨率。
mode模式selectspeedspeed | quality | cost生成模式:cost 表示以更低成本生成,输出质量与 speed 相同;speed 表示更快生成;quality 表示更高质量生成。默认值:speed。与 prompt_upsampler 独立。
prompt_upsampler提示词增强selectturbooff | turbo | max提示词扩展模式。与 cost、speed 或 quality 生成模式相互独立;不会改变价格。
seed随机种子number—step 1可选的随机种子,用于复现生成结果。不填则使用随机种子。

输出字段

字段类型说明
videosarray<string>

API

通过统一 REST API 调用本模型;在 API Keys 页获取密钥。

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/pruna-ai/p-video-2-pro/text-to-video" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field",
    "duration": 5,
    "aspect_ratio": "16:9",
    "resolution": "768p",
    "mode": "speed",
    "prompt_upsampler": "turbo"
  }
}'

# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
  -H "Authorization: Bearer YOUR_API_KEY"
Python
import time, requests

API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1) Submit
resp = requests.post(
    "https://www.namifusion.com/api/v1/marketplace/run/pruna-ai/p-video-2-pro/text-to-video",
    headers=HEADERS,
    json={
        "input": {
            "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field",
            "duration": 5,
            "aspect_ratio": "16:9",
            "resolution": "768p",
            "mode": "speed",
            "prompt_upsampler": "turbo"
        }
    },
)
resp.raise_for_status()  # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()

# 2) Poll until a terminal state (completed / failed / cancelled).
#    This model is allowed up to 1800s server-side.
deadline = time.time() + 1860
while task.get("status") not in ("completed", "failed", "cancelled"):
    if time.time() > deadline:
        raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
    time.sleep(3)
    poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
    poll.raise_for_status()
    task = poll.json()

print(task["status"], task.get("output"))
JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };

// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/pruna-ai/p-video-2-pro/text-to-video", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field",
      "duration": 5,
      "aspect_ratio": "16:9",
      "resolution": "768p",
      "mode": "speed",
      "prompt_upsampler": "turbo"
    }
  }),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();

// 2) Poll until a terminal state (completed / failed / cancelled).
//    This model is allowed up to 1800s server-side.
const deadline = Date.now() + 1860 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
  if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
  await new Promise((r) => setTimeout(r, 3000));
  const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
  if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
  task = await poll.json();
}

console.log(task.status, task.output);

文档

Pruna P-Video 2 Pro 文生视频

生成带音频的 5–15 秒视频,支持 480p、768p 和 cost、speed、quality 模式。

输入参数

Parameter必填类型、可选值、默认值
prompt必填string; max 5000 characters. 用于描述要生成视频的文本提示词。
duration可选integer; min: 5.0; max: 15.0; step: 1.0; default: 5. 视频时长(秒),范围为 5 到 15。
aspect_ratio可选string; 16:9 / 9:16 / 4:3 / 3:4 / 3:2 / 2:3 / 1:1; default: "16:9". 生成视频的宽高比。
resolution可选string; 480p / 768p; default: "768p". 输出视频分辨率。
mode可选string; speed / quality / cost; default: "speed". 生成模式:cost 表示以更低成本生成,输出质量与 speed 相同;speed 表示更快生成;quality 表示更高质量生成。默认值:speed。与 prompt_upsampler 独立。
prompt_upsampler可选string; off / turbo / max; default: "turbo". 提示词扩展模式。与 cost、speed 或 quality 生成模式相互独立;不会改变价格。
seed可选integer; step: 1. 可选的随机种子,用于复现生成结果。不填则使用随机种子。

Nami 按当前 MaaS 接口约束接收最多 5000 字符的提示词;必填提示词不能为空。

标准价

1 美元 = 100 积分,账户折扣另算。

费用 = 请求的输出秒数 × 分辨率及生成模式的秒价。时长为 5–15 整秒,默认 5 秒。生成音频和 prompt_upsampler 不另收费;mode 默认 speed,prompt_upsampler 默认 turbo。

Resolutioncost (USD/s)speed (USD/s)quality (USD/s)
480p$0.01$0.02$0.04
768p$0.025$0.035$0.075

接口调用

请使用可访问的素材 URL。仅提交一次,再用 task_uuid 查询至 completed 或 failed;成功结果 output.videos 为视频 URL 数组。

POST https://www.namifusion.com/api/v1/marketplace/run/pruna-ai/p-video-2-pro/text-to-video
Authorization: Bearer YOUR_NAMIFUSION_API_KEY
Content-Type: application/json

{
  "input": {
    "resolution": "768p",
    "prompt": "A colorful scene with gentle natural movement.",
    "duration": 5,
    "aspect_ratio": "16:9",
    "mode": "speed",
    "prompt_upsampler": "turbo"
  }
}
GET https://www.namifusion.com/api/v1/marketplace/run/tasks/{task_uuid}
Authorization: Bearer YOUR_NAMIFUSION_API_KEY

WaveSpeed

相关模型

xAI Grok Imagine Video v1.5 文生视频
文生视频X Ai

xAI Grok Imagine Video v1.5 文生视频

根据文本提示词生成 1-15 秒视频,支持 480p、720p 和 1080p。

起 $0.840 / 每次
MiniMax H3 文生视频
文生视频Minimax

MiniMax H3 文生视频

MiniMax H3 文生视频可根据提示词生成连贯的 2K 视频,支持 4–15 秒灵活时长,以及六种可选宽高比,适用于电影感场景、创意视频和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

起 $0.650 / 每次
MiniMax H3 Lite 文生视频
文生视频Minimax

MiniMax H3 Lite 文生视频

生成带原生音频的视频,支持 4–15 秒、480p 或 768p。

起 $0.200 / 每次
MiniMax H3 Highspeed 文生视频
文生视频Minimax

MiniMax H3 Highspeed 文生视频

生成 4–15 秒、768p 的视频。

起 $0.300 / 每次
ltx-2.5/text-to-video(文生视频)
文生视频Ltx 2.5

ltx-2.5/text-to-video(文生视频)

LTX 2.5 文生视频可根据文本提示词生成高保真、音画同步的视频内容,支持灵活时长以及 720P / 1080P / 2K / 4K 输出,适用于电影感视频、社交内容、广告和制作流程。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

起 $0.500 / 每次
Kling Omni Video O3 文本生成视频
文生视频Kling

Kling Omni Video O3 文本生成视频

Kling Omni Video O3 是快手的先进统一多模态视频模型,采用MVL(多模态视觉语言)技术。文本生成视频模式可通过提示词生成具有主体一致性、自然物理模拟和精准语义理解的电影级视频。支持音频生成。即用型REST API,性能卓越,无冷启动,价格实惠。

起 $0.420 / 每次
可灵 4.0 文生视频
文生视频Kling

可灵 4.0 文生视频

根据提示词生成 3–30 秒视频,支持同步音频及 720p、1080p。

起 $0.785 / 每次
Kling 3.0 Standard
文生视频Kling

Kling 3.0 Standard

Kling 3.0 标准版提供高质量的文本生成视频功能,具有流畅的运动效果、电影级视觉效果、精准的提示词匹配以及原生音频,适合直接分享的短片。支持即用型 REST 推理 API,性能卓越,无冷启动,价格实惠。

起 $0.420 / 每次