This is a very simple API i made that generates a random fact using AI and returns it to the user.
A Free version of this API is available HERE (currently not recommended for prod use)
You can get a fact by sending a GET request to /
There are also a few search params you can use:
topic
: Use this to select a topic (example: Sports)language
: Use this to select a language (example: spanish)
You can get a list of languages by sending a GET request to /languages
You can get a list of topics by sending a GET request to /topics
To deploy this app, you need an ArvanCloud Account and an AvalAI Developer Account.
- Clone this repo and run
npm install
- Setup R1EC and login
- Create a
.env
file and fill it according to.env.example
- Run
npm run deploy
- Enjoy!
All PRs, Issues and Feat recommendations are welcome! Just send it and wait for review.
Using your donations, i will scale the free version of this API and improve it! You can send your donations here (iran):