{"openapi":"3.0.2","info":{"title":"pika/pika-soundtrack","description":"The request body Comfy Router accepts for the model \"pika/pika-soundtrack\", 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":"2cc6a5b6ef52"},"paths":{"/v2/models/pika/pika-soundtrack":{"post":{"operationId":"runRouterModel","summary":"Run pika/pika-soundtrack synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for `POST /proxy/pika/v1/media/pika/pika-audio/pika-soundtrack`.","example":{"seed":-1,"video":"https://cdn.pika.art/v2/media/uploads/a7112d4d-62ed-4a11-8dee-74e89c2ec037/ae79aabfd458427495cf462f49e1cecc.mp4"},"properties":{"instruction":{"description":"What the audio should be and how it follows the action. Omit it for sound design from the video alone.","type":"string"},"seed":{"default":-1,"description":"Seed from -1 to 2147483647. -1 picks a random seed.","maximum":2147483647,"minimum":-1,"type":"integer"},"video":{"description":"URL of the source video, H.264 or HEVC, at most 1200 seconds and 2 GB.","type":"string"}},"required":["video"],"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/PikaMediaJob"}],"description":"Comfy Router output schema for Pika's video models: the terminal `GET /proxy/pika/v1/media/jobs/{request_id}` job document. The produced video is at `output.video.url`. Pika's `billing` record is removed.","example":{"id":"media_8f3a2c91-5b7d-4e0a-9c26-31d4f2a8e6b0","output":{"media_type":"video","video":{"content_type":"video/mp4","url":"https://example.invalid/pika/video.mp4"}},"status":"completed"}}}}}}}}},"components":{"schemas":{"PikaMediaAsset":{"description":"One generated media file.","properties":{"content_type":{"description":"MIME type of the file.","nullable":true,"type":"string"},"url":{"description":"Download URL of the generated file.","type":"string"}},"type":"object"},"PikaMediaJob":{"description":"A Pika job.","properties":{"error":{"$ref":"#/components/schemas/PikaMediaJobError"},"id":{"description":"Job id used to poll for status.","type":"string"},"model_id":{"description":"The Pika catalog entry the job ran.","nullable":true,"type":"string"},"output":{"$ref":"#/components/schemas/PikaMediaJobOutput"},"status":{"description":"Job status: queued, running, completed or failed.","type":"string"},"usage":{"additionalProperties":true,"description":"Units Pika reported for the job.","nullable":true,"type":"object"}},"type":"object"},"PikaMediaJobError":{"description":"Set on a `failed` job.","nullable":true,"properties":{"code":{"description":"Machine-readable failure code, such as invalid_input, content_moderation or provider_error.","type":"string"},"message":{"description":"Diagnostic text.","type":"string"}},"type":"object"},"PikaMediaJobOutput":{"description":"The finished job's media, set when `status` is `completed`.","nullable":true,"properties":{"audio":{"$ref":"#/components/schemas/PikaMediaAsset"},"media_type":{"description":"Which field carries the file: video or audio.","type":"string"},"video":{"$ref":"#/components/schemas/PikaMediaAsset"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"pika/pika-soundtrack","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["video","text"],"x-comfy-router-output-modalities":["video","audio"]}
