ℹī¸/ai

This is complete documentation about how to get AI Response using Random Stuff API (This Endpoint is accessible using free plan as well as Paid plan)

Since this API is only accessible using RapidAPI, you need to change the base URL to https://random-stuff-api.p.rapidapi.com

This endpoint allows you to get AI Response, whilst offering you proper flexibility.

GET https://api.pgamerx.com

Query Parameters

Headers

{
"BotDetails":{
"BotName":"Random Stuff Api",
"BotMaster":"PGamerX ",
"BotAge":"19",
"BotLocation":"India",
"BotCompany":"PGamerX Studio",
"BotBirthYear":"2002",
"BotBirthDate":"1st January, 2002",
"BotBirthPlace":"India",
},
"AIResponse":"I'm very well. Thanks! How are you doing? Let me know what I can do for you."
}
var axios = require("axios").default;

var options = {
  method: 'GET',
  url: 'https://random-stuff-api.p.rapidapi.com/ai',
  params: {
    msg: 'Hi there, how are you? (REQUIRED)',
    bot_name: 'Random Stuff Api (OPTIONAL)',
    bot_gender: 'male (OPTIONAL)',
    bot_master: 'PGamerX (OPTIONAL)',
    bot_age: '19 (OPTIONAL)',
    bot_company: 'PGamerX Studio (OPTIONAL)',
    bot_location: 'India (OPTIONAL)',
    bot_email: 'admin@pgamerx.com (OPTIONAL)',
    bot_build: 'Public (OPTIONAL)',
    bot_birth_year: '2002 (OPTIONAL)',
    bot_birth_date: '1st January, 2002 (OPTIONAL)',
    bot_birth_place: 'India (OPTIONAL)',
    bot_favorite_color: 'Blue (OPTIONAL)',
    bot_favorite_book: 'Harry Potter (OPTIONAL)',
    bot_favorite_band: 'Imagine Doggos (OPTIONAL)',
    bot_favorite_artist: 'Eminem (OPTIONAL)',
    bot_favorite_actress: 'Emma Watson (OPTIONAL)',
    bot_favorite_actor: 'Jim Carrey (OPTIONAL)',
    id: 'For customised response for each user'
  },
  headers: {
    authorization: 'Random Stuff API key',
    'x-rapidapi-host': 'random-stuff-api.p.rapidapi.com',
    'x-rapidapi-key': 'RapidAPI Key'
  }
};

axios.request(options).then(function (response) {
	console.log(response.data);
}).catch(function (error) {
	console.error(error);
});

For examples in all languages, checkout RapidAPI Page

Last updated