API.Market
Go to API.market
  • Welcome to API.market
  • What are API Products?
  • How to subscribe to a SaaS API Product?
  • Managing Subscriptions
  • Analytics & Logs
  • How can I cancel my Subscription?
  • How do I add payment details?
  • How does API.market charges me?
  • Error Codes
  • Seller Docs
    • API Seller Console
    • What is an API Product?
    • What is a Pricing Plan
    • Importing an API Source
    • Creating a Product using the Wizard
    • Testing Your APIs & Products
    • Analytics & Logs
    • Custom Usage
    • Overriding Custom Usage on Result Retrieval
  • FUNDAMENTALS
    • Convert Postman Collection to OpenAPI Yaml
    • Create OpenAPI spec using ChatGPT
  • About Us
  • API Product Docs
    • MagicAPI
      • Screenshot API
      • Domain Availability Checker API
      • WhoIS API
      • PDF Conversion API
      • Image Upscale API
      • DNS Checker API
      • Ageify API
      • Image Restoration API
      • Toon Me API
      • Coding Assistant
      • 🎭 FaceSwap API: Instantaneous replaces face with one another
      • 🏞️ Image Upload API
      • Deblurer API
      • Hair Changer API
      • 🤳🏻🤖AI Qr Code Generator API
      • Whisper API
      • Image Colorizer API
      • OpenJourney API
      • Object Remover API
      • Image Captioner API
      • Object Detector API
      • NSFW API
      • Crunchbase API
      • Pipfeed's Extract API Developer Documentation
      • Migrating from Capix FaceSwap API to magicapi/faceswap-capix API
    • BridgeML
      • Meta-Llama-3-8B-Instruct
      • Meta-Llama-3-70B-Instruct
      • Mistral-7B-Instruct-v0.1
      • Mixtral-8x22B-Instruct-v0.1
      • Meta-Llama-2-7b
      • Meta-Llama-2-13b
      • Meta-Llama-2-70b
      • Gemma-7b-it
      • NeuralHermes-2.5-Mistral-7B
      • BAAI/bge-large-en-v1.5
      • CodeLlama-70b-Instruct-hf
      • 🤖🧗Text-to-Image API
      • 📝🎧 Text to Audio API
    • Capix AI
      • FaceSwap Image and Video Face Swap API
      • MakeUp
      • Photolab.me
      • AI Picture Colorizer
      • AI Picture Upscaler
      • AI Background Remover
      • Object Remover
      • TTS Universal
      • Home GPT
      • AI & Plagiarism Checker
      • AI Story Generator
      • AI Essay Generator
      • Book Title Generator
    • Trueway
      • ⛕ 🗺️ Trueway Routing API
      • 🌐📍Trueway Geocoding API: Forward and Reverse Geocoding
      • 🛤️ ⏱️Trueway Matrix API: Travel Distance and Time
      • 🏛️ Trueway Places API
    • AILabTools
      • Cartoon-Yourself
    • SharpAPI
      • 📄 AI-Powered Resume/CV Parsing API
      • 🛩️ Airports Database & Flight Duration API
    • Text to Speech
      • Turn your text into Magical-sounding Audio
Powered by GitBook
On this page
  • About API
  • Code Examples
  • Theme
  1. API Product Docs
  2. Capix AI

Home GPT

Regenerates old rooms and houses to modern one

PreviousTTS UniversalNextAI & Plagiarism Checker

Last updated 12 months ago

About API


Endpoints

1. Home Configuration

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

  1. Configure Home

    • Send a POST request to the /home/ endpoint with the image URL and theme to configure the home.

  2. Configure Room

    • Send a POST request to the /room/ endpoint with the image URL, theme, and room type to configure a specific room.

  3. 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.

Code Examples

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/capix/homegpt/home/v1/' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fc6c8be08bfb1e27e558a1.png&theme=Modern'
import requests

headers = {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY',
    'Content-Type': 'application/x-www-form-urlencoded',
}

data = {
    'image_url': 'https://telegra.ph/file/c6c8be08bfb1e27e558a1.png',
    'theme': 'Modern',
}

response = requests.post('https://api.magicapi.dev/api/v1/capix/homegpt/home/v1/', headers=headers, data=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/capix/homegpt/home/v1/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-magicapi-key: API_KEY',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fc6c8be08bfb1e27e558a1.png&theme=Modern');

$response = curl_exec($ch);

curl_close($ch);
import axios from 'axios';

const response = await axios.post(
  'https://api.magicapi.dev/api/v1/capix/homegpt/home/v1/',
  new URLSearchParams({
    'image_url': 'https://telegra.ph/file/c6c8be08bfb1e27e558a1.png',
    'theme': 'Modern'
  }),
  {
    headers: {
      'accept': 'application/json',
      'x-magicapi-key': 'API_KEY'
    }
  }
);
fetch('https://api.magicapi.dev/api/v1/capix/homegpt/home/v1/', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY'
  },
  body: new URLSearchParams({
    'image_url': 'https://telegra.ph/file/c6c8be08bfb1e27e558a1.png',
    'theme': 'Modern'
  })
});
curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/capix/homegpt/room/v1/' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fc6c8be08bfb1e27e558a1.png&room=Living%20room&theme=Modern'
import requests

headers = {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY',
    'Content-Type': 'application/x-www-form-urlencoded',
}

data = {
    'image_url': 'https://telegra.ph/file/c6c8be08bfb1e27e558a1.png',
    'room': 'Living room',
    'theme': 'Modern',
}

response = requests.post('https://api.magicapi.dev/api/v1/capix/homegpt/room/v1/', headers=headers, data=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/capix/homegpt/room/v1/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-magicapi-key: API_KEY',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fc6c8be08bfb1e27e558a1.png&room=Living%20room&theme=Modern');

$response = curl_exec($ch);

curl_close($ch);
import axios from 'axios';

const response = await axios.post(
  'https://api.magicapi.dev/api/v1/capix/homegpt/room/v1/',
  new URLSearchParams({
    'image_url': 'https://telegra.ph/file/c6c8be08bfb1e27e558a1.png',
    'room': 'Living room',
    'theme': 'Modern'
  }),
  {
    headers: {
      'accept': 'application/json',
      'x-magicapi-key': 'API_KEY'
    }
  }
);
fetch('https://api.magicapi.dev/api/v1/capix/homegpt/room/v1/', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY'
  },
  body: new URLSearchParams({
    'image_url': 'https://telegra.ph/file/c6c8be08bfb1e27e558a1.png',
    'room': 'Living room',
    'theme': 'Modern'
  })
});
curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/capix/homegpt/result/' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'request_id=REQUEST_ID'
import requests

headers = {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY',
    'Content-Type': 'application/x-www-form-urlencoded',
}

data = {
    'request_id': 'REQUEST_ID',
}

response = requests.post('https://api.magicapi.dev/api/v1/capix/homegpt/result/', headers=headers, data=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/capix/homegpt/result/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-magicapi-key: API_KEY',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'request_id=REQUEST_ID');

$response = curl_exec($ch);

curl_close($ch);
import axios from 'axios';

const response = await axios.post(
  'https://api.magicapi.dev/api/v1/capix/homegpt/result/',
  new URLSearchParams({
    'request_id': 'REQUEST_ID'
  }),
  {
    headers: {
      'accept': 'application/json',
      'x-magicapi-key': 'API_KEY'
    }
  }
);
fetch('https://api.magicapi.dev/api/v1/capix/homegpt/result/', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY'
  },
  body: new URLSearchParams({
    'request_id': 'REQUEST_ID'
  })
});

Theme

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

While you are generating your room images, you can use different themes. You can find themes .

here
Demo