Skip to main content
POST
/
generate
/
pikaswaps
curl -X POST 'https://devapi.pika.art/generate/pikaswaps' \
-H 'X-API-KEY: your_api_key' \
-H 'Accept: multipart/form-data' \
-F '[email protected];type=video/mp4' \
-F '[email protected];type=image/jpg' \
-F '[email protected];type=image/jpg' \
-F 'promptText=Replace the background with a beautiful beach' \
-F 'negativePrompt=blurry, low quality' \
-F 'seed=12345'
{
  "video_id": "<string>"
}

Body

multipart/form-data
video
file
required
image
file | null
promptText
string | null
modifyRegionMask
file | null

A mask image that specifies the region to modify, where the mask is white and the background is black

modifyRegionRoi
string | null

Plaintext description of the object / region to modify

negativePrompt
string | null
seed
integer | null

Response

Successful Response

video_id
string
required