p-video-2-proデフォルトP-Video-2 Pro API — 接続と支払いの方法
P-Video-2 Pro(Pruna AI) — 上位版のP-Video-2です。テキスト、または最初と最後のフレームから音声付き動画を生成し、5秒から15秒、480pまたは768pに対応します。モードは3種類です:Cost(最安)、Speed(高速)、Quality(最高品質)。モード、解像度、長さに基づき、クリップ単位で料金が設定されます。
チャネル比較
過去7日間
| チャネル | 価格 |
|---|---|
キャンバス p-video-2-proデフォルト | $0.066667から per clip |
必要な結果を作成
p-video-2-proP-Video-2 Proとは
P-Video-2 Pro(Pruna AI) — 上位版のP-Video-2です。テキスト、または最初と最後のフレームから音声付き動画を生成し、5秒から15秒、480pまたは768pに対応します。モードは3種類です:Cost(最安)、Speed(高速)、Quality(最高品質)。モード、解像度、長さに基づき、クリップ単位で料金が設定されます。
契約の概要
- 入力
- text, image
- 出力
- video
- モード
- 非同期(ジョブ + ポーリング)
- ステータスのポーリング
- 3秒ごと · 最大600秒
強み
- 料金:クリップあたり
- 入力:テキスト、画像
- 設定可能なオプション3個
- メディア生成用の1つのAPIキー
用途
- ソーシャルメディア用クリップ
- プロモーションとタイトルシーケンス
- 静止画アニメーション
- ストーリーボードとアニマティクス
APIコントラクト
生成は非同期で実行されます。ジョブを作成し、完了するまでステータスをポーリングします。
- ジョブを作成
- POST /api/media/generate
- ステータスを確認
- GET /api/media/jobs/{jobId}
- 入力
- text, image
- 出力
- video
- ポーリング
- 3秒ごと · 最大600秒
- 認証
- Authorization: Bearer sk-pv-…
リクエスト例
Bearerヘッダーにキーを渡します。APIはjobIdステータスをポーリングするために使用します。
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"p-video-2-pro","prompt":"a beautiful landscape","opts":{"mode":"cost","duration":"5","resolution":"768p","aspect_ratio":"16:9"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "p-video-2-pro",
"prompt": "a beautiful landscape",
"opts": {
"mode": "cost",
"duration": "5",
"resolution": "768p",
"aspect_ratio": "16:9"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);APIリクエストパラメータ
GetVibe API経由でP-Video-2 Proにリクエストする際のパラメータ。
prompt必須image_urlmodedurationresolutionaspect_ratiolast_frame_urlseedimage_file_idimage_base64last_frame_file_id| パラメータ | タイプ | 値 | デフォルト | 価格 |
|---|---|---|---|---|
prompt必須 | text | text description | required | — |
image_url | URL | Public image URL | — | — |
mode | option selection | Cost · Speed (default) · Quality | 速度 | Cost: $0.166667, Speed: $0.233333, Quality: $0.50 |
duration | option selection | 5 (default) · 8 · 10 · 12 · 15 | 5 | 5: $0.233333, 8: $0.373333, 10: $0.466667, 12: $0.56, 15: $0.70 |
resolution | option selection | 480p · 768p (default) | 768p | 480p: $0.133333, 768p: $0.233333 |
aspect_ratio | option selection | 16:9 (default) · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 1:1 | 16:9 | Included in the base price |
last_frame_url | text / number | any value | — | Included in the base price |
seed | text / number | any value | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
last_frame_file_id | text | Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
リクエスト: POST https://getvibeapi.com/api/media/generate。価格はUSDです。
P-Video-2 Proの価格
P-Video-2 Proの料金: から $0.066667 per clip。価格は現在の為替レートに基づいて動的に計算され、最終的な請求額はAPIレスポンス(priceRub)に表示されます。支払いはUSDで、サブスクリプションはありません。
デフォルトのリクエストにかかる料金
パラメーターを指定しない場合、リクエストには次の値が使用されます: Duration — 5, Resolution — 768p, Mode — Speed, Frame format — 16:9。 このリクエストの料金は$0.233333です。
「$0.066667から」は最も安価なパラメーターセットを指しており、デフォルトのリクエストの料金ではありません。
すべてのパラメータの組み合わせにおけるチャンネルと価格
各チャンネルについて、すべてのパラメータの組み合わせの価格を表示しています。これは正常に生成された場合に請求される正確な金額であり、下にリンクされた機械可読テーブルと同じ数値です。
キャンバスp-video-2-pro$0.066667から正確な価格
| モード · 解像度 \ 再生時間(秒) | 5秒 | 8秒 | 10秒 | 12秒 | 15秒 |
|---|---|---|---|---|---|
| コスト · 480p | $0.066667 | $0.106667 | $0.133333 | $0.16 | $0.20 |
| コスト · 768p | $0.166667 | $0.266667 | $0.333333 | $0.40 | $0.50 |
| 速度 · 480p | $0.133333 | $0.213333 | $0.266667 | $0.32 | $0.40 |
| 速度 · 768p | $0.233333 | $0.373333 | $0.466667 | $0.56 | $0.70 |
| 品質 · 480p | $0.266667 | $0.426667 | $0.533333 | $0.64 | $0.80 |
| 品質 · 768p | $0.50 | $0.80 | $1.00 | $1.20 | $1.50 |
すべての組み合わせ(JSON): /api/media/price-table?model=p-video-2-pro
README
P-Video-2 Proの機械可読な契約には、リクエストスキーマ、操作、制限、ポーリング、レスポンスの例が含まれています。
# P-Video-2 Pro
公開モデル: p-video-2-pro
ジョブを作成: POST /api/media/generate
ステータスを確認: GET /api/media/jobs/{jobId}
## 入力パラメータ
- `prompt` (text): text description; デフォルト: required
- `image_url` (URL): Public image URL; デフォルト: —
- `mode` (option selection): Cost · Speed (default) · Quality; デフォルト: Speed
- `duration` (option selection): 5 (default) · 8 · 10 · 12 · 15; デフォルト: 5
- `resolution` (option selection): 480p · 768p (default); デフォルト: 768p
- `aspect_ratio` (option selection): 16:9 (default) · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 1:1; デフォルト: 16:9
- `last_frame_url` (text / number): any value; デフォルト: —
- `seed` (text / number): any value; デフォルト: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; デフォルト: —
- `last_frame_file_id` (text): Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
## 公開バリアント
- `p-video-2-pro`: CanvasP-Video-2 Pro APIに関するよくある質問
P-Video-2 Proの料金はいくらですか?
P-Video-2 Proの料金はから $0.066667 per clipです。料金は現在の為替レートに基づいて動的に計算されます。
OpenAI SDKと互換性がありますか?
はい、APIは完全にOpenAI互換です。base_urlをhttps://getvibeapi.com/v1に変更してキーを設定するだけで、コードの他の部分はそのまま使えます。