API CatalogAI Content Generator API

AI Content Generator API

Generate marketing and editorial content through eight JSON endpoints. Use it in SaaS apps, CMS tools, SEO dashboards, ecommerce catalogs, internal tools, and marketing automation. Every endpoint takes plain JSON in and returns structured JSON out, so you can wire results straight into a UI, database, or workflow.

Open AI Content Generator API on RapidAPI

Base URL and authentication

https://ai-content-generator-api.p.rapidapi.com

All requests are POST with a JSON body and authenticate through RapidAPI. Send these headers on every call:

HeaderValue
Content-Typeapplication/json
X-RapidAPI-KeyYour RapidAPI key
X-RapidAPI-Hostai-content-generator-api.p.rapidapi.com

See Authentication, Rate limits, and Errors for shared behavior.

Response envelope

Every endpoint returns the standard ApiMask envelope. AI endpoints include the model and token usage in meta:

{
  "success": true,
  "data": { },
  "error": null,
  "meta": {
    "request_id": "req_3f1c9a2b7d10",
    "model": "gpt-4o-mini",
    "prompt_tokens": 412,
    "completion_tokens": 188,
    "cost_usd": 0.00012345
  }
}

Endpoints

POST /v1/content/summarize
POST /v1/content/rewrite
POST /v1/content/meta-tags
POST /v1/content/blog/outline
POST /v1/content/product-description
POST /v1/content/social-caption
POST /v1/content/headlines
POST /v1/content/faq

Summarize

POST /v1/content/summarize — condense long text into a short summary and key points.

Request body

FieldTypeRequiredDefaultDescription
textstringYesSource text to summarize. Minimum 20 characters.
max_wordsintegerNo150Target length, 201000.
formatstringNoparagraphOutput shape, e.g. paragraph or bullets.

Example

curl --request POST \
  --url https://ai-content-generator-api.p.rapidapi.com/v1/content/summarize \
  --header "Content-Type: application/json" \
  --header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
  --header "X-RapidAPI-Host: ai-content-generator-api.p.rapidapi.com" \
  --data '{"text":"ApiMask is a platform of production-ready APIs for developers and startups building SaaS, AI, and automation products. It bundles content, QR, and developer utilities.","max_words":60,"format":"paragraph"}'
{
  "success": true,
  "data": {
    "format": "paragraph",
    "summary": "ApiMask offers production-ready APIs for developers and startups, bundling content generation, QR code, and developer utility tools.",
    "key_points": [
      "Production-ready API platform",
      "Targets developers and startups",
      "Bundles content, QR, and developer utilities"
    ]
  },
  "error": null,
  "meta": { "request_id": "req_3f1c9a2b7d10", "model": "gpt-4o-mini" }
}

Response fields

FieldTypeDescription
formatstringFormat that was applied.
summarystring or nullSummary text.
key_pointsstring[]Extracted bullet points.

Rewrite

POST /v1/content/rewrite — rephrase text in a target tone while preserving meaning.

Request body

FieldTypeRequiredDefaultDescription
textstringYesText to rewrite. Minimum 10 characters.
tonestringNoprofessionalTarget tone, e.g. friendly, formal, confident.
audiencestringNonullIntended audience for context.
preserve_meaningbooleanNotrueKeep the original meaning intact.

Example

curl --request POST \
  --url https://ai-content-generator-api.p.rapidapi.com/v1/content/rewrite \
  --header "Content-Type: application/json" \
  --header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
  --header "X-RapidAPI-Host: ai-content-generator-api.p.rapidapi.com" \
  --data '{"text":"Our API is fast and easy to use.","tone":"confident","audience":"developers"}'
{
  "success": true,
  "data": {
    "rewritten_text": "Built for developers, our API delivers low-latency responses and a setup you can finish in minutes.",
    "notes": ["Strengthened value proposition", "Added developer framing"]
  },
  "error": null,
  "meta": { "request_id": "req_8b21d4e0f9aa", "model": "gpt-4o-mini" }
}

Response fields

FieldTypeDescription
rewritten_textstringRewritten text.
notesstring[]Notes on what changed.

SEO meta tags

POST /v1/content/meta-tags — generate an SEO title, meta description, and keywords from page content. See the focused SEO Meta Tags API page for the full field reference.

Request body

FieldTypeRequiredDefaultDescription
page_contentstringYesPage, product, or article content. Minimum 20 characters.
page_urlstringNonullPage URL for context.
target_keywordstringNonullPrimary keyword to target.

Example

