πQuick Start
π Get your API keys
Your API requests require authentication using an API key. Any request without a valid API key will return an error.
To get started:
Sign up on RapidAPI and subscribe to the AI Object Remover.
Obtain your API key from your RapidAPI dashboard.
π Note: Keep your API key secure and do not share it publicly. If your key is compromised, you can regenerate a new one from the RapidAPI dashboard.
Make your first request
You can quickly test the AI Face Swap API by requesting to swap faces in an image.
π Request Format:
Method:
POSTEndpoint:
/ai-object-removerHeaders:
x-rapidapi-key: YOUR_API_KEYContent-Type: multipart/form-data
Body: Upload the source image and the target face image
Take a look at how you might call this method using curl:
const axios = require('axios');
const encodedParams = new URLSearchParams();
const options = {
method: 'POST',
url: 'https://ai-object-remover.p.rapidapi.com/public/removeobject',
headers: {
'x-rapidapi-key': '45dd2c909emshc6860efd9bad512p1ba614jsn2ad6c4147afd',
'x-rapidapi-host': 'ai-object-remover.p.rapidapi.com',
'Content-Type': 'application/x-www-form-urlencoded'
},
data: encodedParams,
};
try {
const response = await axios.request(options);
console.log(response.data);
} catch (error) {
console.error(error);
}import axios from 'axios';
const encodedParams = new URLSearchParams();
const options = {
method: 'POST',
url: 'https://ai-object-remover.p.rapidapi.com/public/removeobject',
headers: {
'x-rapidapi-key': '45dd2c909emshc6860efd9bad512p1ba614jsn2ad6c4147afd',
'x-rapidapi-host': 'ai-object-remover.p.rapidapi.com',
'Content-Type': 'application/x-www-form-urlencoded'
},
data: encodedParams,
};
try {
const response = await axios.request(options);
console.log(response.data);
} catch (error) {
console.error(error);
}import http.client
conn = http.client.HTTPSConnection("ai-object-remover.p.rapidapi.com")
payload = ""
headers = {
'x-rapidapi-key': "45dd2c909emshc6860efd9bad512p1ba614jsn2ad6c4147afd",
'x-rapidapi-host': "ai-object-remover.p.rapidapi.com",
'Content-Type': "application/x-www-form-urlencoded"
}
conn.request("POST", "/public/removeobject", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))Last updated