{"openapi":"3.0.2","info":{"title":"fal/crystal-upscaler","description":"The request body Comfy Router accepts for the model \"fal/crystal-upscaler\", 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":"2b7b1d69eaa6"},"paths":{"/v2/models/fal/crystal-upscaler":{"post":{"operationId":"runRouterModel","summary":"Run fal/crystal-upscaler synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for Clarity AI's Crystal Upscaler on fal (clarityai/crystal-upscaler): upscale a single image, with a focus on faces, skin and eyes.","example":{"image_url":"https://storage.googleapis.com/falserverless/gallery/patina-blog-hero-render.png","scale_factor":2},"properties":{"creativity":{"default":0,"description":"How much new detail the model may invent. 0 keeps closest to the input.","maximum":10,"minimum":0,"type":"number"},"image_url":{"description":"URL of the input image (JPEG, PNG, WebP, GIF or AVIF, at most 100 MB).","type":"string"},"output_format":{"default":"jpg","description":"Output image format: png or jpg.","type":"string"},"scale_factor":{"default":2,"description":"Factor applied to each side of the input image. fal bills per output megapixel, so the price grows with the square of this value.","maximum":200,"minimum":1,"type":"number"}},"required":["image_url"],"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/FalCrystalUpscalerResponse"}],"description":"Comfy Router output schema for Clarity AI's Crystal Upscaler on fal: the terminal `GET /proxy/fal/clarityai/crystal-upscaler/requests/{request_id}` queue RESULT document, forwarded unchanged except for the re-hosted `images[].url`. The operation is submit-and-poll on fal's queue — the submit answers a `FalQueueStatus` handle and the result route answers this document once the request is COMPLETED.\nThe upscaled image is at `images[].url`. `content_type`, `file_name`, `file_size`, `width` and `height` describe the same file. Each is optional and may be null, and fal sends `width` and `height` as null, so read the dimensions from the file itself.\nThe result route re-hosts the image onto Comfy storage and rewrites its `url` to a Comfy-signed URL valid for up to 24 hours. An image whose re-host could not be performed keeps fal's own CDN URL.\nCOMFY ROUTER DOES NOT RUN THIS MODEL TODAY. The catalog lists `fal/crystal-upscaler` and `GET /v2/models/fal/crystal-upscaler/openapi.json` publishes this document, but the operation has no `routerresult/classification.go` row, so `POST /v2/models/fal/crystal-upscaler` is refused before dispatch. The model is reachable today by calling `POST /proxy/fal/clarityai/crystal-upscaler` and then `GET /proxy/fal/clarityai/crystal-upscaler/requests/{request_id}` directly, which is where this document comes from.","example":{"images":[{"content_type":"image/png","file_name":"upscaled.png","file_size":1412332,"height":null,"url":"https://example.invalid/fal/crystal-upscaler/upscaled.png","width":null}]}}}}}}}}},"components":{"schemas":{"FalCrystalUpscalerImage":{"description":"An upscaled image file.","properties":{"content_type":{"description":"MIME type of the image file.","nullable":true,"type":"string"},"file_name":{"description":"Name of the image file.","nullable":true,"type":"string"},"file_size":{"description":"Size of the image file in bytes.","nullable":true,"type":"integer"},"height":{"description":"Height of the image in pixels. fal sends null.","nullable":true,"type":"integer"},"url":{"description":"URL of the upscaled image.","type":"string"},"width":{"description":"Width of the image in pixels. fal sends null.","nullable":true,"type":"integer"}},"required":["url"],"type":"object"},"FalCrystalUpscalerResponse":{"description":"Result of a completed Clarity AI Crystal Upscaler request.","properties":{"images":{"description":"The upscaled images.","items":{"$ref":"#/components/schemas/FalCrystalUpscalerImage"},"type":"array"}},"required":["images"],"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"fal/crystal-upscaler","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["image"],"x-comfy-router-output-modalities":["image"]}
