/firefly-services:firefly-custom-modelsfrom firefly-services
Train, manage, and invoke Adobe Firefly Custom Models — subject vs style models, training data preparation (10-30 reference images), training submission and polling, asset ID management, generation with `customModelId` and `x-model-version: image3_custom`, retraining cadence, and brand-aligned generation at scale. Use whenever the user mentions "custom model", "brand model", "train a model", "fine-tune Firefly", "subject model", "style model", "Custom Models API", `customModelId`, or describes iconography / brand-asset / character generation that requires consistency. Encodes the production pattern for brand iconography workflows where custom-model output dramatically reduces design cycle time.
Ships in firefly-services. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use brand-aligned generative models. Custom Models capture distinctive aesthetics, characters, objects, or compositional patterns from 10-30 reference images and apply them to new generations via customModelId. This is the production pattern for brand-guardrail generative workflows.
Important — training happens in the Firefly web UI, not the API. There is no public REST API for training or deleting custom models — but listing exists:
GET /v3/custom-modelsenumerates the org's models (live-verified 2026-08-10; returns{"custom_models": [...], "total_count": n}with pagination links). Models are trained interactively in the Firefly web app (firefly.adobe.com). Entitlement tip: on a credential whose org has no custom-model access, the API rejects the header outright — 422Invalid x-model-version: image3_custom. Must be one of: ['image3', 'image3_fast']— which makes a one-call entitlement check. The Firefly Services API only consumes a trained model at generation time viacustomModelIdplus thex-model-version: image3_customheader. This skill covers preparing data, training in the web UI, finding the model's asset ID, and generating with it.
Use this skill when:
Do NOT use this skill when:
| Model type | Captures | Use for |
|---|---|---|
| Subject | A specific character, product, or object | "Generate our brand mascot in different scenarios" |
| Style | Color palette, brush technique, composition language | "Generate any image in our brand's icon style" |
You cannot mix — a model is either subject or style. For a workflow that needs both (specific character in specific style), train two models and use them together via the reference parameters.
For enterprise brand iconography, style models (not subject) are the right choice. Train one style model per distinct icon treatment your brand uses — typical sets include light, dark, and functional variants. Each model is trained on 10-30 examples that share the visual treatment. Workflow:
Result: icon production cycle time can be reduced dramatically — from days or weeks of design work down to a single review-and-polish session.
Quality of training data is the dominant factor in output quality. The single biggest mistake is uploading bad data.
10-30 images of the same subject from varied angles, lighting, and contexts. The model needs to learn what is consistent about the subject — uniform images teach nothing about variation.
10-30 images that share the visual style you want to capture. They should NOT all be the same subject — different subjects rendered in the same style is what teaches the model to apply the style independent of content.
| Property | Requirement |
|---|---|
| Resolution | At least 1024×1024 for each image |
| Format | JPEG or PNG |
| File size | Under 8MB per file |
| Subject framing (subject models) | Subject prominent, varied background, varied angle |
| Style consistency (style models) | All examples truly in target style — exclude outliers |
| Diversity (style models) | Different subjects across examples |
| Quantity | 10 (minimum useful), 20-30 (sweet spot), beyond 30 (diminishing returns) |
Filter aggressively. A 15-image set of strong examples beats a 30-image set with 5 weak ones.
Custom Models are trained interactively in the Firefly web app (firefly.adobe.com) by a user with a Custom Models entitlement — not via a REST call. The workflow:
| Pattern | Example |
|---|---|
<brand>-<purpose>-<variant> | brand-light-icon-style |
| Use kebab-case, no spaces, no special chars | |
| Keep under 50 chars | |
| Include version if iterating | brand-light-icon-style-v2 |
Names appear in the web app, audit trails, and downstream dashboards. Good names save weeks of "which model was that?".
When training completes, the model exists as an asset in your Firefly account. Open the model in the Firefly web app and copy its asset ID (assetId). That asset ID is exactly the value you pass as customModelId in generation requests — they are the same identifier. Record it in your model registry alongside the model name and version.
Generate with the model by passing its asset ID as customModelId and sending the x-model-version: image3_custom header:
curl --silent -X POST 'https://firefly-api.adobe.io/v3/images/generate' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-Api-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'x-model-version: image3_custom' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "an icon of a key",
"customModelId": "00000000-0000-0000-0000-000000000000",
"contentClass": "art",
"size": {"width": 1024, "height": 1024}
}'
The x-model-version: image3_custom header is required — without it, the request runs against the base Firefly model and ignores customModelId. This is the #1 silent failure mode in custom-model workflows.
Retraining and deleting custom models is done in the Firefly web app; enumerate them programmatically with GET /v3/custom-models (live-verified). Still maintain your own registry mapping model name → asset ID (customModelId) → version so generation services can look up the right ID. Treat asset IDs as long-lived; deleting a model in the web app cannot be undone, so confirm before removing one that is in production.
Models capture a moment-in-time of brand aesthetics. When the brand evolves, the model must too.
| Trigger | Action |
|---|---|
| Brand refresh (logo, color, typography change) | Retrain all related models |
| New product launches | Train new subject model; keep old for legacy assets |
| Adobe releases a new base model version | Test existing custom models against it; some require re-training |
| Output quality has visibly drifted | Audit training data, retrain with refreshed examples |
Version models explicitly: <name>-v2, <name>-v3. Maintain a registry of which version is in production. The registry can live in your own configuration or asset-management system.
Multi-customer FDE deployments maintain a separate model library per customer. Models are not shared across customers — both for IP-protection reasons and because brand styles do not transfer.
| Customer | Models |
|---|---|
| Customer A | a-product-subject, a-marketing-style |
| Customer B | b-icon-light-style, b-icon-dark-style, b-icon-functional-style |
Each customer's model IDs are stored in their config (or in a per-account profile). The serving layer looks up the right ID per-request.
Custom models combine with reference images:
{
"prompt": "an icon of a key",
"customModelId": "brand-light-icon-style-id",
"structure": {
"imageReference": {"source": {"uploadId": "abc-123"}},
"strength": 60
}
}
The custom model dictates style; the structure reference dictates composition. Powerful for icon generation where consistent style + specific shape is needed.
A custom-model workflow is production-ready when:
customModelId (asset ID) in a model registryx-model-version: image3_custom (this is the silent failure)x-model-version header missing: Generation silently uses the base model. Custom output looks generic. Add the header.firefly-services-rate-limits.customModelId returns 404: Confirm the credential's IMS org matches the org that trained the model. Custom models are scoped to the training org. Also confirm the asset ID was copied correctly.firefly-services-storage-refs — Storage references for reference images used at generation timefirefly-generate-image-v3-async — Generation pipelinefirefly-services-troubleshoot — When generation failsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub focus-gts/firefly-services-skills --plugin firefly-services19 skills in this plugin
/firefly-batch-pipelineThe end-to-end production reference architecture for high-volume generative campaign workloads on Adobe Firefly Services — SQS-fronted intake, Lambda worker pool with per-credential token-bucket pacing, Step Functions orchestration for multi-stage PSD composition, DynamoDB job state, S3 result persistence, DLQ replay, and webhook-driven customer notification. Use whenever the user mentions "batch pipeline", "campaign at scale", "thousands of images per day", "generative pipeline", "campaign assembler", "asset factory", "production-grade pipeline", or designs a system that combines Firefly generation with Photoshop composition at volume. Stitches `firefly-services-rate-limits` and `photoshop-api-composition` into a single deployable blueprint./firefly-brand-guardrailsEnforce brand compliance on generative output — custom-model lock-in, prompt and output content filtering, asset tagging for downstream policy, and the human-review queue pattern for regulated or brand-sensitive workloads. Use whenever the user mentions "brand compliance", "brand safety", "regulated industry", "review queue", "approval workflow", "content moderation", "brand guardrails", "legal review", "compliance hold", or generates assets for financial services, pharma, automotive, public sector, or any customer with a brand-review process. Encodes the production guardrail pattern that turns "Firefly generates whatever it wants" into "every asset that ships passes a documented compliance gate."Other plugins' skills for the same job