Skip to content

Installation

Bart Don edited this page Jan 2, 2024 · 3 revisions

Installation

To install the package, use either npm or yarn:

npm i directus-extension-texttoanything

or

yarn add directus-extension-texttoanything

Restart your Directus instance.

Go to to your project settings (Settings -> Settings) and scroll down to the Modules section. Enable the Text to anything settings.

Go to the Text To Anything module -> Settings and fill in your Rapid API token.

Click on save and now you are good to go!

Settings

Inside of the Text To Anything Settings, you can fill in the following properties:
RapidAPI token -> The token of RapidAPI
Directus Assets token (optional) -> If you use any assets, this key will be used to load the images/assets.
Directus Assets folder -> This folder will be used to upload your files into when you upload an asset within the template editor.

RapidAPI Token

The RapidAPI token is a requirement for the extension in order to talk with the TextToAnything API. We are using this API to eliminate the need for dependencies and to monitize any further developments.

How to obtain a RapidAPI token:

  1. Go to https://rapidapi.com/Attacler/api/text-to-anything
  2. Click "Sign Up" in the top right corner, or "Log in" if you already have an account
  3. Click on "Subscribe to Test" or "Pricing"
  4. Here you can choose the API plan that you wish to use, Basic is good enough for testing. If you have any questions about the billing, please view the FAQ at the bottom of this page.
  5. Add your payment details
  6. Go to Endpoints and you should see the RapidAPI key on the right.

The extension will not function without the Rapid API token, there will always be a free tier available. You can fill in the token inside of the TTA settings.

Clone this wiki locally