# Comment Generator API

> Comment Generator produces social media comments formatted for text or image posts across positive, negative, and neutral tones. Each request returns generated comment text with optional emoji support, while paid plans can request batches up to 10.

**Endpoint:** `GET https://api.apiverve.com/v1/commentgenerator`  
**Category:** Data Generation  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/commentgenerator

## Overview

Supply the target post type (text or picture) along with an optional tone selection and an emoji toggle. The response returns an array containing generated comment strings matching the requested tone, which defaults to positive. The Free tier generates one comment per request, while paid plans can specify a count of up to 10.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/commentgenerator?mode=text&tone=positive&count=5&emojis=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `mode` | string | Yes | The mode of comment generation. One of: text, picture |
| `tone` | string | No | The tone of the comments. default positive. One of: positive, negative, neutral |
| `count` | integer | No | The number of comments to generate (max 10). default 1. range 1-10. Premium field |
| `emojis` | boolean | No | Whether to include emojis in the comments. default true |

## Response fields

- `count` — number · Number of comments generated based on request
- `mode` — string · Comment generation mode used for comments
- `tone` — string · Tone applied to all generated comments
- `comments` — array · Array of AI-generated social media comments

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 5,
    "mode": "text",
    "tone": "positive",
    "comments": [
      "You're so right! is a game-changer Wow! 😍",
      "Inspiring stuff gives me all the feels Wow! ✨",
      "Thanks for sharing this gives me all the feels Perfect! 💯",
      "Exactly my thoughts is on fire Wow beyond! 🌟",
      "Great outlook in everything here, very bright! slays! For sure! 😊"
    ]
  }
}
```

## Use cases

- **Social Feed Automation** — Social media management apps generate quick draft replies in positive or neutral tones to speed up community manager workflows across image feeds.
- **Synthetic Dataset Creation** — Machine learning teams produce labeled positive and negative social comments to train and test text sentiment classification algorithms.
- **Forum Prototype Seeding** — When staging new social applications, developers populate mock feed discussions with sample image-post comments instead of manually writing placeholder copy.
- **Moderation Bot Benchmarking** — Evaluate automated content filters by testing incoming negative comment responses against keyword rules and toxicity thresholds before deploying to production.

## SDKs

- **npm** — `npm install @apiverve/commentgenerator` (https://www.npmjs.com/package/@apiverve/commentgenerator)
- **PyPI** — `pip install apiverve-commentgenerator` (https://pypi.org/project/apiverve-commentgenerator/)
- **NuGet** — `dotnet add package APIVerve.API.CommentGenerator` (https://www.nuget.org/packages/APIVerve.API.CommentGenerator)
- **Source** — https://github.com/apiverve/commentgenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/commentgenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
