GET/me/credits
Your plan and remaining credits.
curl https://decorcopilot.com/api/mobile/v1/me/credits \ -H "Authorization: Bearer $DECOR_KEY" -H "Accept: application/json"
Stage, redesign and fix listing photos from your own software. Upload a photo, call one endpoint and get the result URL in about 15 seconds. The API uses the same plan and credits as the web app.
Authorization: Bearer <key> with Accept: application/json.Base URL: https://decorcopilot.com/api/mobile/v1. Rate limit: 10 generations per minute. A 402 response means the account is out of credits.
/me/creditsYour plan and remaining credits.
curl https://decorcopilot.com/api/mobile/v1/me/credits \ -H "Authorization: Bearer $DECOR_KEY" -H "Accept: application/json"
/uploads/room-imageUpload a room photo (JPG, PNG, WebP or HEIC, up to 15 MB). Returns its url.
curl https://decorcopilot.com/api/mobile/v1/uploads/room-image \ -H "Authorization: Bearer $DECOR_KEY" -H "Accept: application/json" \ -F "image=@living-room.jpg"
/transformRedesign or virtually stage the uploaded photo. Returns the room, the variation and its image URLs. Uses 1 credit per image.
curl https://decorcopilot.com/api/mobile/v1/transform \
-H "Authorization: Bearer $DECOR_KEY" -H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"imageUrl": "<url from upload>",
"mode": "decoration",
"roomName": "123 Main St - living room",
"roomType": "living-room",
"designStyle": "scandinavian",
"transformationIntensity": "moderate",
"customPrompt": "Stage for a listing, keep the floors",
"numImages": 1
}'/roomsCreate a room from an uploaded photo, for photo fixes without a redesign.
curl https://decorcopilot.com/api/mobile/v1/rooms \
-H "Authorization: Bearer $DECOR_KEY" -H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name": "Front exterior", "original_image_url": "<url from upload>", "mode": "decoration"}'/rooms/{room}/photo-fixApply a one-tap fix such as day_to_dusk, blue_sky, empty_room or declutter. Set "upscale": true instead of "fix" for a 4x upscale.
curl https://decorcopilot.com/api/mobile/v1/rooms/<room id>/photo-fix \
-H "Authorization: Bearer $DECOR_KEY" -H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"source_image_url": "<image url>", "fix": "day_to_dusk"}'/rooms/{room}/variationsEvery version of a room with its image URLs.
curl https://decorcopilot.com/api/mobile/v1/rooms/<room id>/variations \ -H "Authorization: Bearer $DECOR_KEY" -H "Accept: application/json"