/firefly-services:firefly-generate-similarfrom firefly-services
Generate variations of an existing image using Adobe Firefly's Generate Similar API — how it differs from Generate Image with a style reference, when to use it for campaign variation generation, controlling variation diversity, multi-variation batches, and the production pattern for "give me 50 variations of this hero asset". Use whenever the user wants "variations", "more like this", "similar images", "generate-similar", "give me 10 versions of this", or runs campaigns that need many derivatives of a single approved hero. Encodes the variation-generation pattern used in production for enterprise campaign asset multiplication.
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.
Generate variations of a source image. This is the workhorse API for campaign asset multiplication — one approved hero becomes 10, 50, or 200 variations for A/B testing, channel adaptation, and creative iteration.
Use this skill when:
Do NOT use this skill when:
firefly-generate-image-v3-asyncfirefly-expand-fillfirefly-expand-fill (Fill)firefly-custom-modelsA subtle but important distinction:
| Need | API |
|---|---|
| Variations of this specific image | Generate Similar |
| New images inspired by this style | Generate Image with style.imageReference |
Generate Similar treats the source as an anchor — outputs are recognizable derivatives. Style reference treats the source as inspiration — outputs share aesthetic but not subject.
For campaign variation generation (hero-asset variants for a single approved concept), Generate Similar is correct. For applying brand style to new subjects across a campaign creator, use Generate Image with style.imageReference — see firefly-generate-image-v3-async.
curl --silent -X POST 'https://firefly-api.adobe.io/v3/images/generate-similar' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-Api-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d "{
\"image\": {\"source\": {\"uploadId\": \"$SOURCE_UPLOAD_ID\"}},
\"numVariations\": 4,
\"size\": {\"width\": 1024, \"height\": 1024}
}"
Returns synchronously — the 200 response body contains size and outputs[] with pre-signed result URLs. No polling required.
{
"image": {"source": {"uploadId": "abc-123"}},
"numVariations": 4,
"size": {"width": 1024, "height": 1024},
"seeds": [12345, 67890, 11111, 22222]
}
| Field | Notes |
|---|---|
image.source | Storage reference — uploadId or pre-signed url |
numVariations | 1-4 per job. For more, submit multiple jobs |
size | Same constraints as Generate Image — pick from supported list |
seeds | Optional array; one seed per variation. Same seeds bias toward consistent composition — not byte-identical reproduction |
tileable | Optional boolean, default false. Output can be repeated seamlessly in any direction — useful for texture/background variation workloads |
Generate Similar's diversity is implicit — the API decides how far to deviate from the source. There is no strength parameter, unlike style reference.
To get more diversity, run multiple jobs with different seeds. The variation between jobs is larger than the variation within a job.
To get less diversity (keep variations very close to source), generate fewer variations per job (1-2) — Firefly tends to make stronger deviations in larger variation sets.
For a typical "50 variations of one hero asset" workload:
async function generateNVariations({ sourceUploadId, n }) {
const variationsPerJob = 4;
const numJobs = Math.ceil(n / variationsPerJob);
const jobPromises = Array.from({ length: numJobs }, (_, i) =>
submitGenerateSimilar({
sourceUploadId,
numVariations: variationsPerJob,
seeds: [
Math.floor(Math.random() * 1_000_000),
Math.floor(Math.random() * 1_000_000),
Math.floor(Math.random() * 1_000_000),
Math.floor(Math.random() * 1_000_000),
],
}),
);
const results = await Promise.all(jobPromises);
return results.flatMap(r => r.result.outputs);
}
Each job runs in parallel (limited by token-bucket — see firefly-services-rate-limits). 50 variations = 13 parallel jobs. With a provisioned higher RPM (typical for enterprise contracts), this completes in roughly 30 seconds end-to-end.
Approved hero asset (uploaded to your bucket once)
↓ Generate Similar × N (each job 2-4 variations)
50 candidate variations
↓ Human selection (or automated quality scoring)
Top 10 chosen
↓ Auto-resize via Expand (multiple aspect ratios)
40 final assets (10 variations × 4 aspects)
This is the multiplication pattern that turns a manual "create N variants" effort (weeks of designer work) into a "submit one source, pick the best ten" workflow (hours of work).
For experiments where outputs need to be traceable and consistent:
const seeds = await db.assignSeedsForExperiment(experimentId);
// Same experiment + same seeds biases toward consistent compositions
const variations = await submitGenerateSimilar({
sourceUploadId: HERO_ID,
numVariations: seeds.length,
seeds,
});
Store seeds with the experiment record and archive the output assets themselves. Seeds bias generation toward a consistent composition, but they do not guarantee byte-identical reproduction — a live check (2026-08-10) comparing calls with identical inputs and seeds returned different image bytes. The seed documents provenance; the archived asset is the reproducibility record.
A Generate Similar pipeline is production-ready when:
size explicitly. The default is 2048×2048 (square) regardless of the source's aspect ratio.firefly-services-storage-refs.firefly-services-storage-refs — Source asset uploadfirefly-generate-image-v3-async — New-image generation (Generate Similar itself returns synchronously)firefly-expand-fill — Aspect-ratio expansion of selected variationsfirefly-services-rate-limits — Batch parallelismWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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."/firefly-cost-optimizationThe production playbook for understanding and controlling Adobe Firefly Services consumption — where API spend actually goes, what to cache, what to batch, seed reuse for deterministic regenerations, prompt deduplication, response caching, custom-model-vs-style-reference cost tradeoff, and the "why is consumption 3× higher than expected" debugging sequence. Use whenever the user mentions "cost", "consumption", "API spend", "budget", "billing surprise", "consumption is high", "credits burning fast", "FinOps", "cost overrun", or wants to understand the cost shape of a generative pipeline before deploying it. Encodes the FinOps pattern that keeps generative pipelines on budget at scale./firefly-custom-modelsTrain, 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./firefly-expand-fillUse Adobe Firefly's Generative Expand and Generative Fill APIs — when to use each, masking strategies, placement and aspect ratio control, prompt patterns for clean extension and inpainting, and the difference between filling versus replacing image regions. Use whenever the user mentions "generative expand", "extend canvas", "generative fill", "inpaint", "outpaint", "remove object", "replace background", "expand image", "fill image", "masking", "expand-async", "fill-async", or wants to grow / patch / modify an existing image. Encodes production patterns for background extension on hero assets and for brand-aligned background replacement in high-volume template-driven campaign asset production./firefly-generate-image-v3-asyncGenerate images with the Adobe Firefly V3 asynchronous API — job submission, status polling, webhook callbacks, prompt structure, content class, style and structure references, seed control, multi-variation results, and the migration from V2 sync to V3 async. Use whenever the user wants to "generate an image with Firefly", "text-to-image", "Firefly V3", "async generate", "polling", "jobId", "statusUrl", or upgrades from V2 sync. Returns the production pattern for the highest-volume Firefly workload — including a polling cadence that avoided rate limiting in live testing and a webhook design pattern for scaling to thousands of concurrent jobs.