{"openapi":"3.0.2","info":{"title":"pruna/p-video-2","description":"The request body Comfy Router accepts for the model \"pruna/p-video-2\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"5ad738e76114"},"paths":{"/v2/models/pruna/p-video-2":{"post":{"operationId":"runRouterModel","summary":"Run pruna/p-video-2 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for `POST /proxy/pruna/v1/predictions/p-video-2`. The model is fixed by the route, so the body carries only Pruna's `input` object.","example":{"input":{"aspect_ratio":"16:9","draft":false,"duration":2,"fps":24,"prompt":"A single red maple leaf resting on a plain white background.","resolution":"720p"}},"properties":{"input":{"$ref":"#/components/schemas/PrunaPVideo2Input"}},"required":["input"],"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PrunaPredictionStatusResponse"}],"description":"Comfy Router output schema for `pruna/p-video-2`, `pruna/p-video-2-pro-avatar` and `pruna/p-video-2-pro-reference`: the terminal `GET /proxy/pruna/v1/predictions/status/{id}` document, forwarded unchanged. The operation is SUBMIT-AND-POLL and Router polls on the caller's behalf, so the body a caller receives is the finished prediction (`status: succeeded`) rather than the handle the submit returns.\nThe generated video is at `generation_url`. A failed prediction carries `error` instead (and `moderation` when Pruna's safety checker blocked it), and a canceled one carries only `status` and `message`.","example":{"generation_url":"https://example.invalid/pruna/p-video-2/output.mp4","status":"succeeded"}}}}}}}}},"components":{"schemas":{"PrunaPVideo2Input":{"description":"P-Video-2 generation parameters. The generation is billed per second of the finished video, measured from the returned file, at a rate set by `resolution` and `draft`. The safety filter is always on; a `disable_safety_filter` value in the request is ignored.","properties":{"aspect_ratio":{"default":"16:9","description":"Aspect ratio: 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 or 1:1. Ignored when `image` is set.","type":"string"},"audio":{"description":"Input audio URI to condition the generation (flac, mp3 or wav). The output length follows the audio.","type":"string"},"draft":{"default":false,"description":"Faster, lower-quality preview, billed at the draft rate.","type":"boolean"},"duration":{"description":"Duration of the generated video in seconds (1-20). When omitted the model chooses the length from the prompt, up to 20 seconds. Ignored when `audio` is set.","maximum":20,"minimum":1,"type":"integer"},"fps":{"default":24,"description":"Frame rate: 24 or 48.","type":"integer"},"image":{"description":"Input image URI for image-to-video (jpg, jpeg, png or webp).","type":"string"},"last_frame_image":{"description":"Reference image URI for the last frame.","type":"string"},"prompt":{"description":"Text prompt for video generation.","type":"string"},"prompt_upsampling":{"default":true,"description":"Rewrite the prompt before generation. Disable it when a `seed` must reproduce a result.","type":"boolean"},"resolution":{"default":"720p","description":"Output resolution: 720p or 1080p.","type":"string"},"save_audio":{"default":true,"description":"Save the video with audio.","type":"boolean"},"seed":{"description":"Random seed for reproducible generation. Random when omitted.","type":"integer"}},"required":["prompt"],"type":"object"},"PrunaPredictionModeration":{"description":"Pruna's safety-checker verdict. Present on a failed status when content moderation blocked the prediction.","properties":{"blocked":{"description":"Whether the safety checker blocked the prediction.","type":"boolean"},"can_disable":{"description":"Whether the block comes from a safety filter the request could disable.","type":"boolean"},"categories":{"description":"Content-policy categories that triggered the block, for example sexual.","items":{"type":"string"},"type":"array"},"message":{"description":"Human-readable summary of the block.","type":"string"},"phase":{"description":"What was screened: input (the submitted request) or output (the generated video).","type":"string"},"reason":{"description":"Human-readable reason for the block.","type":"string"}},"type":"object"},"PrunaPredictionStatusResponse":{"description":"Status of a prediction.","properties":{"error":{"description":"Error message. Present when status is failed.","type":"string"},"generation_url":{"description":"URL of the finished video. Present when status is succeeded.","type":"string"},"message":{"description":"Human-readable progress message.","type":"string"},"moderation":{"$ref":"#/components/schemas/PrunaPredictionModeration"},"status":{"description":"Prediction status: starting, processing, succeeded, failed or canceled.","type":"string"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"pruna/p-video-2","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text","image","audio"],"x-comfy-router-output-modalities":["video","audio"]}
