How to lock AI model versions for consistent campaign output
Pin exact model versions for reproducible results. Lock [email protected] across your campaign so every CI run produces identical output.
- Category: SKILLS
- Reading time: 4 min
- Difficulty: Advanced
What you'll learn
- How to pin specific AI model versions instead of using latest
- How to maintain visual consistency across campaign assets
- How to reproduce exact outputs weeks or months later
- How to prevent model updates from breaking your production workflow

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
- Exact version[email protected] — locks to that specific release, never auto-updates
- Major versionflux-2-pro@1 — accepts 1.x updates, blocks 2.x breaking changes
- Minor version[email protected] — accepts 1.3.x patches, blocks 1.4 feature releases
- Latest (default)flux-2-pro — always uses newest version, no lock
- Project lock file.model-lock.json — team-wide version locks, committed to git
Frequently asked questions
- Model version pinning locks your AI generations to a specific model release instead of always using the latest version. You specify [email protected], and every generation uses that exact version — even if 1.4 or 2.0 releases. This keeps campaign assets visually consistent over time and prevents model updates from breaking your production workflow.
