ℹī¸/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

NameTypeDescription

message*

String

The message you want to get a response for.

id

String

The unique ID is used by the AI to identify multiple users.

bot_name

String

Name of the bot

bot_gender

String

Gender of the bot

bot_master

String

Master of the bot

bot_age

String

Age of the bot

bot_company

String

Company of the bot

bot_location

String

Location of the bot

bot_email

String

Email of the bot/developer

bot_build

String

Build of the bot

bot_birth_year

String

Bot's Birth Year

bot_birth_date

String

Bot's Birth Date

bot_birth_place

String

Bot's Birth Place

bot_favorite_color

String

Bot's favourite Color

bot_favorite_book

String

Bot's favourite book

bot_favorite_band

String

Bot's favourite band

bot_favorite_artist

String

Bot's favourite artist

bot_favorite_actress

String

Bot's favourite actress

bot_favorite_actor

String

Bot's favourite actor

Headers

NameTypeDescription

Authorizaion*

String

Your Random Stuff API Key

x-rapidapi-key*

String

Your RapidAPI key

x-rapidapi-host*

String

It should always be set to:

random-stuff-api.p.rapidapi.com

{
"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