Coding Agents
FASHN publishes an agent skill that teaches coding agents how to integrate FASHN through the REST API or the official TypeScript and Python SDKs. Once installed, your agent can wire FASHN into your project, or run a one-off generation, without you pasting documentation into the chat.
It works with Claude Code, Codex, Cursor, and many others.
Install
Install the skill with skills.sh. The CLI auto-detects which coding agents you have installed and configures the skill for each:
The skill reads a FASHN_API_KEY from the environment. If it isn't set, the
skill asks for your key and helps you configure it, caching it for future
runs. Generate one from API Setup.
What the skill knows
- Every FASHN endpoint and its inputs.
- The prediction lifecycle:
subscribe(submit and auto-poll) versus the manualrunplusstatuspolling flow. - The response envelope, the error catalog, credit usage, and webhooks.
- Both integration paths (REST and the TypeScript or Python SDKs), plus a one-off inline run.
Usage
After installing, your agent loads the skill automatically (restart the agent if a session is already open). Mention FASHN in your request so the skill activates, then describe the outcome you want and it chooses the right model and wires up the call.
Build FASHN into your app
- "Add a FASHN virtual try-on route to my Next.js app: accept a model photo and a garment image, and return the result URL."
- "Use FASHN to write a Python worker that runs every garment in
./productsthrough a model." - "Integrate FASHN API into my PHP project."
Generate something on the spot
In Claude Code and Codex, run a one-off generation by invoking the skill directly with /fashn:
/fashn generate three on-model shots of this product for our product page(product-to-model)/fashn do a try-on with this model photo and this jacket(one-off inline run)
With other agents, describe the same task in chat and the skill activates automatically.
Links
- Skill repository: github.com/fashn-AI/fashn-skill
- skills.sh documentation: skills.sh/docs
Next: Pick an integration path with the TypeScript or Python SDK, or browse the API Reference.