curl --request POST \
  --url https://ai-content-generator-api.p.rapidapi.com/v1/content/meta-tags \
  --header "Content-Type: application/json" \
  --header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
  --header "X-RapidAPI-Host: ai-content-generator-api.p.rapidapi.com" \
  --data '{"page_content":"ApiMask is a platform of production-ready APIs for developers and startups building SaaS, AI, and automation products.","page_url":"https://apimask.dev","target_keyword":"developer APIs"}'
{
  "success": true,
  "data": {
    "title": "Production-ready Developer APIs for SaaS, AI & Automation | ApiMask",
    "description": "Build faster with ApiMask, a platform of production-ready developer APIs for SaaS, AI, and automation products.",
    "keywords": ["developer APIs", "SaaS APIs", "AI APIs", "automation APIs"]
  },
  "error": null,
  "meta": { "request_id": "req_5d7a1c0e23bb", "model": "gpt-4o-mini" }
}

Response fields

FieldTypeDescription
titlestringSEO page title.
descriptionstringMeta description.
keywordsstring[]Suggested keywords.

Blog outline

POST /v1/content/blog/outline — generate a structured blog outline from a topic.

Request body

FieldTypeRequiredDefaultDescription
topicstringYesBlog topic. Minimum 5 characters.
target_keywordstringNonullPrimary SEO keyword.
audiencestringNonullIntended audience.
tonestringNoprofessionalWriting tone.
sectionsintegerNo6Number of sections, 312.

Example

curl --request POST \
  --url https://ai-content-generator-api.p.rapidapi.com/v1/content/blog/outline \
  --header "Content-Type: application/json" \
  --header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
  --header "X-RapidAPI-Host: ai-content-generator-api.p.rapidapi.com" \
  --data '{"topic":"How to validate emails at signup","target_keyword":"email validation","audience":"developers","sections":5}'
{
  "success": true,
  "data": {
    "title": "How to Validate Emails at Signup: A Developer's Guide",
    "introduction_angle": "Why invalid signups cost you money and how validation fixes it",
    "sections": [
      {
        "heading": "Syntax vs. deliverability checks",
        "talking_points": ["Regex limits", "Why MX checks matter"]
      }
    ],
    "conclusion_angle": "Ship validation in an afternoon",
    "seo_keywords": ["email validation", "signup flow", "MX records"]
  },
  "error": null,
  "meta": { "request_id": "req_a1b2c3d4e5f6", "model": "gpt-4o-mini" }
}

Response fields

FieldTypeDescription
titlestringProposed post title.
introduction_anglestringSuggested intro angle.
sectionsobject[]Each has heading and talking_points (string[]).
conclusion_anglestringSuggested conclusion angle.
seo_keywordsstring[]Suggested keywords.

Product description

POST /v1/content/product-description — generate ecommerce product copy.

Request body

FieldTypeRequiredDefaultDescription
product_namestringYesProduct name. Minimum 2 characters.
product_detailsstringYesFeatures, specs, or context. Minimum 20 characters.
audiencestringNonullTarget buyer.
tonestringNopersuasiveCopy tone.
target_keywordstringNonullPrimary keyword.
lengthstringNomediumshort, medium, or long.

Example

curl --request POST \
  --url https://ai-content-generator-api.p.rapidapi.com/v1/content/product-description \
  --header "Content-Type: application/json" \
  --header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
  --header "X-RapidAPI-Host: ai-content-generator-api.p.rapidapi.com" \
  --data '{"product_name":"TrailLight 500","product_details":"Rechargeable USB-C headlamp, 500 lumens, 12-hour runtime, IPX6 waterproof.","audience":"hikers","length":"medium"}'
{
  "success": true,
  "data": {
    "title": "TrailLight 500: 500-Lumen USB-C Headlamp Built for the Backcountry",
    "description": "Light up the trail with the TrailLight 500. Its 500-lumen beam and 12-hour runtime keep you moving from dusk to dawn, while IPX6 waterproofing shrugs off rain and creek crossings.",
    "bullet_points": [
      "500 lumens of adjustable brightness",
      "12-hour runtime on a single charge",
      "USB-C rechargeable",
      "IPX6 waterproof"
    ],
    "seo_keywords": ["USB-C headlamp", "waterproof headlamp", "hiking headlamp"]
  },
  "error": null,
  "meta": { "request_id": "req_9c8b7a6d5e4f", "model": "gpt-4o-mini" }
}

Response fields

FieldTypeDescription
titlestringProduct title.
descriptionstringLong-form description.
bullet_pointsstring[]Feature bullets.
seo_keywordsstring[]Suggested keywords.

