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 body — multipart/form-data (required)
| Field | Type | Required | Notes |
|---|---|---|---|
image | file | yes | — |
Responses
| Status | Meaning |
|---|---|
200 | Result image URL |
400 | NO_IMAGE | EMPTY_IMAGE | BAD_FORM |
413 | IMAGE_TOO_LARGE (12 MB cap) — body includes maxMb |
502 | REMOVE_BG_FAILED |
503 | FAL_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 "[email protected]"GET /api/toolkit/my-access
Responses
| Status | Meaning |
|---|---|
200 | The active tool + toolkit registry, per-user access |
401 | Unauthenticated |
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
| In | Name | Type | Required | Notes |
|---|---|---|---|---|
| path | slug | string | yes | — |
Responses
| Status | Meaning |
|---|---|
200 | tool_items rows, ordered per category by sort_order |
400 | Invalid input |
401 | No 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"AI
5 AI routes on the FLAM API: Depth map for the Lens Blur tool (1 token); Classify one piece — auto-name + wardrobe bucket (1 token); Find every garment.
Text tools
5 Text tools routes on the FLAM API: 20 facial-feature keywords from a portrait (vision lane); Categorized keyword sets for a vibe; Generate N varied.