Self-Learning Constraints
Some model requirements are missing from the published schema. When fal.ai rejects an input, modelBridge can extract certain supported limits from the validation error and use saved limits in later preflight checks.
Learning is conditional. A rejection can recur if its cause is ambiguous, its constraint type is unsupported, the extracted values are rejected, or storage or preflight cannot apply the result. Another submitted attempt may cost money.
How It Works
Section titled “How It Works”1. A generation fails
Section titled “1. A generation fails”A provider validation error may state a media requirement, such as a minimum image dimension. A billing, network or unrelated processing error is not evidence of a new media limit.
2. modelBridge evaluates the requirement
Section titled “2. modelBridge evaluates the requirement”The learner admits certain error types, extracts values and rejects implausible or contradictory bounds. It can return without saving a limit. A number in an error message is not automatically a trustworthy constraint.
3. Later attempts can be checked
Section titled “3. Later attempts can be checked”Supported saved requirements inform later media validation. A detected local violation can show an input error and disable Generate before a new submission. That local refusal starts no new generation; it does not say whether an earlier request was charged.
What It Catches
Section titled “What It Catches”Supported checks include several image-dimension, file-size, aspect-ratio and media-duration bounds. Coverage depends on the model, error format and media field. A new provider constraint type does not automatically become an implemented preflight check.
The Acknowledgment
Section titled “The Acknowledgment”The panel can report that it learned a requirement. Treat this as feedback about that learning attempt, not a guarantee that every future input or storage operation has been verified. If the error recurs, review the requirement and adjust the media before submitting again.
Constraint Priority
Section titled “Constraint Priority”Published schema constraints and supported learned values both inform validation. A learned value only fills a gap: where the schema states a limit, the schema’s limit is used. Learned data is supplementary; it is not a substitute for the model’s current documented requirements or proof that every constraint is enforced.
Restoring Learned Limits
Section titled “Restoring Learned Limits”Learned limits are kept in two places: the panel’s local storage and a file in modelBridge’s data folder. If the panel’s storage is cleared, they are restored from the file. Recovery depends on the file still being present and readable; learned limits are not rebuilt from your generation history.
Staleness
Section titled “Staleness”Learned data is timestamped and versioned; a record from an older version is discarded rather than trusted. Provider changes can make it stale. A learned limit older than 30 days no longer blocks Generate, a violation shows as a warning instead, until a new rejection refreshes it. If a saved limit disagrees with the model’s current requirements, report the discrepancy.
Persistence Through Updates
Section titled “Persistence Through Updates”Learned data has disk storage outside the extension’s code folder, so an update or a new CEP profile need not erase it. Missing, corrupt or unreadable storage can prevent restoration. Retain backups before a clean reinstall or deliberate data reset.
Endpoint and Schema Adaptation
Section titled “Endpoint and Schema Adaptation”Catalog identity and migration data can update known endpoint paths. This does not discover every provider rename or guarantee that an old workflow remains supported.
Silent endpoint migration
Section titled “Silent endpoint migration”A known catalog mapping can update the installed endpoint identity while retaining references used for history and recovery. If there is no safe mapping, the model may still require attention or a replacement.
Schema drift detection
Section titled “Schema drift detection”Schema refresh and re-parsing can bring changed fields into the form. Cached data, failed fetches and unsupported field types can still leave missing or stale controls. Check the provider requirements if a previously working configuration starts failing.
Graceful deprecation
Section titled “Graceful deprecation”Availability checks can flag or hide unavailable models after refreshed evidence. They can lag behind a provider change and do not guarantee that every deprecation is detected before a request is submitted.