Scenario Model Training
SkillDatabases & dataTrains a custom image model so generated pictures keep a consistent character, style, or product look.
Available today. Use it from your connected AI after setup.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Scenario Model Training skill
About this skill
Use when generated assets must keep a consistent style, character, or product look and references stop scaling, or when a user asks to train a custom model through the Scenario MCP, fine-tune a LoRA, clone a voice, curate a training dataset, choose a base model, set epochs and sample prompts, estima
What this skill tells your AI
The instructions your AI receives, as published by scenario-labs/skills in skills/scenario-model-training/SKILL.md and read by ahel’s review.
Overview
Train a custom model when one look must hold across many assets: an icon set, a recurring character, a product line. Prompts, references, and control maps are cheaper first steps: see scenario-consistency. Before quoting a training run, run the reference test scenario-consistency teaches for the subject at hand: the approved art as style references (with the prompt saying they set the style only) for a look, the hero as a subject reference for a character or product. At authoring time a style test matched the look of a custom LoRA on the same brief at a comparable per-image price, for the cost of one generation. Train when that test drifts across the set, not before; the worked example below starts after it.
The judgment calls live in two references: references/base-model-selection.md (the user interview that feeds recommend_training) and references/dataset-curation.md (dataset size, image rules, captions, and review per training type).
Connection and the core generation loop: see the scenario skill. If a sibling skill named here is missing from your available skills, ask the user to install it (npx skills add scenario-labs/skills --skill <name>); unattended, proceed from tool schemas and flag the gap.
Training tools are not in the default toolset: get schemas with scenario_tools_search, run reads (recommend_training, model_get) via scenario_tool_execute_read and writes (model_create, train, model_update) via scenario_tool_execute_write, or reconnect with ?toolsets=full.
Quick reference
| Step | Tool |
|---|---|
| Pick a base architecture | recommend_training (LLM-powered, cost-bearing) |
| Create the model shell | model_create (data.type from the recommendation) |
| Upload the dataset | upload_asset + upload_asset_complete |
| Attach training images | train action upload_images, 10 asset ids per call |
| Estimate cost | train action configure with dry_run: true (a quote, no job) |
| Preview every epoch | config.sample_prompts, at least one on any multi-epoch run |
| Launch | train action start, with the same config or bare for defaults |
| Wait | jobs_wait with the returned job id |
| Generate | model_schema_get on YOUR model id, then model_run |
| Manage | models_list, model_get, model_update |
Worked example: a style LoRA for game props
recommend_trainingwithprompt: "hand-painted prop icons for a mobile RPG",modality: "image",dataset_shape: "single_images", plussubject,style, andpriorityfrom the interview. Returns a recommended variant, alternatives, anddataset_requirements(shape and size bounds). Cost-bearing: call it once with clear intent.model_createwithdata: {"name": "rpg-prop-icons", "type": "<type from step 1>"}. Note the returned model id.- Curate the set first (dataset reference), matching
dataset_requirementsfrom step 1, then upload each file withupload_assetplusupload_asset_complete(see thescenarioskill) and collect the asset ids. Forimage_pairsdatasets, map pairs withtrainactionset_pairs. trainwithaction: "upload_images",model_id,images: [<asset ids>], at most 10 per call (see Dataset limits); it changes data, so passteam_idandproject_id(scope: thescenarioskill).trainwithaction: "configure",config: {"epochs": 12, "sample_prompts": ["a rusty lantern icon, centered, plain field", "a blue mana potion icon, three-quarter view, plain field"]},dry_run: truereturns the quote and starts nothing.epochsis the main cost lever (scales linearly); size the other levers by dataset size (dataset reference).sample_promptsis not optional on a multi-epoch run: the trainer publishes a per-epoch checkpoint only for a run that has them, so a run without them finishes with its final weights alone, one epoch to choose from whateverepochssaid, and a model that ends up overfit has nothing earlier to fall back to (a 12-epoch run that came back with a single selectable epoch was this). Caps are per family, 8 on the Flux LoRA family and 4 on Flux.2, Qwen and ZImage LoRAs at authoring time, so read them off thetrainschema. Write prompts that test the concept off-dataset, following the caption rules of the training type (a style set names new subjects and never the style; a character set leads with the trigger word and a new pose or setting): they are the previews you pick the epoch from, and generic prompts return generic scenes at every epoch, which is how one run spent its whole quote on twenty previews of four unrelated landscapes. Edit families takesample_source_images, one asset id per prompt in the same order; every other family rejects the field. Show the user the quote and get a go-ahead, then launch withaction: "start"and the sameconfig(unattended, launch only when the task already authorized training or a budget covering it; otherwise stop and report the quote).configurealways quotes and never launches;dry_run: falsethere is rejected. Onlystartlaunches training;startwithdry_run: truequotes instead. Treatstartas spending the whole quote: do not count onstopreturning any of it.- The launch response includes a job:
jobs_waitwith its id injob_ids. No job id means nothing launched: report it instead of retrying. Training outlasts the server wait budget, so re-call with the returnedpending_job_idsuntil completed; never polljob_get. - Pick the epoch from the previews before generating: they sit on the model page in the web app, and the strongest is rarely the last. The pick is the user's; unattended, generate with the model as trained, say that the epoch choice was left open, and continue. Then
model_schema_geton your new model id andmodel_run; custom models carry their own parameter contract. A LoRA runs on the base that the schema'sruns_asandrun_with.required_argumentsname (seescenario) and on no other variant of its family, with one documented exception, the Z-Image LoRAs that carry across the Z-Image variants (base reference). Asize mismatchorweight dimensionerror at generation means another variant was sent as the base, not that the training failed: do not retrain, re-readrun_withand run the pair it names. - Manage:
models_listwithfilters: {"privacy": "private", "status": "trained"}lists ready models.model_getwithinclude_description: truefetches the full docs;model_updateedits name, descriptions, privacy.
Dataset limits that stop a run
Nearly every train failure is dataset handling, not hyper-parameters.
- Ten ids per call.
upload_imagestakes at most 10 asset ids; more returns 400Too many assetIds provided in a single request. Call once per 10-id chunk: the model accumulates the whole set. - Chunks must not overlap. Re-sending an id already attached returns 400
The provided assetId is already a training image of this model. After a partial failure, re-send only the chunks that did not land. - Two separate plan ceilings. Dataset size is capped per team: past it,
upload_imagesreturns 429 namingadd-training-imagewith the ceiling inactionLimit. Chunking cannot bypass it: trim to the strongest images or surface the upgrade. Concurrent trainings are capped separately asparallel-training, and some plans set it to zero. - Images before configuration.
configureorstarton an empty dataset fails validation on the training-image count. Pair datasets need whole pairs, with a family minimum above one. - One launch at a time. Once a run is live, launching again returns 400
Model is already training: wait withjobs_waitortrainaction: "stop". Repeated launches also hit a cooldown whose 429 namesremainingSeconds.
Common mistakes
- Training for a one-off. One on-style image is a prompt plus reference job; the public catalog holds many trained LoRAs,
searchfirst. - Reading the same wrong face on every output as ordinary drift. A model that reproduces one consistent stranger learned the captions, not the pictures: the images carried too little identity signal, usually because they were all derived from one source image and only look varied, so the dataset reads as near-duplicates of one composition. Fix the dataset (genuinely different shots, captions naming only the variables, a trigger word), not the epochs (dataset reference).
- Using
recommend_trainingto pick a generation model: it only picks training bases; userecommendorsearch. - Passing local paths or URLs to
train: upload withupload_assetfirst and pass asset ids; anything else surfaces as a body-shape error namingassetId. - Reading 400
Custom models only are supported for this endpointas a parameter problem: the route accepts your own trained models only; re-read the id frommodels_list. - Launching several epochs with no
sample_prompts: the run completes, but with one epoch and no previews, so the quote bought no comparison. - Treating a quote as a launch.
configurereturnstraining_started: falseand no job; launch throughstartonly after approval and require a job id before waiting. - Filtering
models_listwithstatus: "ready": free-form values are silently ignored, returning everything including deleted models. Use"trained". model_updatedata.tagsreplaces the whole tag set; usemodel_add_tags/model_remove_tagsfor diffs.- Expecting an older base from
recommend_training: the default excludes legacy families; setlegacy_ok: trueonly when a project must stay on one.
Voice cloning
Voice cloning starts from the same recommend_training call with modality: "voice" and dataset_shape: "short_audio" or "long_audio"; the returned type feeds model_create the same way.
Signals
- GitHub stars
- 681
- Forks
- 82
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
scenario-model-training- Source
- github.com/scenario-labs/skills