Skip to content

🎬 動画モデル pika

  • 2024.10.16 本サイトは動画モデル pika をサポートしました
  • pika には公式APIがなく、GPTsと同様にリバースエンジニアリングによって取得されています
  • テキストから動画画像から動画 をサポート
  • 課金は生成ごと — 1回のリクエストで1つの動画
  • 使い方:https://pika.ddaiai.com にアクセスし、下記の オンラインテスト セクションを参照してください

オンラインテスト 1. https://pika.ddaiai.com にアクセス(ブロックされている場合は、サブドメインプレフィックスを suibian に変更してみてください)


2. ブロックされている場合は、アドレスを自分で変更できます — https://suibian.ddaiai.comsuibian を他のものに置き換えてください。例:https://2025.ddaiai.com — すべてのバリエーションが機能します

オンラインテスト

PIKA API

動画タスクを作成

post https://api.openai-hk.com/pika/generate

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": ""
}

主要フィールドの説明

フィールドタイプ説明
pikaffectstring公式の動画エフェクト。空にできます。エフェクトが設定されている場合、オーディオが含まれます。使用可能な値:Levitate Decapitate Eye-pop Ta-da Deflate Crumble Dissolve Squish Inflate Melt Crush Cake-ify Explode — 公式チームによってさらに追加される可能性があります
promptTextstringプロンプトテキスト
imagestring存在する場合は値が必要です。base64または画像URLを指定できます
modelstringモデルバージョン:1.5 2.0 2.2
optionsobject動画設定
options.aspectRationumberアスペクト比 — 画像を使用する場合はこのフィールドを省略
options.parameters.negativePromptstring出力から除外するオブジェクト

レスポンスボディ — 返される idtaskId と呼ばれ、後続のステップで使用されます

json
{
  "id": "c1d16f47-16c2-4798-8733-5ed9903885cc"
}
{
  "id": "c1d16f47-16c2-4798-8733-5ed9903885cc"
}

タスクステータスを確認

get https://api.openai-hk.com/pika/feed/{taskId}

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
    }
  ]
}

レスポンス主要フィールドの説明

フィールドタイプ説明
idstringタスクID
promptTextstringプロンプトテキスト
videosarray動画の配列
videos[].idstring動画ID
videos[].statusstring動画ステータス:finished = 完了、error = 失敗
videos[].seednumber動画シード
videos[].resultUrlstring動画URL
videos[].videoPosterstringカバー画像
videos[].sharingUrlstring動画共有URL
videos[].errorstringステータスが error の場合のエラーメッセージ
videos[].progressnumber進行状況

ingredient: 複数の画像から動画タスクを作成

post https://api.openai-hk.com/pika/generate

  • 注意:リクエストボディに image を含めないでください
  • ingredient は画像の配列です — URLまたはbase64を指定できます
  • ingredients-mode は精密モードの場合は precise、クリエイティブモードの場合は creative
  • model2.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"
  ]
}