- GET START
- OpenAI Compatiable Endpoint
- Audio
- Anthropic Compatiable Endpoint
- Music Generation Endpoint
- Image Generation Endpoint
- Video Generation Ednpoint
- runway(video)
- PIKA(video)
- luma (video)
- kling (video)
- MiniMax Conch(video)
- Software Integration Guide
- cometapi Site API Call Testing
- OpenManus
- Chatbox
- CherryStudio
- Cursor
- ChatHub
- cline
- dify
- gptme
- Immersive Translation
- Lobe-Chat
- Zotero
- LangChain
- AnythingLLM
- Eudic Translation
- OpenAI Translator
- ChatAll Translation
- Pot Translation
- GPT Academic Optimization (gpt_academic)
- NEXT CHAT (ChatGPT Next Web)
- Obsidian's Text Generator Plugin
- Open WebUI
- avante.nvim
- librechat
- Lazy Customer Service
- utools-ChatGPT Friend
- IntelliJ Translation Plugin
PIKA Reference Image Generation
Testing
POST
https://api.cometapi.com/pika/pro/generate
Request
Header Params
Authorization
string
optional
Example:
Bearer {{api-key}}
Content-Type
string
optional
Example:
application/json
Body Params application/json
callback_url
string
optional
Example:
http://baidu.com
prompt
string
required
Example:
customize your prompt here
image
string
required
Example:
https://db.xiaodehd.com/1.jpg
style
string
optional
Example:
Inflate
sfx
boolean
optional
Example:
false
model
number
optional
Example:
1.5
options
object
optional
frameRate
integer
optional
Example:
20
camera
object
optional
parameters
object
optional
Example
{
"callback_url": "http://baidu.com",
"prompt": "customize your prompt here",
"sfx": false,
"image": "https://db.xiaohuhd.com/1.jpeg",
"style": "Inflate",
"model": 1.5,
"options": {
"frameRate": 20,
"camera": {
"pan": "right",
"tilt": "up",
"rotate": "cw",
"zoom": "in"
},
"parameters": {
"guidanceScale": 16,
"motion": 2,
"negativePrompt": "ugly",
"seed": 144124
}
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.cometapi.com/pika/pro/generate' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"callback_url": "http://baidu.com",
"prompt": "customize your prompt here",
"sfx": false,
"image": "https://db.xiaohuhd.com/1.jpeg",
"style": "Inflate",
"model": 1.5,
"options": {
"frameRate": 20,
"camera": {
"pan": "right",
"tilt": "up",
"rotate": "cw",
"zoom": "in"
},
"parameters": {
"guidanceScale": 16,
"motion": 2,
"negativePrompt": "ugly",
"seed": 144124
}
}
}'
Responses
🟢200OK
application/json
Body
callback_url
string
required
Example:
http://baidu.com
style
enum<string>
optional
Allowed values:
InflateMeltExplodeSquishCrushCake-ifyTa-daDeflateCrumbleDissolveLevitateDecapitateEye-pop
Example:
Inflate
ratio
string
required
Example:
16:9
prompt
string
required
Example:
一只小猫
sfx
boolean
optional
Example:
true
options
object
optional
frameRate
integer
optional
Example:
20
camera
object
optional
parameters
object
optional
model
number
optional
Example:
1.5
Example
{
"code": 200,
"msg": "succeeded",
"data": {
"task_id": "64d8d683-56c2-533b-c7c8-b78f1faa3438",
"state": "",
"status": "",
"prompt": "",
"prompt_en": null,
"video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"point": "",
"refund": "",
"create_time": "",
"update_time": ""
},
"exec_time": 0.713854
}