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/overview

POST https://api.pikapikapika.io/discord/:route

RouteDescription
/:createCreate a video from text
/:animateAnimate an image
/:encrypt_textEmbed text into a video
/:encrypt_imageEmbed an image into a video
/:buttonInvoke 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

ParameterDescription
/:messageIdThe 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

ParameterTypeRequiredDescription
prompttextYesThe text to create a video from
imagetextNoThe image URL you would like to start the video from, must be a valid .png, .jpeg, .webp or .gif file
reftextNoA reference you can attach to the completion
webhookOverridetextNoThe 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

ParameterTypeRequiredDescription
imagetextYesThe image URL you would like to start the video from, must be a valid .png, .jpeg, .webp or .gif file
prompttextNoThe text to create a video from
reftextNoA reference you can attach to the completion
webhookOverridetextNoThe 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

ParameterTypeRequiredDescription
textToEncrypttextYesThe text you would like embedded in the video
prompttextYesThe text to create a video from
imagetextNoThe image URL you would like to start the video from, must be a valid .png, .jpeg, .webp or .gif file
fonttextNoThe font you would like to use in the creation Must be one of "MODERN", "COMICS", "SANS SERIF", "BAUHAUS", "RETRO". default is "MODERN"
reftextNoA reference you can attach to the completion
webhookOverridetextNoThe 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

ParameterTypeRequiredDescription
imageToEncrypttextYesThe URL to the image you would like to Embed in the video, must be a valid .png, .jpeg, .webp or .gif file
prompttextYesThe text to create a video from
imagetextNoThe image URL you would like to start the video from, must be a valid .png, .jpeg, .webp or .gif file
reftextNoA reference you can attach to the completion
webhookOverridetextNoThe 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

ParameterTypeRequiredDescription
responseMsgIdtextYesThe responseMsgId retrieved from the completion response
buttontextYesMust be "🔄"
reftextNoA reference you can attach to the completion
webhookOverridetextNoThe 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

ParameterTypeRequiredDescription
responseMsgIdtextYesThe responseMsgId retrieved from the completion response
buttontextYesMust be "🔀"
prompttextYesThe new prompt for the video
reftextNoA reference you can attach to the completion
webhookOverridetextNoThe 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

ParameterTypeRequiredDescription
responseMsgIdtextYesThe responseMsgId retrieved from the completion response
buttontextYesMust be "❌"
reftextNoA reference you can attach to the completion
webhookOverridetextNoThe 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.