{"api_id":"pika/pikaswaps/video-to-video","vendor":"pika","function":"video-to-video","category":"video","name":"Pikaswaps","description":"Replace a region of a source video.","display_pricing":{"components":[{"role":"output","unit":{"type":"request","quantity":1,"included":0},"starting_at":{"spec":{},"sell_usd":"0.03","micro_usd":30000},"price_tiers":[{"spec":{},"sell_usd":"0.03","micro_usd":30000}]}]},"call":{"method":"POST","path":"/v1/media/pika/pikaswaps/video-to-video"},"input_schema":{"additionalProperties":false,"properties":{"resolution":{"default":"1080p","description":"Output resolution.","enum":["720p","1080p"],"title":"Resolution","type":"string"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Seed for reproducible generation. Defaults to a random seed.","title":"Seed"},"duration_s":{"default":5,"description":"Video length in seconds.","enum":[5,10],"title":"Duration S","type":"integer"},"video":{"description":"URL of the source video to edit.","media_kinds":["video"],"pattern":"^https?://","title":"Video","type":"string"},"prompt":{"description":"Text prompt describing the edit to apply.","minLength":1,"title":"Prompt","type":"string"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Text describing what to avoid in the video.","title":"Negative Prompt"},"modify_region_roi":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"description":"Free-text description of the region to replace. Provide this or a mask.","title":"Modify Region Roi"},"modify_region_mask":{"anyOf":[{"media_kinds":["image"],"pattern":"^https?://","type":"string"},{"type":"null"}],"default":null,"description":"URL of a mask image marking the region to replace. Provide this or an ROI.","title":"Modify Region Mask"},"image":{"anyOf":[{"media_kinds":["image"],"pattern":"^https?://","type":"string"},{"type":"null"}],"default":null,"description":"URL of a reference image for the replacement subject.","title":"Image"}},"required":["video","prompt"],"title":"PikaswapsRequest","type":"object"}}