{"openapi":"3.0.2","info":{"title":"wavespeed/seedvr2","description":"The request body Comfy Router accepts for the model \"wavespeed/seedvr2\", 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":"a81764174cd8"},"paths":{"/v2/models/wavespeed/seedvr2":{"post":{"operationId":"runRouterModel","summary":"Run wavespeed/seedvr2 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for WavespeedAI image upscaling. One component serves both wavespeed/seedvr2 and wavespeed/ultimate-image-upscaler, which take the same request shape.","example":{"image":"https://images.pexels.com/photos/346529/pexels-photo-346529.jpeg","target_resolution":"4k"},"properties":{"enable_base64_output":{"default":false,"description":"If enabled, the output will be encoded into a BASE64 string instead of a URL.","type":"boolean"},"image":{"description":"The URL of the image to upscale.","type":"string"},"output_format":{"default":"jpeg","description":"The format of the output image.","enum":["jpeg","png","webp"],"type":"string"},"target_resolution":{"default":"4k","description":"The target resolution of the output image.","enum":["2k","4k","8k"],"type":"string"}},"required":["image"],"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":{"description":"Comfy Router output schema for the WavespeedAI upscalers: the terminal `GET /api/v3/predictions/{prediction_id}/result` document, forwarded unchanged. All three ids are SUBMIT-AND-POLL - `routerresult/classification.go` records each `POST /proxy/wavespeed/api/v3/wavespeed-ai/...` submit as `ReturnModeSubmitPoll`, all three naming the one shared prediction-result poll route - and Router polls on the caller's behalf, so the body a caller receives is the finished prediction rather than the task handle the underlying submit answers with.\nONE document describes a VIDEO super-resolution model and two IMAGE upscalers, because Wavespeed answers one. `wavespeed/flashvsr` upscales video and `wavespeed/seedvr2` and `wavespeed/ultimate-image-upscaler` upscale images, but all three are polled on the same status route, that route answers the same envelope, and the finished asset arrives in the same `data.outputs[]` list whichever it is. The three ids publish different `example` values for that reason and only that reason.\nTHE ASSET IS `data.outputs`, a list of STRINGS - not objects with a URL inside, so there is no deeper field to key completion off. Each element is normally a URL to the generated content: an MP4 for `wavespeed/flashvsr`, an image for the two upscalers. The two IMAGE ids can return the bytes INLINE instead: their request schema declares `enable_base64_output`, Router forwards it verbatim, and a caller who sets it receives base64 in these same elements. That is why the element is an unformatted `string` rather than a `uri` - read it as a URI only after checking it looks like one. `wavespeed/flashvsr` has no such field, so its elements are always URLs.\nA completed prediction carrying an empty `outputs` is a success that produced nothing, and through Router that case never reaches the caller as this document: Router answers it as a Comfy Router error instead, so a `200` here always carries at least one output.\nThe URLs are WavespeedAI's own delivery links and they EXPIRE. Router does not re-host this content onto Comfy storage, so what a caller receives is Wavespeed's short-lived URL rather than a Comfy one - download the asset rather than storing the link.\n`data.status` is deliberately NOT narrowed to an enum on this surface. Router forwards the field exactly as Wavespeed spelled it and the poll classifier compares it only after lower-casing and trimming, accepting `completed`, `succeeded`, `success` and `done` as terminal successes - so a legitimate success may arrive spelled `Completed` or `succeeded`, which a four-value lower-case enum would reject. A caller that must branch on it should lower-case first and treat any of those four as success.\n`code` and `message` are Wavespeed's own envelope-level status, not the transport one; `data.error` is the provider's free-text failure reason and is an empty string on the successful document this schema describes. `data.timings.inference` is Wavespeed's own measurement in milliseconds, not the Comfy charge.","example":{"code":200,"data":{"created_at":"2027-01-01T00:00:00Z","error":"","id":"3f6c1a90-2b47-4d18-9a55-7c0e8b21d4f3","outputs":["https://example.invalid/wavespeed/seedvr2/upscaled.png"],"status":"completed","timings":{"inference":4200}},"message":"success"},"properties":{"code":{"description":"WavespeedAI's own envelope status code, mirroring an HTTP status (200 on the document this schema describes). Wavespeed reports some failures here rather than in the transport status.","type":"integer"},"data":{"properties":{"created_at":{"description":"ISO-8601 timestamp of when Wavespeed created the prediction.","type":"string"},"error":{"description":"Wavespeed's free-text failure reason, an empty string when there is none. A prediction that genuinely failed reaches a Router caller as a Comfy Router error rather than as this document.","type":"string"},"id":{"description":"Wavespeed's identifier for the prediction Router submitted and polled.","type":"string"},"model":{"description":"The Wavespeed model id the prediction ran on.","type":"string"},"outputs":{"description":"The finished generation. Present and non-empty on the document Router returns; this list IS the result. Each element is a URL to the generated content - an MP4 for `wavespeed/flashvsr`, an image for the two upscalers - or, for the two image ids when the request set `enable_base64_output`, the base64-encoded bytes themselves. The links are Wavespeed's own and expire.","items":{"type":"string"},"minItems":1,"type":"array"},"status":{"description":"The prediction's terminal state as Wavespeed spelled it. Not narrowed to an enum here: Router forwards the value unchanged and the poll classifier lower-cases before comparing, so a success can legitimately arrive as `completed`, `succeeded`, `success` or `done`, in any case.","type":"string"},"timings":{"description":"Wavespeed's own timing measurements.","properties":{"inference":{"description":"Inference time in milliseconds. Wavespeed's number, not the Comfy charge.","type":"integer"}},"type":"object"},"urls":{"description":"Wavespeed's own links for the prediction.","properties":{"get":{"description":"The prediction-result URL Router polled.","type":"string"}},"type":"object"}},"required":["status","outputs"],"type":"object"},"message":{"description":"Envelope status message, for example `success`.","type":"string"}},"required":["data"],"type":"object"}}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"wavespeed/seedvr2","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["image"],"x-comfy-router-output-modalities":["image"]}
