{"modality":"image","operations":["image-upscale"],"commonArguments":["references","prompt","negativePrompt","outputFormat","seed"],"modelSpecificArguments":["scale","strength"],"defaults":{"scale":2},"capabilities":{"resolutions":[],"aspectRatios":[],"references":{"types":["image"],"maximum":{"image":1},"totalMaximum":1},"frames":{"first":false,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"unsupported","countMaximum":1},"promptRequired":false,"promptMaximum":4000,"verification":"documented","sources":[{"url":"https://fal.ai/models/fal-ai/clarity-upscaler","checkedAt":"2026-12-01"},{"url":"https://github.com/philz1337x/clarity-upscaler","checkedAt":"2026-12-01"}],"notices":["Documented image-upscale schema derived from fal-ai/clarity-upscaler. Output dimensions scale with the input image and scale factor; megapixel billing is not flat per image."],"modelId":"clarity/clarity-upscaler","operation":"image-upscale","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"references":{"maxItems":1,"type":"array","items":{"type":"object","properties":{"type":{"enum":["image"]},"asset":{"anyOf":[{"type":"object","properties":{"assetKey":{"type":"string","minLength":1,"maxLength":300}},"required":["assetKey"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}]}},"required":["type","asset"],"additionalProperties":false},"allOf":[{"contains":{"required":["type"],"properties":{"type":{"const":"image"}}},"minContains":0,"maxContains":1}],"minItems":1},"prompt":{"type":"string","maxLength":100000},"negativePrompt":{"type":"string","maxLength":20000},"outputFormat":{"type":"string","enum":["png","jpeg","webp"]},"seed":{"type":"integer","minimum":-1,"maximum":9007199254740991},"scale":{"type":"number","minimum":1,"maximum":4,"default":2},"strength":{"type":"number","minimum":0,"maximum":1}},"additionalProperties":false,"allOf":[{"not":{"required":["size","resolution"]}},{"not":{"required":["size","aspectRatio"]}}],"required":["references"],"x-opengen":{"modelId":"clarity/clarity-upscaler","operation":"image-upscale","capabilities":{"resolutions":[],"aspectRatios":[],"references":{"types":["image"],"maximum":{"image":1},"totalMaximum":1},"frames":{"first":false,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"unsupported","countMaximum":1},"notices":["Documented image-upscale schema derived from fal-ai/clarity-upscaler. Output dimensions scale with the input image and scale factor; megapixel billing is not flat per image.","Runtime validation also checks model-specific combinations, media contents and regional route restrictions."],"sources":[{"url":"https://fal.ai/models/fal-ai/clarity-upscaler","checkedAt":"2026-12-01"},{"url":"https://github.com/philz1337x/clarity-upscaler","checkedAt":"2026-12-01"}]}},"examples":{"request":{"modelId":"clarity/clarity-upscaler","operation":"image-upscale","input":{"scale":2,"references":[{"type":"image","asset":{"assetKey":"REPLACE_WITH_OWNED_ASSET_KEY"}}]},"billing":"managed"},"generate":{"operationId":"media.generate","input":{"modelId":"clarity/clarity-upscaler","operation":"image-upscale","input":{"scale":2,"references":[{"type":"image","asset":{"assetKey":"REPLACE_WITH_OWNED_ASSET_KEY"}}]},"billing":"managed"},"idempotencyKey":"REPLACE_WITH_SAVED_IDEMPOTENCY_KEY"},"cli":"opengen generate --input request.json --idempotency-key \"$OPENGEN_IDEMPOTENCY_KEY\"","placeholders":["input.references.0.asset.assetKey"],"notices":["Template only. Replace owned asset placeholders after upload prepare/PUT/complete; edit the prompt before submitting.","Inspect published route pricing, regional restrictions and budget before authorizing a separate billable submission. Persist a unique idempotency key with the request before submitting.","Managed billing is explicit in this example. Select BYOK only when the user chooses their provider account as payer; unknown direct charges cannot be capped by OpenGen."]}}