Generate Post Text
Generate a new social post using AI
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
AuthorizationstringrequiredBody Parameters
textstringrequiredDescription 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.
mediaUrlsarrayAn array of image URLs to base the post text on. Required if text parameter not included.
hashtagsbooleandefault: trueAdd hashtags to the post.
emojisbooleandefault: falseAdd emojis to the post.
twitterbooleandefault: falseConstruct 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
}