Social caption

POST /v1/content/social-caption — generate platform-specific captions with optional hashtags.

Request body

FieldTypeRequiredDefaultDescription
contentstringYesSource content or message. Minimum 10 characters.
platformstringNolinkedinTarget platform, e.g. linkedin, x, instagram.
tonestringNoprofessionalCaption tone.
include_hashtagsbooleanNotrueInclude suggested hashtags.
call_to_actionstringNonullCTA to append.
variantsintegerNo3Number of variants, 110.

Example

curl --request POST \
  --url https://ai-content-generator-api.p.rapidapi.com/v1/content/social-caption \
  --header "Content-Type: application/json" \
  --header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
  --header "X-RapidAPI-Host: ai-content-generator-api.p.rapidapi.com" \
  --data '{"content":"We launched a new developer utilities API on RapidAPI.","platform":"x","variants":2,"call_to_action":"Try the free plan"}'
{
  "success": true,
  "data": {
    "platform": "x",
    "variants": [
      {
        "caption": "Just shipped our Developer Utilities API on RapidAPI. Email validation, JSON tools, hashing, and more in one subscription. Try the free plan 👇",
        "hashtags": ["#API", "#DevTools", "#BuildInPublic"]
      },
      {
        "caption": "One API, a dozen developer utilities. Now live on RapidAPI. Try the free plan.",
        "hashtags": ["#developers", "#API", "#SaaS"]
      }
    ]
  },
  "error": null,
  "meta": { "request_id": "req_2e4f6a8c0b1d", "model": "gpt-4o-mini" }
}

Response fields

FieldTypeDescription
platformstringPlatform the captions target.
variantsobject[]Each has caption and hashtags (string[]).

Headlines

POST /v1/content/headlines — generate headline variants with an angle and a predicted click score.

Request body

FieldTypeRequiredDefaultDescription
topicstringYesHeadline topic. Minimum 5 characters.
audiencestringNonullTarget audience.
goalstringNoincrease clicksOptimization goal.
countintegerNo10Number of variants, 320.

Example

curl --request POST \
  --url https://ai-content-generator-api.p.rapidapi.com/v1/content/headlines \
  --header "Content-Type: application/json" \
  --header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
  --header "X-RapidAPI-Host: ai-content-generator-api.p.rapidapi.com" \
  --data '{"topic":"Developer utilities API on RapidAPI","audience":"developers","count":3}'
{
  "success": true,
  "data": {
    "variants": [
      {
        "headline": "12 Developer Utilities, One API Subscription",
        "angle": "consolidation",
        "predicted_ctr_score": 0.72
      },
      {
        "headline": "Stop Rebuilding the Same Dev Helpers",
        "angle": "pain point",
        "predicted_ctr_score": 0.68
      }
    ]
  },
  "error": null,
  "meta": { "request_id": "req_7a9b1c3d5e7f", "model": "gpt-4o-mini" }
}

Response fields

FieldTypeDescription
variantsobject[]Each has headline, angle, and predicted_ctr_score (01).

FAQ

POST /v1/content/faq — generate question-and-answer pairs from source text.

Request body

FieldTypeRequiredDefaultDescription
source_textstringYesSource content. Minimum 30 characters.
audiencestringNonullTarget audience.
countintegerNo6Number of FAQs, 315.

Example

curl --request POST \
  --url https://ai-content-generator-api.p.rapidapi.com/v1/content/faq \
  --header "Content-Type: application/json" \
  --header "X-RapidAPI-Key: $RAPIDAPI_KEY" \
  --header "X-RapidAPI-Host: ai-content-generator-api.p.rapidapi.com" \
  --data '{"source_text":"ApiMask APIs are billed through RapidAPI. The free plan includes 100 requests per month. Paid plans add higher quotas and priority support.","count":2}'
{
  "success": true,
  "data": {
    "faqs": [
      {
        "question": "How is ApiMask billed?",
        "answer": "ApiMask APIs are billed through RapidAPI subscriptions."
      },
      {
        "question": "What does the free plan include?",
        "answer": "The free plan includes 100 requests per month."
      }
    ]
  },
  "error": null,
  "meta": { "request_id": "req_4b6d8f0a2c4e", "model": "gpt-4o-mini" }
}

Response fields

FieldTypeDescription
faqsobject[]Each has question and answer.

Errors

Validation failures return INVALID_REQUEST (HTTP 400); auth and quota issues return UNAUTHORIZED (401) or RATE_LIMIT_EXCEEDED (429). See Errors for the full list and envelope shape.