TGF Extensions AI: ChatGPT & Dall-E
In order to use these extensions you have to register at platform.openai.com and get an API key.
Cartoonize with ChatGPT-4 / DALL-E-3
Description
Cartoonizes existing user avatars with OpenAI ChatGPT-4 and Dall-E-3
How it works
- You: cartoonize Peter » TheGodFather: {displays in chat a cartoonish image of the avatar of the user Peter}
How to install and use
- Download the extension file from our download center.
- Unzip and upload to your server the files:
- tgf_cartoonize.php tgf_cartoonize_automate.php tgf_cartoonize_config.php tgf_cartoonize_list.php
- Set
$openai_token
in tgf_cartoonize_config.php - Set
$path_to_chat
in tgf_cartoonize_config.php - Setup a CRON schedule that calls every 5 minute the URL pointing to tgf_cartoonize_automate.php. If you are unfamiliar with CRONTAB we recommend cron-job.org or of course you can Google for another online service.
- AdminCP » Machines » TheGodFather » New Subset » Subset » IMPORT
- Replace
https://YOUR-URL.COM/tgf_cartoonize.php
with the proper URL (subset » Phrases). - Save with OKAY
DALLE
Description
Drawing pictures based on text input using OpenAI Dall-E-3
How it works
- You: DALLE a beautiful English cottage situated next to the sea in Cornwall » TheGodFather: {displays in chat an image similar to this one}
How to install and use
- Download the extension file from our download center.
- Unzip and upload to your server the file tgf_dalle.php
- Set
$openai_token
in tgf_dalle.php - Set
$path_to_chat
in tgf_dalle.php
- Replace
https://YOUR-URL.COM/tgf_dalle.php
with the proper URL (subset » Phrases). - Save with OKAY
IMPORTANT
- Using ChatGPT-4 and Dall-E-3 API requires you to be at least OpenAI {Usage tier 1} user. If you are not - make a $5 payment to OpenAI. Details: platform.openai.com/account/limits.
- In January 2023 the price of generating a description and an actual image using ChatGPT-4 / Dall-E-3 was $0.07/image. Consider restricting the usage of the extension by using the provided settings in tgf_cartoonize_config.php, by restricting the triggering to a single user group and by defining a monthly threshold at platform.openai.com.
Page updated: 2024-01-03