Endpoints

Account

Check how many credits your account has left.

GEThttps://fabricvton-api.onrender.com/api/v1/account

Handy for a health check or a daily alert, so you can top up before shoppers see INSUFFICIENT_CREDITS. It costs nothing to call.

Headers

HeaderTypeDescription
AuthorizationrequiredBearer followed by your API key.

Example

curl
curl https://fabricvton-api.onrender.com/api/v1/account \
  -H "Authorization: Bearer $CLOTHSY_API_KEY"

Response

200 OK
{
  "credits": 42,
  "scope": "account"
}
FieldTypeDescription
creditsnumberTry-ons this key can still run. Each finished try-on uses one.
scopestring"account" — the key draws on your account's balance, shared with the Playground (keys you create yourself). "key" — the key has its own allowance, issued to you by Clothsy AI, and credits is what's left on that key alone.

To buy more credits, email us.

Errors

StatusCodeWhen
401INVALID_API_KEYThe key is missing, malformed or revoked.
500INTERNAL_ERRORSomething went wrong on our side. Retry after a moment.
503UNAVAILABLEThe service is briefly unavailable. Retry after a short wait.