ContentAI.net - Text Generation

FREEMIUM
By ContentAI
Updated 3 months ago
Machine Learning
-/10
Popularity Score
-
Latency
-
Success Rate

ContentAI.net - Text Generation API Documentation

Text generation using artificial intelligence language models. Texts available in 40 different categories. API with very low response time for rapid content generation. Text Generator.

View API Details
GETtext-generation
GETtext-generation

Text Generation

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
categorySTRING
REQUIREDChoose text category. Check: https://rapidapi.com/ContentAI/api/contentai-net-text-generation/details
Code Snippet
unirest.get("https://contentai-net-text-generation.p.rapidapi.com/text-generation/api/?category=health-and-medicine")
.header("X-RapidAPI-Host", "contentai-net-text-generation.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://contentai-net-text-generation.p.rapidapi.com/text-generation/api/
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://contentai-net-text-generation.p.rapidapi.com/text-generation/api/?category=health-and-medicine")
.header("X-RapidAPI-Host", "contentai-net-text-generation.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication