AI Captions
UniPulse's AI engine is powered by Google Gemini 2.5 Flash and provides a full suite of content generation tools — from captions and hashtags to CTAs, translations, and even image generation. Every AI feature consumes credits from your workspace's ai_credits quota.
AI Endpoints Overview
UniPulse exposes six AI endpoints, all accessible from within the Composer or via the API:
| Endpoint | Method | Purpose |
|---|---|---|
/ai/caption/generate | POST | Generate new captions from a topic or brief |
/ai/caption/rewrite | POST | Rewrite an existing caption with different parameters |
/ai/hashtags/generate | POST | Generate relevant hashtags for your content |
/ai/cta/generate | POST | Generate call-to-action suggestions |
/ai/translate | POST | Translate a caption to another language |
/ai/image/generate | POST | Generate an AI image from a text prompt |
Every AI call deducts from your workspace's ai_credits quota. You can check your remaining credits in Settings > Workspace > Usage. Different endpoints may consume different amounts of credits.
Caption Generation
The primary AI feature. When you click AI Generate in the Composer, you're calling POST /ai/caption/generate with a CaptionInput payload.
CaptionInput Parameters
| Parameter | Type | Description |
|---|---|---|
topic | string | The subject or brief for the caption |
tone | string | Desired tone — professional, casual, playful, urgent, witty, etc. |
length | string | Target length — short (1–2 lines), medium, or long-form |
language | string | Output language (English, Arabic, and more) |
hashtags | boolean/options | Whether to include hashtags, and count preferences |
emoji | string | Emoji usage level — none, minimal, or heavy |
CTA options | object | Whether to include a call-to-action and its style |
Step-by-Step
- Open the Composer
- Click AI Generate (or use
Ctrl/Cmd + Shift + G) - Enter a topic or brief — or let the AI analyze your uploaded media for context
- Configure tone, length, language, hashtags, emoji, and CTA preferences
- Click Generate to receive multiple caption options
- Select your favorite, or mix elements from different suggestions
Be specific in your brief. "Announce our summer sale with 30% off all products, targeting young professionals" will produce dramatically better results than "write something about a sale."
Caption Rewriting
Already have a caption but want to improve it? Use POST /ai/caption/rewrite to:
- Change the tone (e.g., make a formal caption more casual)
- Shorten or lengthen the text
- Add or remove hashtags and emojis
- Adapt it for a different platform
- Inject a CTA into existing copy
The rewrite endpoint accepts the same CaptionInput parameters plus your existing caption as the base text.
Hashtag Generation
The POST /ai/hashtags/generate endpoint analyzes your caption content, uploaded media, and niche to suggest relevant hashtags. Generated hashtags are stored in the Post's hashtags[] array, with per-platform overrides available via hashtagOverrides (JSON).
What the AI considers:
- Your caption topic and keywords
- Trending hashtags in your niche
- Your Brand Voice hashtag preferences (branded hashtags, count preferences)
- Platform-specific best practices (e.g., up to 30 for Instagram, fewer for Facebook)
CTA Generation
The POST /ai/cta/generate endpoint produces call-to-action suggestions tailored to your content. Examples:
- "Shop the collection — link in bio"
- "Double-tap if you agree"
- "Save this for later"
- "Tag a friend who needs this"
The AI adapts CTA style based on your tone settings and target platform.
Translation
The POST /ai/translate endpoint translates your finalized caption into another language while preserving:
- Brand voice and tone
- Hashtag relevance (translates or finds equivalent trending tags)
- Emoji placement
- CTA intent
This is particularly useful for workspaces managing bilingual audiences (e.g., English and Arabic).
AI Image Generation
The POST /ai/image/generate endpoint creates images from text prompts. Generated images are saved as MediaFile objects and can be attached to your post directly from the Composer.
AI-generated images consume more credits than text generation. Check your ai_credits balance before generating multiple images.
Brand Voice Integration
If you have a Brand Voice configured for your workspace, all AI endpoints automatically use it. The Brand Voice supplies:
toneAttributes— How formal, playful, or authoritative the output should soundvocabulary— Industry terms, brand-specific phrases, and words to avoidwritingStyle— Sentence structure preferences, paragraph length, formatting habitssamplePosts— Real examples the AI uses as reference for style matching
You'll see a Brand Voice: Active indicator in the Composer when a default Brand Voice is applied.
Tips for Better Results
- Upload media first — The AI can analyze images and videos for visual context, producing more relevant captions
- Generate multiple options — Click regenerate to get fresh variations; mix and match elements from different suggestions
- Use the rewrite endpoint — Instead of starting over, refine what you have
- Be specific with topics — Include details like target audience, key message, and desired action
- Leverage Brand Voice — A well-trained Brand Voice dramatically improves consistency across all generated content
Behind the Scenes
When you trigger any AI generation, the request is placed on the ai-suggestions queue for processing. The AI engine:
- Receives your
CaptionInputparameters - Loads your workspace's active Brand Voice (if configured)
- Calls Gemini 2.5 Flash with a structured prompt
- Returns multiple options ranked by relevance
- Deducts credits from your
ai_creditsquota
The post-classify queue may also run post-generation to categorize and tag the content for analytics purposes.
Related Pages
- Post Composer — Where you use AI features in context
- Brand Voice — Train the AI to match your style
- Content Calendar — AI-generated content calendars
- Content Repurposing — Transform content across formats with AI