
The RapidTextAI API provides an endpoint for generating detailed articles using custom prompts. This documentation will guide you through the process of using the API to submit a request and receive a generated article.
https://app.rapidtextai.com/openai/detailedarticle-v2
https://app.rapidtextai.com/openai/detailedarticle-v2?gigsixkey=YOUR_API_KEY
Primary endpoint for generating articles with latest features.
https://app.rapidtextai.com/openai/detailedarticle?gigsixkey=YOUR_API_KEY
Legacy endpoint for article generation.
ttps://app.rapidtextai.com/openai/detailedarticle-v3?gigsixkey=YOUR_API_KEY
Enhanced endpoint for generating high-quality articles with advanced features:
This endpoint requires a premium subscription and follows the same request parameters as the standard article endpoints.
https://app.rapidtextai.com/openai/gpt4?gigsixkey=YOUR_API_KEY
Endpoint for accessing GPT-4 model.
https://app.rapidtextai.com/openai/gpt4o?gigsixkey=YOUR_API_KEY
Endpoint for accessing online version of GPT-4.
https://app.rapidtextai.com/openai/gemini-plus?gigsixkey=YOUR_API_KEY
Endpoint for Gemini 1.5 Pro model.
https://app.rapidtextai.com/openai/claude-3-5?gigsixkey=YOUR_API_KEY
Endpoint for Claude 3.5 model.
Base URL: https://app.rapidtextai.com/openai/llama-ai?gigsixkey=YOUR_API_KEY
Available model parameters:
&llama_model=llama-7b
- LLaMA 7B model&llama_model=deepseek-r1
- DeepSeek R1 model&llama_model=deepseek-v3
- DeepSeek V3 model&llama_model=Qwen1.5-7B-Chat
- Qwen 1.5 7B Chat model&llama_model=llama3.2-3b
- LLaMA 3.2 3B modelAll endpoints require authentication via the gigsixkey parameter and accept the same request parameters as detailed in the Request Body section above.
Note: Model availability may depend on your subscription level and API access rights.
POST
The request body should be formatted as multipart/form-data
with the following fields:
Field Name | Description | Example Value |
---|---|---|
type | Type of the request(required) | custom_prompt |
toneOfVoice | Tone of the generated article | |
language | Language of the article | |
text | Text for the article | |
temperature | Creativity of the response | 0.7 |
custom_prompt | Custom prompt for the article (required) | Okay |
Below is an example using curl
to send a request to the API:
gigsixkey
: Your API key for authentication
type
: 'custom_prompt' (string) - Type of requesttoneOfVoice
: (string) - Desired tonelanguage
: (string) - Target languagetext
: (string) - Additional contexttemperature
: (float) - AI creativity (0.0 to 1.0)custom_prompt
: (string) - Your prompt/questioncurl -X POST 'https://app.rapidtextai.com/openai/detailedarticle-v2?gigsixkey=YOUR_API_KEY' \
-H 'Content-Type: multipart/form-data' \
-F 'type=custom_prompt' \
-F 'toneOfVoice=' \
-F 'language=' \
-F 'text=' \
-F 'temperature=0.7' \
-F 'custom_prompt=Your question here'
The API will return the generated article based on the provided custom prompt and other parameters. The response format and structure will depend on the specific implementation of the RapidTextAI API.
This documentation provides the essential information needed to interact with the RapidTextAI API to generate detailed articles using custom prompts. For further assistance, refer to the official API documentation or contact RapidTextAI support.
async function generate_article(apiKey) {
const url = 'https://app.rapidtextai.com/openai/detailedarticle-v3?gigsixkey=' + apiKey;
var calltoactionprompt = jQuery('#callToAction').val() ? ' with a call to action: ' + jQuery('#callToAction').val() : '';
var referencesprompt = jQuery('#references').val() ? ' with references: ' + jQuery('#references').val() : '';
var articleToneprompt = jQuery('#articleTone').val() ? ' with the tone of voice: ' + jQuery('#articleTone').val() : '';
var targetAudienceprompt = jQuery('#targetAudience').val() ? ' for the target audience: ' + jQuery('#targetAudience').val() : '';
var articleLengthprompt = jQuery('#articleLength').val() ? ' with the article length: ' + jQuery('#articleLength').val() : '';
var writingstyleprompt = jQuery('#writingStyle').val() ? ' with the writing style: ' + jQuery('#writingStyle').val() : '';
var articleStructureprompt = jQuery('#articleStructure').val() ? ' with the article structure: ' + jQuery('#articleStructure').val() : '';
var internalLinksprompt = jQuery('#internalLinks').val() ? ' with internal links: ' + jQuery('#internalLinks').val() : '';
var externalLinksprompt = jQuery('#externalLinks').val() ? ' with external links: ' + jQuery('#externalLinks').val() : '';
const formData = new FormData();
formData.append('type', 'custom_prompt');
formData.append('toneOfVoice', 'professional');
formData.append('language', 'en');
formData.append('text', '');
formData.append('temperature', '0.7');
formData.append('custom_prompt', ' Generate a detailed article on the topic of ${topic} with the following keywords: ${keywords}${calltoactionprompt}${referencesprompt}${articleToneprompt}${targetAudienceprompt}${articleLengthprompt}${writingstyleprompt}${articleStructureprompt}${internalLinksprompt}${externalLinksprompt}'';
');
try {
const response = await fetch(url, {
method: 'POST',
body: formData
});
const result = await response.text();
return result;
} catch (error) {
console.error('Error:', error);
throw error;
}
}
# Set API key
API_KEY="YOUR_API_KEY"
# Set endpoint URL
URL="https://app.rapidtextai.com/openai/detailedarticle-v3?gigsixkey=$API_KEY"
# Make the POST request
curl -X POST "$URL" \
-H "Content-Type: multipart/form-data" \
-F "type=custom_prompt" \
-F "toneOfVoice=professional" \
-F "language=en" \
-F "text=" \
-F "temperature=0.7" \
-F "custom_prompt=Generate a detailed article on the topic of ${topic} with the following keywords: ${keywords}${calltoactionprompt}${referencesprompt}${articleToneprompt}${targetAudienceprompt}${articleLengthprompt}${writingstyleprompt}${articleStructureprompt}${internalLinksprompt}${externalLinksprompt}'"
generate_article('YOUR_API_KEY')
.then(article => console.log(article))
.catch(error => console.error(error));
gigsixkey
: Your API key (required)
prompt
: (string) - Description of the image to generatestyle
: (string) - Style of the imageresolution
: (string) - Image resolution/sizeimageCount
: (integer) - Number of images to generatemimeType
: (string) - Image format (default: image/png)userid
: (string) - User identifierchatsession
: (string) - Chat session identifiercurl -X POST 'https://app.rapidtextai.com/openai/dall-e?gigsixkey=YOUR_API_KEY' \
-H 'Content-Type: multipart/form-data' \
-F 'prompt=A beautiful sunset over mountains' \
-F 'style=realistic' \
-F 'resolution=1024x1024' \
-F 'imageCount=1' \
-F 'mimeType=image/png'
{
"status": "success",
"images": [
"base64_encoded_image_data",
...
]
}
Account Type | Monthly Prompts |
---|---|
Free User | 100 prompts |
Basic Subscriber | 10,000 prompts |
Premium Subscriber | 30,000 prompts |