🎬 動画モデル pika
- 2024.10.16 本サイトは動画モデル
pikaをサポートしました pikaには公式APIがなく、GPTsと同様にリバースエンジニアリングによって取得されていますテキストから動画と画像から動画をサポート- 課金は生成ごと — 1回のリクエストで1つの動画
- 使い方:https://pika.ddaiai.com にアクセスし、下記の
オンラインテストセクションを参照してください
オンラインテスト 1. https://pika.ddaiai.com にアクセス(ブロックされている場合は、サブドメインプレフィックスを suibian に変更してみてください)
2. ブロックされている場合は、アドレスを自分で変更できます — https://suibian.ddaiai.com の suibian を他のものに置き換えてください。例:https://2025.ddaiai.com — すべてのバリエーションが機能します
オンラインテスト
- https://pika.ddaiai.com を開く
- 下のスクリーンショットに示されているように設定を構成
- OpenAI API base URL: https://api.openai-hk.com
- OpenAI KEY: hk-your-apiKey

- 結果

PIKA API
- リクエストヘッダーに
Authorization: Bearer hk-your-keyを含める必要があります - API base URL: https://api.openai-hk.com/pika
動画タスクを作成
shell
curl 'https://api.openai-hk.com/pika/generate' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-你的key' \
--data '{"pikaffect":"","promptText":"moving","model":"1.5","options":{"aspectRatio":1.7777777777777777,"frameRate":24,"camera":{},"parameters":{"guidanceScale":12,"motion":1,"negativePrompt":""},"extend":false}}'curl 'https://api.openai-hk.com/pika/generate' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer hk-你的key' \
--data '{"pikaffect":"","promptText":"moving","model":"1.5","options":{"aspectRatio":1.7777777777777777,"frameRate":24,"camera":{},"parameters":{"guidanceScale":12,"motion":1,"negativePrompt":""},"extend":false}}'リクエストボディ
json
{
"pikaffect": "",
"promptText": "moving",
"model": "1.5",
"options": {
"aspectRatio": 1.7777777777777777,
"frameRate": 24,
"camera": {},
"parameters": {
"guidanceScale": 12,
"motion": 1,
"negativePrompt": ""
},
"extend": false
},
"image": ""
}{
"pikaffect": "",
"promptText": "moving",
"model": "1.5",
"options": {
"aspectRatio": 1.7777777777777777,
"frameRate": 24,
"camera": {},
"parameters": {
"guidanceScale": 12,
"motion": 1,
"negativePrompt": ""
},
"extend": false
},
"image": ""
}主要フィールドの説明
| フィールド | タイプ | 説明 |
|---|---|---|
| pikaffect | string | 公式の動画エフェクト。空にできます。エフェクトが設定されている場合、オーディオが含まれます。使用可能な値:Levitate Decapitate Eye-pop Ta-da Deflate Crumble Dissolve Squish Inflate Melt Crush Cake-ify Explode — 公式チームによってさらに追加される可能性があります |
| promptText | string | プロンプトテキスト |
| image | string | 存在する場合は値が必要です。base64または画像URLを指定できます |
| model | string | モデルバージョン:1.5 2.0 2.2 |
| options | object | 動画設定 |
| options.aspectRatio | number | アスペクト比 — 画像を使用する場合はこのフィールドを省略 |
| options.parameters.negativePrompt | string | 出力から除外するオブジェクト |
レスポンスボディ — 返される id は taskId と呼ばれ、後続のステップで使用されます
json
{
"id": "c1d16f47-16c2-4798-8733-5ed9903885cc"
}{
"id": "c1d16f47-16c2-4798-8733-5ed9903885cc"
}タスクステータスを確認
curl
shell
curl 'https://api.openai-hk.com/pika/feed/66e0818e-05fb-454e-b246-a6f253e9ffbf' \
-H 'Authorization: Bearer hk-你的key'curl 'https://api.openai-hk.com/pika/feed/66e0818e-05fb-454e-b246-a6f253e9ffbf' \
-H 'Authorization: Bearer hk-你的key'レスポンスボディ
json
{
"id": "66e0818e-05fb-454e-b246-a6f253e9ffbf",
"promptText": "Plane fly",
"videos": [
{
"id": "66e0818e-05fb-454e-b246-a6f253e9ffbf",
"status": "finished",
"seed": 3183047765,
"resultUrl": "https://cdn.pika.art/v1/66e0818e-05fb-454e-b246-a6f253e9ffbf/Plane_fly_seed3183047765.mp4",
"sharingUrl": "https://cdn.pika.art/v1/66e0818e-05fb-454e-b246-a6f253e9ffbf/Plane_fly_seed3183047765_share.mp4",
"videoPoster": "https://cdn.pika.art/v1/66e0818e-05fb-454e-b246-a6f253e9ffbf/poster.jpg",
"imageThumb": "https://cdn.pika.art/v1/66e0818e-05fb-454e-b246-a6f253e9ffbf/thumbnail.jpg",
"duration": 5,
"error": "",
"progress": 100
}
]
}{
"id": "66e0818e-05fb-454e-b246-a6f253e9ffbf",
"promptText": "Plane fly",
"videos": [
{
"id": "66e0818e-05fb-454e-b246-a6f253e9ffbf",
"status": "finished",
"seed": 3183047765,
"resultUrl": "https://cdn.pika.art/v1/66e0818e-05fb-454e-b246-a6f253e9ffbf/Plane_fly_seed3183047765.mp4",
"sharingUrl": "https://cdn.pika.art/v1/66e0818e-05fb-454e-b246-a6f253e9ffbf/Plane_fly_seed3183047765_share.mp4",
"videoPoster": "https://cdn.pika.art/v1/66e0818e-05fb-454e-b246-a6f253e9ffbf/poster.jpg",
"imageThumb": "https://cdn.pika.art/v1/66e0818e-05fb-454e-b246-a6f253e9ffbf/thumbnail.jpg",
"duration": 5,
"error": "",
"progress": 100
}
]
}レスポンス主要フィールドの説明
| フィールド | タイプ | 説明 |
|---|---|---|
| id | string | タスクID |
| promptText | string | プロンプトテキスト |
| videos | array | 動画の配列 |
| videos[].id | string | 動画ID |
| videos[].status | string | 動画ステータス:finished = 完了、error = 失敗 |
| videos[].seed | number | 動画シード |
| videos[].resultUrl | string | 動画URL |
| videos[].videoPoster | string | カバー画像 |
| videos[].sharingUrl | string | 動画共有URL |
| videos[].error | string | ステータスが error の場合のエラーメッセージ |
| videos[].progress | number | 進行状況 |
ingredient: 複数の画像から動画タスクを作成
- 注意:リクエストボディに
imageを含めないでください ingredientは画像の配列です — URLまたはbase64を指定できますingredients-modeは精密モードの場合はprecise、クリエイティブモードの場合はcreativemodelは2.0または2.2である必要があります- リクエストボディ
json
{
"pikaffect": "",
"model": "2.0",
"promptText": "pick it",
"options": {
"aspectRatio": 1.7777777777777777,
"frameRate": 24,
"camera": {},
"parameters": {
"guidanceScale": 12,
"motion": 1,
"negativePrompt": ""
},
"extend": false,
"ingredients-mode": "precise"
},
"ingredient": [
"https://www.openai-hk.com/res/img/open.png",
"https://cos.aitutu.cc/gpts/o1-all.jpg"
]
}{
"pikaffect": "",
"model": "2.0",
"promptText": "pick it",
"options": {
"aspectRatio": 1.7777777777777777,
"frameRate": 24,
"camera": {},
"parameters": {
"guidanceScale": 12,
"motion": 1,
"negativePrompt": ""
},
"extend": false,
"ingredients-mode": "precise"
},
"ingredient": [
"https://www.openai-hk.com/res/img/open.png",
"https://cos.aitutu.cc/gpts/o1-all.jpg"
]
}
OpenAi-HK