This endpoint is used to configure the home with an image URL and theme.
Parameters
image_url (string): URL of the image to be used for home configuration.
theme (string): Theme for the home (e.g., "Modern").
Headers
x-magicapi-key (string): Your API key.
Content-Type (string): Must be application/json.
2. Room Configuration
This endpoint is used to configure a room with an image URL, theme, and room type.
Parameters
image_url (string): URL of the image to be used for room configuration.
theme (string): Theme for the room (e.g., "Modern").
room (string): Type of the room (e.g., "Living room").
Headers
x-magicapi-key (string): Your API key.
Content-Type (string): Must be application/json.
3. Fetch Room Result
This endpoint is used to fetch the result of a room configuration based on a request ID.
Parameters
request_id (string): Unique identifier for the room configuration request.
Headers
x-magicapi-key (string): Your API key.
Content-Type (string): Must be application/json.
Example Workflow
Configure Home
Send a POST request to the /home/ endpoint with the image URL and theme to configure the home.
Configure Room
Send a POST request to the /room/ endpoint with the image URL, theme, and room type to configure a specific room.
Fetch Room Result
Send a POST request to the /room/result/ endpoint with the request ID to fetch the result of the room configuration.
Notes
Replace API_KEY with your actual API key in all requests.
Ensure that all JSON data in the request body is properly formatted.
By following this documentation, you should be able to interact with the Capix API v2 efficiently for configuring homes and rooms, as well as retrieving the results of those configurations.
While you are generating your room images, you can use different themes. You can find themes here .
Room names could be one of these: Living Room, Dining Room, Gaming Room, Bedroom, Bathroom, Office, Kitchen, Guest Room, Laundry Room, Home Theater, Playroom, Music Room, Exercise Room, Library, Sunroom, Mudroom, Attic, Basement, Pantry, Wine Cellar, Garage, Outdoor Living Space, Pool Room, Study Room, Home Office, House Exterior, Outdoor Pool Area, Outdoor Patio, Outdoor Garden, Meeting Room, Workshop, Fitness Gym, Coffee Shop, Clothing Store, Walk-in Closet, Toilet, Restaurant, Coworking Space, Hotel Lobby, Hotel Room, Hotel Bathroom, Exhibition Space, Onsen, Drop Zone
Themes could be one of these: Modern, Neutral, Monochromatic, Complementary, Cyberpunk, Analogous, Warm, Cool, Pastel, Black and white, Earthy, Vintage, Minimalist, Scandinavian, Bohemian, High-Contrast, Bright, Ocean-inspired, Rustic, Tropical, Bold, Jewel-toned, Art Deco, Mediterranean, Traditional, Beachy, Moody, Urban, Contemporary, Retro, Whimsical, Zen, Industrial, Biophilic, Farmhouse, Japanese Design, Coastal, Cottagecore, French Country, Maximalist, Art Nouveau, Baroque, Vaporwave, Ski Chalet, Sketch, Christmas, Tribal, Medieval, Chinese New Year, Halloween, Kelly Wearstler, Nate Berkus, Joanna Gaines, Martyn Lawrence Bullard, Philippe Starck, Emily Henderson, Miles Redd, Victoria Hagan, Tom Dixon, Timothy Corrigan, Axel Vervoordt, Kelly Hoppen, Ilse Crawford, India Mahdavi, David Collins, Thomas O'Brien, Jacques Garcia, Bunny Williams, Kelly Behun, Robert Couturier