Furniture Staging
Furniture Staging
~34.21s
~$0.122
1import requests
2import json
3
4url = "https://api.segmind.com/v1/furniture-staging"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "photo of a white table with plant pot placed on an interior",
12 "main_image": "https://i.ibb.co/z8pdz41/main-image.png",
13 "overlay_image": "https://i.ibb.co/bHhQFBq/overlay-image.png",
14 "main_image_mask": "https://i.ibb.co/GFxb3SX/main-image-mask.png",
15 "overlay_image_mask": "https://i.ibb.co/8cqzRHL/overlay-image-mask.png",
16 "steps": 25,
17 "seed": 42424242,
18 "guidance": 30,
19 "image_format": "png",
20 "image_quality": 95
21}
22
23response = requests.post(url, headers=headers, json=data)
24
25if response.status_code == 200:
26 result = response.json()
27 print(json.dumps(result, indent=2))
28else:
29 print(f"Error: {response.status_code}")
30 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/furniture-staging"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "photo of a white table with plant pot placed on an interior",
12 "main_image": "https://i.ibb.co/z8pdz41/main-image.png",
13 "overlay_image": "https://i.ibb.co/bHhQFBq/overlay-image.png",
14 "main_image_mask": "https://i.ibb.co/GFxb3SX/main-image-mask.png",
15 "overlay_image_mask": "https://i.ibb.co/8cqzRHL/overlay-image-mask.png",
16 "steps": 25,
17 "seed": 42424242,
18 "guidance": 30,
19 "image_format": "png",
20 "image_quality": 95
21}
22
23response = requests.post(url, headers=headers, json=data)
24
25if response.status_code == 200:
26 result = response.json()
27 print(json.dumps(result, indent=2))
28else:
29 print(f"Error: {response.status_code}")
30 print(response.text)API Endpoint
POST
https://api.segmind.com/v1/furniture-stagingParameters
main_imagerequiredstring (uri)The URL of the main image
Default:
"https://i.ibb.co/z8pdz41/main-image.png"main_image_maskrequiredstring (uri)The URL of the main image mask
Default:
"https://i.ibb.co/GFxb3SX/main-image-mask.png"overlay_imagerequiredstring (uri)The URL of the overlay image
Default:
"https://i.ibb.co/bHhQFBq/overlay-image.png"promptrequiredstringThe main prompt describing the scene or subject
Default:
"photo of a white table with plant pot placed on an interior"guidanceoptionalintegerGuidance scale for adjusting adherence to the prompt
Default:
30Range: 1 - 50image_formatoptionalstringThe output image format
Default:
"png"image_qualityoptionalintegerThe quality of the output image
Default:
95Range: 10 - 100overlay_image_maskoptionalstring (uri)The URL of the overlay image mask
Default:
"https://i.ibb.co/8cqzRHL/overlay-image-mask.png"seedoptionalintegerRandom seed for reproducibility
Default:
42424242stepsoptionalintegerThe number of steps for image processing
Default:
25Range: 10 - 100Response Type
Returns: Image
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
400
Bad Request
Invalid parameters or request format
401
Unauthorized
Missing or invalid API key
403
Forbidden
Insufficient permissions
404
Not Found
Model or endpoint not found
406
Insufficient Credits
Not enough credits to process request
429
Rate Limited
Too many requests
500
Server Error
Internal server error
502
Bad Gateway
Service temporarily unavailable
504
Timeout
Request timed out