Client
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
The main class to interact with API.
api_key
This your API authentication key.
Type: str
As of version 3, The API key is required to use the API. Get one from here.
version
The version of API to use. This defaults to "4"
Type: str
suppress_warnings
Determines if version or other warnings will be shown in console or not. Set this to True
to stop warnings.
Type: bool
get_ai_response
Gets random AI response.
get_image
Gets a random image.
get_joke
Gets a random joke.
get_waifu
Gets a random waifu/anime image URL.
get_weather
Gets the weather of provided city.
close
Closes a session.
plan
(Optional)The plan to use for AI response.
Type: str
This must be one of from the plans list.
The language of returned response. This defaults to en
.
Type: str
The server from which the response should be received. This defaults to primary
. Set it to backup
if the primary is down. Don't use unstable
as it is quiet unstable.
Type: str
The developer's name. Used in responses. Defaults to PGamerX
This is basically what bot will say on "Who is your creator?" or related questions.
Type: str
The bot's name. This is used in responses. Defaults to RSA
. This is basically what bot will say on "Who are you?" or "What is your name?" or related questions.
Type:str
The unique ID. This is used to create a separate session. Read Unique ID page for more info.
Type: str
plan
(Optional)The plan to use for AI response.
Type: str
This must be one of from the plans list.
The language of returned response. This defaults to en
.
Type: str
The server from which the response should be received. This defaults to stable
. Don't use unstable
as it is quiet unstable.
Type: str
The developer's name. Used in responses. Defaults to PGamerX
This is basically what bot will say on "Who is your creator?" or related questions.
Type: str
The bot's name. This is used in responses. Defaults to RSA
. This is basically what bot will say on "Who are you?" or "What is your name?" or related questions.
Type:str
The unique ID. This is used to create a separate session. Read Unique ID page for more info.
Type: str
plan
The plan to use. Can be one from Plan Types
Type: str
randomstuff.InvalidPlanError
randomstuff.InvalidServerError