Image provider routing

From event4u-app/agent-config · View interactive version

Image provider routing is an AI agent skill from the GitHub repository event4u-app/agent-config. Pick the image provider from job shape — text-in-image to Ideogram, photoreal to Flux, illustrative vector to Recraft, general to Gemini/GPT.

How to use this skill

Skill file

image-provider-routing

Route an image generation job to the right provider based on job shape. Adapters

are scaffold-tier (dry-run only) — selection produces a plan; execution waits on

promotion per provider-lifecycle-discipline.

When to use

Provider decision table

| Job shape | Provider | Why |

|---|---|---|

| Text-in-image (logo, banner, typographic art) | Ideogram | Best glyph rendering; raster models garble text |

| Photoreal (product shot, portrait, scene) | Flux | Photorealism specialist; routed via fal/Replicate |

| Icon the set lacks | iconography first, then CODE1 | The incumbent set wins; a missing glyph is hand-authored against its grid and checked — no provider involved |

| Simple geometric mark | CODE0 | A rect/circle/path mark is cheaper and more editable hand-authored than generated, and it ends in a file rather than a plan |

| Complex illustrative vector art | Recraft | The only job shape left for a vector provider. State the adapter's lifecycle in the answer: experimental — scaffold tier, dry-run plumbing only, so the caller knows no asset is produced |

| General art / edit / multimodal | Gemini-image or GPT Image 2 | Broad capability; natural-language prompts |

| Budget-conscious 4K upscale | Flux via Replicate | Cost-competitive at high resolution |

Decision order: an icon → the incumbent set, then svg-authoring for a missing

glyph; a simple geometric mark → svg-authoring; text-in-image → Ideogram;

complex illustrative vector art → Recraft, with its scaffold-tier lifecycle

stated; photoreal → Flux; everything else → Gemini-image (default) or GPT

Image 2 (when an OpenAI key is available and an existing image is being edited).

The split exists because the single "Vector / SVG logo or icon" row sent every

icon and every geometric mark to an adapter whose header reads `experimental —

scaffold tier. dry-run plumbing only` and whose live calls exit at

the adapter's own live-call guard. The routed path ended in a plan;

the icon floor meanwhile sent icons to the set. Neither produced an asset for

the one case that needs one — a glyph the set does not have.

Procedure

  1. Extract job shape from the brief: does it need embedded text? vector output?

photorealistic rendering? or general illustration?

  1. Apply table — match the dominant shape to the provider row above.
  2. Check lifecycle tier — all adapters are experimental (scaffold). Surface

this before any live invocation.

  1. Confirm with the user when shape is ambiguous (e.g., logo that could be

vector OR raster typographic art → ask once).

  1. Emit the routing decision in the Output format below.

Output format

  1. Chosen provider — name + one-line rationale citing the job-shape match.
  2. Lifecycle-tier caveat — "adapter is experimental (scaffold tier); dry-run

only until a smoke trace is captured per provider-lifecycle-discipline."

  1. Fallback — if the primary adapter is unavailable or the smoke trace is

missing, name the next best provider and what changes.

  1. Provenance surface — whether the chosen provider writes native provenance

(C2PA or an equivalent) or the delivery needs the .provenance.json sidecar

fallback, per the media transparency policy.

Gotcha

logo/banner with embedded text to Flux and the text renders as garbled glyphs;

it must go to Ideogram. Likewise a vector logo sent to Ideogram/Flux returns a

raster PNG, not the editable <path> SVG a brand mark needs (→ Recraft).

scaffold-tier — dry-run plumbing only, no live generation yet. Routing

produces a selection + plan; actual API calls require promotion to stable

first (maintainer-captured smoke trace under agents/reference/ai-image/smoke-traces/).

Surfacing a provider without its experimental tier caveat misleads the caller

into expecting a rendered asset that won't come.

Good example: "Text logo for a bakery → Ideogram (text-in-image); lifecycle:

experimental — dry-run plan only."

Bad example: "Use Recraft for the product photo" — Recraft is the vector path;

photoreal jobs go to Flux.

Do NOT

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.