Skip to content

๐ŸŽฌ Video Model pika โ€‹

  • 2024.10.16 This site now supports the video model pika
  • pika has no official API; like GPTs, it is obtained through reverse engineering
  • Supports text-to-video and image-to-video
  • Billing is per generation โ€” one video per request
  • How to use: visit https://pika.ddaiai.com and see the Online Test section below

Online Test 1. Visit https://pika.ddaiai.com (if blocked, try changing the subdomain prefix to suibian)


2. If you find it blocked, you can change the address yourself โ€” replace suibian in https://suibian.ddaiai.com with something else, e.g. https://2025.ddaiai.com โ€” all variants work

Online Test โ€‹

PIKA API โ€‹

Create a Video Task โ€‹

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

Request body

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

Key field descriptions

FieldTypeDescription
pikaffectstringOfficial video effect; can be left empty. When an effect is set, audio is included. Available values: Levitate Decapitate Eye-pop Ta-da Deflate Crumble Dissolve Squish Inflate Melt Crush Cake-ify Explode โ€” more may be added by the official team
promptTextstringPrompt text
imagestringIf present, must have a value; can be base64 or an image URL
modelstringModel version: 1.5 2.0 2.2
optionsobjectVideo settings
options.aspectRationumberAspect ratio โ€” omit this field when using an image
options.parameters.negativePromptstringObjects to exclude from the output

Response body โ€” the returned id is referred to as taskId and is used in subsequent steps

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

Check Task Status โ€‹

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'

Response body

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

Response key field descriptions

FieldTypeDescription
idstringTask ID
promptTextstringPrompt text
videosarrayArray of videos
videos[].idstringVideo ID
videos[].statusstringVideo status: finished = complete, error = failed
videos[].seednumberVideo seed
videos[].resultUrlstringVideo URL
videos[].videoPosterstringCover image
videos[].sharingUrlstringVideo sharing URL
videos[].errorstringError message when status is error
videos[].progressnumberProgress

ingredient: Create a Video Task from Multiple Images โ€‹

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

  • Note: the request body must not include image
  • ingredient is an array of images โ€” can be URLs or base64
  • ingredients-mode is either precise for precise mode or creative for creative mode
  • model must be 2.0 or 2.2
  • Request body
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"
  ]
}