RapidAPI logo

Sign Up

Log In

ContentAI.net - Text Generation

FREEMIUM
By ContentAI
Updated 2 months ago
Machine Learning
3.9/10
Popularity Score
196ms
Latency
100%
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
Request 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
Log inSign up

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