About meltflex-furniture
meltflex-furniture is a skill that uses the MeltFlex REST API to place specified furniture or decor in a room photo. It is for users who want a scene composed from a room image and product references, with perspective, lighting, and shadows considered.
Key features
- 01Compose specified products into room photos
- 02Use product reference images or URLs
- 03Describe placement through a prompt
- 04Support multiple products and generation variations
- 05Return generated images and credit usage
Use cases
- 01Preview a specific sofa in a living room
- 02Compare arrangements of multiple furniture items
- 03Create an interior scene from product images
MCP support
The input does not describe MCP integration. The skill submits room images, product references, and placement instructions to the MeltFlex REST API generation endpoint.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ meltflexdevs/ skills --skill meltflex-furnitureAfter installing, type/meltflex-furniturein Claude Code to confirm it loaded.
Details
From the project READMEMeltFlex — Furniture Placement
This skill places specific products into a room photo: you provide the room plus one or more reference images of the exact furniture/decor, and MeltFlex composes them into the scene with correct perspective, lighting, and shadows. Same MeltFlex REST API, no extra install.
For general restyling without specific products, use /meltflex:design. To turn a photo of a furniture piece into a downloadable 3D model (GLB), use /meltflex:3d (POST /api/v1/furniture-3d, 75 credits).
Prerequisites
A MeltFlex API key (mf_sk_..., any active subscription) in MELTFLEX_API_KEY. Get one at https://www.meltflexai.com/settings. Each generation costs 10 credits (auto-refunded on failure), billed to the user's account.
Endpoint
POST https://www.meltflexai.com/api/v1/generate
Body:
prompt(string, required) — placement instruction.imageUrlorimage— the room photo.referenceImageUrls(string[]) — up to 10 public URLs of the products to place. (OrreferenceImagesas base64 data URLs for local files.)referenceProducts(object[], optional) — metadata per reference, e.g.[{"name": "Modular Sofa"}], to help placement.resolution("512"|"1K"|"2K"),designLevel("lite"|"quick"|"pro"),variations(1–3) — the same optional quality/batch fields as/meltflex:design.
Response: { "success": true, "image": "data:image/png;base64,...", "images": ["data:..."], "count": 1, "creditsUsed": 10 }.
Example
import os, base64, requests
resp = requests.post(
"https://www.meltflexai.com/api/v1/generate",
headers={"Authorization": f"Bearer {os.environ['MELTFLEX_API_KEY']}"},
json={
"imageUrl": "https://your-cdn.com/empty-room.jpg",
"prompt": "Place these furniture items naturally in this living room, matching their exact look.",
"referenceImageUrls": [
"https://your-cdn.com/modular-sofa.jpg",
"https://your-cdn.com/oak-coffee-table.jpg"
],
"referenceProducts": [{"name": "Modular Sofa"}, {"name": "Oak Coffee Table"}],
},
timeout=180,
)
data = resp.json()
if data.get("success"):
open("furnished.png", "wb").write(base64.b64decode(data["image"].split(",", 1)[1]))
How to work with the user
- Need a room photo + at least one product image. If the user names a product but gives no image, ask for a photo or URL of it.
- Use clean product shots (white/neutral background) for best matching.
- Name the products in
referenceProductsso the AI places them correctly. - Up to 10 reference items per call. Report the saved path and credits used.
- Errors behave the same as
/meltflex:design(402 credits, 401 key, 429 rate, 5xx auto-refund).
Tips
- Prefer URLs over base64 for both the room and references — faster, avoids the 15 MB limit.
- For multiple items, describe the desired arrangement in the prompt ("sofa against the back wall, coffee table centered").