{"openapi":"3.0.2","info":{"title":"fal/patina","description":"The request body Comfy Router accepts for the model \"fal/patina\", 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":"49a7800e6509"},"paths":{"/v2/models/fal/patina":{"post":{"operationId":"runRouterModel","summary":"Run fal/patina synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for the fal PATINA image-to-image model (fal-ai/patina): predict PBR maps from a single input image.","example":{"image_url":"https://storage.googleapis.com/falserverless/gallery/patina-blog-hero-render.png"},"properties":{"enable_safety_checker":{"default":true,"description":"Enable the safety checker for images.","type":"boolean"},"image_url":{"description":"URL of the input image (photograph or render).","type":"string"},"maps":{"default":["basecolor","normal","roughness","metalness","height"],"description":"Which PBR maps to predict. Defaults to all five.","items":{"type":"string"},"type":"array"},"output_format":{"default":"png","description":"Output image format: jpeg, png, or webp.","type":"string"},"seed":{"description":"Random seed for reproducible denoising.","type":"integer"},"sync_mode":{"default":false,"description":"If true, return images as data URIs instead of CDN URLs.","type":"boolean"}},"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/FalPatinaMaterialResponse"}],"description":"Comfy Router output schema for fal PATINA: the terminal `GET /proxy/fal/fal-ai/patina/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.\n`fal/patina` is an OPERATION rather than a model version: all three PATINA routes (`/patina`, `/patina/material`, `/patina/material/extract`) share the one catalog id, and a `{provider}/{model}` call names the primary `POST /proxy/fal/fal-ai/patina` image-to-image generation. That operation predicts PBR material maps from a single input image, so its result is a set of TEXTURE IMAGES and not a video, despite sitting beside the H3 Max video ids under the same provider.\nThe generated assets are in `images`. Each entry carries a `url`, and every entry fal tags also carries a `map_type` naming which PBR map it is (`basecolor`, `normal`, `roughness`, `metalness`, `height`). Read `map_type` to tell them apart rather than relying on array order — `map_type` is optional on the leaf schema, so an untagged entry is representable and a caller must handle one rather than assume position identifies it. `seed` is the seed the textures were generated with and `prompt` is the prompt used, possibly expanded by the model. `timings` is a free-form end-to-end timing breakdown in seconds.\nThe result route re-hosts each 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, so one `images` array can mix both.\nCOMFY ROUTER DOES NOT RUN THIS MODEL TODAY. The catalog lists `fal/patina` and `GET /v2/models/fal/patina/openapi.json` publishes this document, but the operation has no `routerresult/classification.go` row, so `POST /v2/models/fal/patina` is refused before dispatch. This schema describes what fal's own result route returns, which is what the operation will answer if and when it is classified. The refusal is scoped to the Comfy Router route ALONE: the operation itself is reachable today by calling `POST /proxy/fal/fal-ai/patina` and then `GET /proxy/fal/fal-ai/patina/requests/{request_id}` directly, which is where this document comes from.","example":{"images":[{"map_type":"basecolor","url":"https://example.invalid/fal/patina/basecolor.png"},{"map_type":"normal","url":"https://example.invalid/fal/patina/normal.png"},{"map_type":"roughness","url":"https://example.invalid/fal/patina/roughness.png"}],"prompt":"weathered copper roof tiles","seed":1234567,"timings":{"inference":6.25}}}}}}}}}},"components":{"schemas":{"FalPatinaMaterialImage":{"description":"A generated texture or PBR map image.","properties":{"map_type":{"description":"The PBR map type (basecolor, normal, roughness, metalness, height). Absent for the base texture image.","type":"string"},"url":{"description":"URL of the generated image.","type":"string"}},"type":"object"},"FalPatinaMaterialResponse":{"description":"Response from the fal PATINA material generation model.","properties":{"images":{"description":"Generated tileable texture image plus the predicted PBR material maps. The base texture has only a url; each map entry also carries a map_type.","items":{"$ref":"#/components/schemas/FalPatinaMaterialImage"},"type":"array"},"prompt":{"description":"The prompt used for texture generation (possibly expanded).","type":"string"},"seed":{"description":"Seed used for texture generation.","type":"integer"},"timings":{"additionalProperties":true,"description":"End-to-end timing breakdown (seconds).","type":"object"}},"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/patina","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["image"],"x-comfy-router-output-modalities":["image"]}
