Sign in Get Started

RapidTextAI API Documentation

Powerful AI models accessible through a simple REST API. Build intelligent applications with our comprehensive suite of language models.

Introduction

The RapidTextAI API provides access to state-of-the-art language models for text generation, completion, and article creation. Our API is designed to be simple, reliable, and powerful.

Quick Start

Get started with your first API call in under 5 minutes:

  1. Sign up for an account at app.rapidtextai.com
  2. Generate your API key from the dashboard
  3. Make your first request using the examples below

Authentication

All API requests require authentication using your API key. Include your key as a query parameter:

curl -X POST "https://app.rapidtextai.com/openai/completion?gigsixkey=YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gpt-4", "messages": [...]}'
Security: Never expose your API key in client-side code. Always make requests from your server.

Text Completion API

Generate human-like text completions using our advanced language models.

POST Chat Completions

https://app.rapidtextai.com/openai/completion

Request Parameters

Parameter Type Required Description
model string Yes ID of the model to use
messages array Yes List of messages comprising the conversation
max_tokens integer No Maximum number of tokens to generate (default: 2048)
temperature number No Sampling temperature between 0 and 2 (default: 1)
top_p number No Nucleus sampling parameter (default: 1)
frequency_penalty number No Penalty for new tokens based on frequency (-2.0 to 2.0)
presence_penalty number No Penalty for new tokens based on presence (-2.0 to 2.0)

Example Request

{ "model": "gpt-4", "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Write a creative story about a robot learning to paint." } ], "max_tokens": 500, "temperature": 0.7, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0 }

Example Response

{ "id": "chatcmpl-abc123", "object": "chat.completion", "created": 1677858242, "model": "gpt-4", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "In a small workshop filled with the gentle hum of machinery, ARIA-7 stood before an easel for the first time. Her metallic fingers, designed for precision assembly, trembled slightly as she picked up a paintbrush..." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 35, "completion_tokens": 150, "total_tokens": 185 } }

Article Generation API

Generate comprehensive articles with structured content and optional image integration.

POST Article Generation

https://app.rapidtextai.com/openai/v1/chat/completionsarticle

Request Parameters

Parameter Type Required Description
model string Yes ID of the model to use
messages array Yes Array containing topic, keywords, tone, audience, and style
tools array No Tool configurations for features like image generation
tool_choice string No Tool selection mode: "auto" or "none"
dataType string Yes Must be set to "article"

Example Request

{ "model": "gpt-4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Generate a comprehensive article about 'The Future of Renewable Energy' with keywords: solar power, wind energy, sustainability. Target audience: general public. Tone: informative. Style: engaging." } ] } ], "tools": [ { "type": "function", "function": { "name": "_generateImage", "description": "Generate relevant images for article content", "parameters": { "type": "object", "properties": { "prompt": {"type": "string"}, "style": {"type": "string"}, "size": {"type": "string"} } } } } ], "tool_choice": "auto", "dataType": "article" }

Available Models

Choose from our selection of cutting-edge language models, each optimized for different use cases.

Model ID Model Name Context Length Access Level Best For
gemini-2.0-flash Gemini 2.0 Flash 1M tokens Standard Fast responses, general tasks
gpt-4o-mini GPT-4o Mini 128K tokens Standard Cost-effective, quick tasks
gpt-4 GPT-4 128K tokens Standard Complex reasoning, analysis
deepseek-chat DeepSeek V3 64K tokens Standard Coding, technical content
gpt-4o GPT-4o 128K tokens Pro Only Advanced reasoning, multimodal
grok-2 Grok-2 128K tokens Pro Only Real-time information, humor
gemini-1.5-pro Gemini 1.5 Pro 2M tokens Pro Only Long documents, analysis
gemini-2.0-pro Gemini 2.0 Pro 2M tokens Pro Only Advanced multimodal tasks
deepseek-reasoner DeepSeek R1 64K tokens Pro Only Mathematical reasoning, logic

Pricing

Simple, transparent pricing based on your usage needs.

Free

100 prompts/month
  • ✓ Standard models access
  • ✓ API documentation
  • ✓ Community support

Basic

10,000 prompts/month
  • ✓ All Free features
  • ✓ Increased rate limits
  • ✓ Email support

Premium

30,000 prompts/month
  • ✓ All Basic features
  • ✓ Pro model access
  • ✓ Priority support
  • ✓ Advanced features

Usage Costs

Operation Cost Description
API Request 1 prompt Single completion request
Article Generation 10 prompts Full article with structure
Image Generation 50 prompts AI-generated image

Rate Limits

To ensure fair usage and optimal performance, we implement the following rate limits:

Account Type Requests per Minute Requests per Day Concurrent Requests
Free 3 100 1
Basic 60 10,000 5
Premium 180 30,000 10

Code Examples

Python

import requests import json url = "https://app.rapidtextai.com/openai/completion" headers = {"Content-Type": "application/json"} params = {"gigsixkey": "YOUR_API_KEY"} data = { "model": "gpt-4", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Explain quantum computing"} ], "max_tokens": 150, "temperature": 0.7 } response = requests.post(url, headers=headers, params=params, json=data) result = response.json() print(result["choices"][0]["message"]["content"])

JavaScript (Node.js)

const axios = require('axios'); async function generateText() { try { const response = await axios.post( 'https://app.rapidtextai.com/openai/completion?gigsixkey=YOUR_API_KEY', { model: 'gpt-4', messages: [ { role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain quantum computing' } ], max_tokens: 150, temperature: 0.7 }, { headers: { 'Content-Type': 'application/json' } } ); console.log(response.data.choices[0].message.content); } catch (error) { console.error('Error:', error.response.data); } } generateText();

cURL

curl -X POST "https://app.rapidtextai.com/openai/completion?gigsixkey=YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Explain quantum computing"} ], "max_tokens": 150, "temperature": 0.7 }'

Ready to integrate AI into
your applications?

Start Building
cta-area