API Setup
Follow these steps to get started with the FASHN API and make your first successful request.
Create Your Account
Sign up at app.fashn.ai to access the Developer API dashboard.
Purchase Credits
You must purchase API credits before you can create an API key.
Go to Billing and select the FASHN API tab.
API credits are bought on demand: buy the amount you need, and top up whenever your balance runs low.
Generate an API Key
After purchasing credits, go to the Developer API dashboard and click Create new API key.
You won't be able to view it again after closing the window.
Make Your First Agent Request
Start with the FASHN Agent API: describe the images you need in plain language, attach up to six reference images, and the FASHN Agent returns the finished images. The Agent API Quickstart walks through a first request and example prompts for on-model photos, packshots, catalog images, and lookbooks.
Working in Claude Code, Codex, or Cursor? See Coding Agents to let your coding agent make the calls.
Understand the Fundamentals
Review API Fundamentals to understand authentication, request patterns, and error handling.
Add Virtual Try-On
Building a real-time shopping experience? Use Try-On Max, our most capable virtual try-on model with the highest quality output. Our Python and JavaScript try-on quickstarts show complete examples.
If you encounter any issues during setup, check our Troubleshooting Guide or contact support@fashn.ai.
Next: Ready to make your first API call? Start with the FASHN Agent API Quickstart, or jump directly to the Agent Images reference.