apyhub
Back

Caption Generator API

What it does

Social Caption Generator turns a topic into platform-ready social media captions. Send a topic and platform, and you can also set an optional tone of fun, professional, bold, or genz.

Use it when you need copy that fits the channel instead of rewriting the same idea by hand for each network. It supports instagram, tiktok, x, and linkedin, so you can generate captions for a post, short-form video, or a more professional update from the same input.

The response includes a tool name, a result array with three caption options, and a hashtags array generated from the topic. Each caption is returned with its hashtags appended, which makes it easy to plug the output into a scheduler, content workflow, or internal marketing tool.

POST
Social Media Caption Generator
https://api.eu.apyhub.com/freedailypro/caption-generator-api/seo/caption-generator

QUICKSTART

GUIDE

Quickstart

Generate three SEO caption options for a topic on your chosen platform.

curl -X POST "https://api.eu.apyhub.com/freedailypro/caption-generator-api/seo/caption-generator" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"topic":"sunset hike","platform":"instagram","tone":"professional"}'

What you'll get back

Returns a JSON object with tool (string), result (array of strings), and hashtags (array of strings). tool is the name of the tool that produced the response, result contains three caption options for the chosen platform and tone, and hashtags contains hashtags generated from the topic.

{
  "tool": "caption-generator-api",
  "result": [
    "Golden hour views and fresh air — the perfect sunset hike. #sunset #hike #outdoors",
    "Chasing light, finding calm. Sunset hikes always deliver. #sunset #hike #nature",
    "One trail, endless colors. This is your sign to go outside. #sunset #adventure #hike"
  ],
  "hashtags": [
    "#sunset",
    "#hike",
    "#nature"
  ]
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

About this endpoint

What it does

Generates social media caption options from a topic, with an optional tone and a required platform. It returns caption text options, the hashtags generated from the topic, and the tool name that produced the response.

Request Body

ParameterTypeMandatoryDescription
topicStringYesCaption topic. String between 1 and 200 characters. Example: sunset hike.
platformENUMYesTarget platform. Allowed values: instagram, tiktok, x, linkedin.
toneENUMNoCaption tone. Allowed values: fun, professional, bold, genz.

Response

Returns a JSON object with three top-level fields: tool as a string, result as a string array, and hashtags as a string array. The result field contains three caption options for the chosen platform and tone, and each caption ends with its hashtags.

ParameterTypeMandatoryDescription
toolStringYesName of the tool that produced the response.
resultString ArrayYesThree caption options for the chosen platform and tone. Each caption ends with its hashtags.
hashtagsString ArrayYesHashtags generated from the topic.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.