ACME API Documentation logo

Generate Post Text

Generate a new social post using AI

POSThttps://api.acme.com/api/generate/post
Available on Premium, Business, Enterprise plans.Max Pack required

Generate a new social post using AI. You can either provide text or images to create the social media post. Token limits applicable.

Header Parameters

Authorizationstringrequired
API Key of the Primary Profile.

Format: Authorization: Bearer API_KEY

Body Parameters

textstringrequired

Description of what the post should be about. For example: "A shoe sale happening Monday with specials on red, blue, and yellow shoes". Not required if mediaUrls parameter is included.

mediaUrlsarray

An array of image URLs to base the post text on. Required if text parameter not included.

hashtagsbooleandefault: true

Add hashtags to the post.

emojisbooleandefault: false

Add emojis to the post.

twitterbooleandefault: false

Construct a post with 280 or few characters.

curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"text": "This beautiful new shoe is on sale now. It comes in red, blue, or purple. Check it out today."}' \
-X POST https://api.acme.com/api/generate/post
{
    "status": "success",
    "post": "πŸŽ‰πŸ›οΈ Introducing the stunning new shoes that's now on sale! You can choose from three different colors – red, blue, or purple – and trust us, they're all amazing! Don't miss out on this beauty and grab yours today! πŸ™Œ #newshoe #onSale #fashionable #colormebeautiful 🌈",
    "usage": 98,                // Tokens used for this call
    "totalMonthlyUsage": 733    // Total tokens used for the month
}