How to lock AI model versions for consistent campaign output

What you'll learn
What is a pinned model registry?
Common use cases
Pin your model versions step by step
STEP 1: Check available model versions
- On web: Run gen-ai models --list to see all models and their version history
- On mobile: Not available — version pinning requires CLI access on desktop
STEP 2: Pin a specific version
Add the version number to your model flag:
- Exact version: --model [email protected] locks to version 1.3 permanently
- Major version: --model flux-2-pro@1 accepts any 1.x release, blocks 2.x
- Latest (default): --model flux-2-pro uses newest available version each run
- Project lock file: Save pinned versions in .model-lock.json for team consistency

STEP 3: Test reproducibility
Run the same prompt with the pinned version multiple times. Compare outputs. They should be visually identical — same composition, same style, same quality. If results vary, check that your seed value is also locked.
STEP 4: Update versions when ready
When a new model version releases, test it separately: Not happy with the new version? Keep using the pinned version. Happy? Update your lock file and regenerate campaign assets to match.
- Generate test assets with the new version
- Compare quality, style, and consistency against your pinned version
- Decide whether to upgrade based on real results, not marketing claims
Tips for best results
💡 Lock seed values along with model versions
Pinning the model version isn't enough for true reproducibility. Also lock your random seed with --seed 42. Same model version + same seed + same prompt = identical output every time.
💡 Create a lock file for team consistency
Save pinned versions in a .model-lock.json file at your project root. Commit it to version control. Everyone on your team uses the same model versions. No surprises when someone regenerates an asset months later.
💡 Test new versions in a separate branch
When a model updates, create a test branch. Generate assets with the new version. Compare against your production outputs. Only merge if the new version meets your quality bar. Don't upgrade blindly.
💡 Document why you chose each version
Add comments to your lock file explaining version choices. "[email protected]: best photorealism for product shots." Helps future you remember why you locked at that version when 2.0 is available.
Version pinning syntax
Frequently asked questions

Need consistent results?
Stop worrying about model updates breaking your workflow. Lock versions and control when you upgrade.
Pin model versions