The Pika Discord Bot
This is the starting point for creating your video generations.
Postman Collection Available
View the collection of API calls through Postman. You can use this to preview requests in any programming language.
https://www.postman.com/avionics-engineer-1130803/workspace/api-glue/overviewPOST https://api.pikapikapika.io/discord/:route
Route | Description |
---|---|
/:create | Create a video from text |
/:animate | Animate an image |
/:encrypt_text | Embed text into a video |
/:encrypt_image | Embed an image into a video |
/:button | Invoke a button returned by the Discord Bot |
Get Message
Grab the results for a message after using any of the other endpoints
GET https://api.pikapikapika.io/discord/message/:messageId
URL Params
Parameter | Description |
---|---|
/:messageId | The responseMsgId from the response after a sucessful request |
Response
Example: https://api.pikapikapika.io/discord/message/x69gMsU2GClqjBVvHOrQ
200 OK
Completed:
{
"progress": 100,
"response": {
"accountId": "zJHhI5GukOugL1vcG2Mf",
"createdAt": "2024-01-11T00:10:09.213Z",
"originalMessageId": "x69gMsU2GClqjBVvHOrQ",
"ref": "",
"availableButtons": [
"🔄",
"🔀",
"❌"
],
"resultUrl": "https://cdn.discordapp.com/attachments/1183508299895820390/1194795799637405836/people_running_around_a_horse__Message__Hello_Font__BAUHAUS_seed3557373337891796966.mp4?ex=65b1a74c&is=659f324c&hm=24f53fb154f44e72366ddcc5f90ab96d8a06515985aa00f1e9f9372ac95f7a53&",
"description": "",
"type": "button",
"content": "Prompt: people running around a horse Message: Hello (Font: BAUHAUS) Author:",
"responseMsgId": "ZsaZRt513egwAQd0QpL7"
}
}
Queued:
{
"progress": "queued",
"response": {}
}
Failed:
{
"progress": "failed",
"response": {}
}
Create
Create a video from text.
POST https://api.pikapikapika.io/discord/create
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
prompt | text | Yes | The text to create a video from |
image | text | No | The image URL you would like to start the video from, must be a valid .png, .jpeg, .webp or .gif file |
ref | text | No | A reference you can attach to the completion |
webhookOverride | text | No | The webhook URL to override the default webhook |
Response
200 OK
{
"messageId": "6ASTEy9XIxXsZMJN3f2f",
}
You can retrieve progress updates and the completion using the Get Message endpoint! You will also receive a webhook update automatically on completion if configured.
Animate
Create a video from text.
POST https://api.pikapikapika.io/discord/animate
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
image | text | Yes | The image URL you would like to start the video from, must be a valid .png, .jpeg, .webp or .gif file |
prompt | text | No | The text to create a video from |
ref | text | No | A reference you can attach to the completion |
webhookOverride | text | No | The webhook URL to override the default webhook |
Response
200 OK
{
"messageId": "6ASTEy9XIxXsZMJN3f2f",
}
You can retrieve progress updates and the completion using the Get Message endpoint! You will also receive a webhook update automatically on completion if configured.
Encrypt Text
Embed text in your video
POST https://api.pikapikapika.io/discord/encrypt_text
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
textToEncrypt | text | Yes | The text you would like embedded in the video |
prompt | text | Yes | The text to create a video from |
image | text | No | The image URL you would like to start the video from, must be a valid .png, .jpeg, .webp or .gif file |
font | text | No | The font you would like to use in the creation Must be one of "MODERN", "COMICS", "SANS SERIF", "BAUHAUS", "RETRO". default is "MODERN" |
ref | text | No | A reference you can attach to the completion |
webhookOverride | text | No | The webhook URL to override the default webhook |
Response
200 OK
{
"messageId": "6ASTEy9XIxXsZMJN3f2f",
}
You can retrieve progress updates and the completion using the Get Message endpoint! You will also receive a webhook update automatically on completion if configured.
Encrypt Image
Embed an image in your video
POST https://api.pikapikapika.io/discord/encrypt_image
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
imageToEncrypt | text | Yes | The URL to the image you would like to Embed in the video, must be a valid .png, .jpeg, .webp or .gif file |
prompt | text | Yes | The text to create a video from |
image | text | No | The image URL you would like to start the video from, must be a valid .png, .jpeg, .webp or .gif file |
ref | text | No | A reference you can attach to the completion |
webhookOverride | text | No | The webhook URL to override the default webhook |
Response
200 OK
{
"messageId": "6ASTEy9XIxXsZMJN3f2f",
}
You can retrieve progress updates and the completion using the Get Message endpoint! You will also receive a webhook update automatically on completion if configured.
Reroll
Reroll an existing video using the responseMsgId from the completion response
POST https://api.pikapikapika.io/discord/button
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
responseMsgId | text | Yes | The responseMsgId retrieved from the completion response |
button | text | Yes | Must be "🔄" |
ref | text | No | A reference you can attach to the completion |
webhookOverride | text | No | The webhook URL to override the default webhook |
Response
200 OK
{
"messageId": "x69gMsU2GClqjBVvHOrQ",
}
You can retrieve progress updates and the completion using the Get Message endpoint! You will also receive a webhook update automatically on completion if configured.
Remix
Remix an existing video with a new prompt using the responseMsgId from the completion response
POST https://api.pikapikapika.io/discord/button
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
responseMsgId | text | Yes | The responseMsgId retrieved from the completion response |
button | text | Yes | Must be "🔀" |
prompt | text | Yes | The new prompt for the video |
ref | text | No | A reference you can attach to the completion |
webhookOverride | text | No | The webhook URL to override the default webhook |
Response
200 OK
{
"messageId": "x69gMsU2GClqjBVvHOrQ",
}
You can retrieve progress updates and the completion using the Get Message endpoint! You will also receive a webhook update automatically on completion if configured.
Delete
Delete an existing video with a new prompt using the responseMsgId from the completion response
POST https://api.pikapikapika.io/discord/button
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
responseMsgId | text | Yes | The responseMsgId retrieved from the completion response |
button | text | Yes | Must be "❌" |
ref | text | No | A reference you can attach to the completion |
webhookOverride | text | No | The webhook URL to override the default webhook |
Response
200 OK
{
"messageId": "x69gMsU2GClqjBVvHOrQ",
}
You can retrieve progress updates and the completion using the Get Message endpoint! You will also receive a webhook update automatically on completion if configured.