Developers
API overview
One REST call queues a generation. Your frontend never talks to a provider — it talks to us.
Base URL
| Environment | Base URL | Credits |
|---|---|---|
| Production | https://api.euromoda.ai/v1 | Consumed |
| Sandbox | https://api.sandbox.euromoda.ai/v1 | None — a key beginning sk_test_ runs here |
The sandbox is not a separate signup: the key prefix decides where you land.
See authentication.
The shape of a job
- Upload —
POST /uploads returns a presigned target; POST /uploads/{id}/complete closes it. - Register the garment —
POST /garments. - Price it, optionally —
POST /generations/quote. - Queue it —
POST /generations returns 202 Accepted. - Wait — poll
GET /generations/{id}, or take a webhook. - Collect —
GET /outputs, then approve or reject each one.
Queue a generation
curl https://api.euromoda.ai/v1/generations \
-H "Authorization: Bearer $EUROMODA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "tryon",
"garment_id": "gar_8fk29d",
"model_id": "mdl_studio_a",
"quality_tier": "standard",
"variants": 4,
"params": { "background": "seamless-grey" }
}'
type is the only required field. Everything else has a default:
quality_tier is standard, variants is
1 (maximum 8).
Field Meaning type (required)Which kind of work — the table below garment_idThe garment to work on model_idThe model identity to use. Omit it and we pick one quality_tierdraft, standard or premium variants1–8. Each variant is charged paramsOptions for this type — background, crop, prompt metadataYour own string keys, echoed back to you subaccountWho to bill inside your account — see below
type
Value What it does tryonPut the garment on a model product_to_modelBuild an on-model shot from a product photo model_swapKeep the garment, change the model reframeRecompose to another crop or aspect ratio sceneChange the background or setting editEdit or inpaint a region upscaleIncrease resolution bg_removeRemove the background
Video and voice-over have their own route: POST /videos.
Know the price first
curl https://api.euromoda.ai/v1/generations/quote \
-H "Authorization: Bearer $EUROMODA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "type": "tryon", "quality_tier": "premium", "variants": 4 }'
Same body as the generation, no work queued, no credits spent. This is the
call behind “the cost is on the button before you spend a credit”, and it is
there so your interface can make the same promise ours does.
Status
A generation is queued, then running, then one of
completed, failed or cancelled. You
can stop one in flight with POST /generations/{id}/cancel.
An output is pending until you decide: approved,
rejected or archived.
Billing your own customers
If you are a marketplace or an agency, subaccount on each
request records who the work was for, and
GET /billing/usage/subaccounts gives you the breakdown. You hold
one key; attribution is per request, not per key.
GET /billing/balance, /billing/limits,
/billing/usage and /billing/statements cover the
rest.
The complete reference
This page is the starting point, not the full contract. The authoritative
reference is the OpenAPI document, which is
generated from the running application — so unlike a
hand-written page it cannot describe a route that does not exist. Ask us for
the current copy, and build against that rather than against prose.
Errors: a malformed body is 422 with the offending field
named. Euromoda.ai does not invent a reason when a provider refuses — a
moderation refusal and a crash are reported differently, because they need
different responses from you.