modelApiDoc_getStartedBeforeModelpika/pikaswapsmodelApiDoc_getStartedAfterModel modelApiDoc_getStartedMid modelApiDoc_schemaLinkmodelApiDoc_getStartedAfterSchema
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/pika/pikaswaps \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"video": "https://playgrounds-storage-public.runcomfy.net/tools/7002/media-files/usecase7-1-1-input.mov"
}'modelApiDoc_authP1 YOUR_API_TOKEN modelApiDoc_authP2 modelApiDoc_profilemodelApiDoc_authP3 Authorization modelApiDoc_authP4 Authorization: Bearer $YOUR_API_TOKENmodelApiDoc_authP5
modelApiDoc_submitBody
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/pika/pikaswaps \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"video": "https://playgrounds-storage-public.runcomfy.net/tools/7002/media-files/usecase7-1-1-input.mov"
}'modelApiDoc_monitorBody
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"modelApiDoc_retrieveBody
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"modelApiDoc_cancelBody
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"modelApiDoc_hostedFileBody
{
"type": "object",
"title": "modelApiDoc_navInputSchema",
"required": [
"video"
],
"properties": {
"video": {
"title": "Video",
"description": "Upload an original video at least 5 seconds long.",
"type": "string",
"default": "https://playgrounds-storage-public.runcomfy.net/tools/7002/media-files/usecase7-1-1-input.mov"
},
"promptText": {
"title": "Prompt",
"description": "",
"type": "string",
"maxLength": 2000,
"default": "the blank paintings on the wall"
},
"negativePrompt": {
"title": "Negative Prompt",
"description": "",
"type": "string",
"default": ""
},
"seed": {
"title": "Seed",
"description": "",
"type": "integer",
"default": 38526577
},
"image": {
"title": "Image",
"description": "Upload an image to replace the selected area. Use an image URL. For pikaswaps, provide at least one targeting input: image, modifyRegionMask, or modifyRegionRoi.",
"type": "string"
},
"modifyRegionMask": {
"title": "Mask",
"description": "Mask image for the region to edit. Use an image URL or a base64 data URL such as data:image/png;base64,... White painted area = region to modify.",
"type": "string"
},
"modifyRegionRoi": {
"title": "Text",
"description": "Text description of the region/object to modify, for example: 'the painting on the wall' or 'the person on the left'. For pikaswaps, provide at least one targeting input: image, modifyRegionMask, or modifyRegionRoi.",
"type": "string"
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "modelApiDoc_outDescImage"
},
"video": {
"type": "string",
"format": "uri",
"description": "modelApiDoc_outDescVideo"
},
"images": {
"type": "array",
"description": "modelApiDoc_outDescImages",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "modelApiDoc_outDescVideos",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.