FLAM

Toolkit

3 Toolkit routes on the FLAM API: Remove background (sync, fal birefnet); Curated content items for a tool.

Base URL https://api.flam.fashion. Send Authorization: Bearer flam_sk_… on every call; a handful of routes are session-only and say so. How keys and roles work.

POST /api/toolkit/ai/remove-background

Remove background (sync, fal birefnet)

Request bodymultipart/form-data (required)

FieldTypeRequiredNotes
imagefileyes

Responses

StatusMeaning
200Result image URL
400NO_IMAGE | EMPTY_IMAGE | BAD_FORM
413IMAGE_TOO_LARGE (12 MB cap) — body includes maxMb
502REMOVE_BG_FAILED
503FAL_NOT_CONFIGURED

200 returns:

{
  "url": "string"
}

Call it

curl -X POST "https://api.flam.fashion/api/toolkit/ai/remove-background" \
  -H "Authorization: Bearer $FLAM_API_KEY" \
  -F "image=@image.png"

GET /api/toolkit/my-access

Responses

StatusMeaning
200The active tool + toolkit registry, per-user access
401Unauthenticated

200 returns:

{
  "toolkits": [
    {}
  ],
  "tools": [
    {
      "id": "string",
      "slug": "string",
      "name": "string",
      "sortOrder": 0,
      "accessible": true
    }
  ],
  "trialExpired": true,
  "trialActive": true,
  "trialDaysLeft": 0
}

Call it

curl -X GET "https://api.flam.fashion/api/toolkit/my-access" \
  -H "Authorization: Bearer $FLAM_API_KEY"

GET /api/toolkit/tools/{slug}/items

Curated content items for a tool

Parameters

InNameTypeRequiredNotes
pathslugstringyes

Responses

StatusMeaning
200tool_items rows, ordered per category by sort_order
400Invalid input
401No valid session

200 returns:

{
  "items": [
    {
      "id": "string",
      "tool_id": "string",
      "category": "string",
      "title_he": "string",
      "label_he": "string",
      "content_en": "string",
      "image_url": "string",
      "notes_he": "string",
      "sort_order": 0,
      "created_at": "2026-07-27T09:00:00.000Z"
    }
  ]
}

Call it

curl -X GET "https://api.flam.fashion/api/toolkit/tools/{slug}/items" \
  -H "Authorization: Bearer $FLAM_API_KEY"