- 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
- n8n
PIKA reference text generation
Testing
POST
https://api.cometapi.com/pika/pro/generate
Maintainer:Not configured
Request
Header Params
Authorization
string
optional
Example:
Bearer {{api-key}}
Body Params application/json
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
{
"callback_url": "http://baidu.com",
"prompt": "a cat",
"style": "Inflate",
"ratio": "16:9",
"sfx": true,
"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": "a cat",
"style": "Inflate",
"ratio": "16:9",
"sfx": true,
"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
code
integer
optional
Example:
200
msg
string
optional
Example:
success
ip
string
required
exec_time
number
required
data
object
optional
task_id
string
optional
Example:
497f6eca-6276-4993-bfeb-53cbbbba6f68
Example
{
"code": 200,
"msg": "success",
"ip": "string",
"exec_time": 0,
"data": {
"task_id": "497f6eca-6276-4993-bfeb-53cbbbba6f68"
}
}