FluxSocial for developers
Social posts from your AI assistant or your code
FluxSocial writes the caption, makes the picture or video, and posts it to Instagram and TikTok at the right time. Pick how you want to use it.
In your AI assistant
No codeClaude, Cursor, Windsurf or any MCP client. Add one URL, sign in, and ask for posts in plain words.
https://www.fluxsocial.app/api/mcpFrom your code
REST API23 JSON endpoints with Bearer keys. Generate, make media, schedule and post.
/api/v1/contentModel Context Protocol
Use it from your AI assistant
FluxSocial is a remote MCP server. Your assistant gets the tools to write, make media and post, and you just talk to it.
Connect
- 1
Open Settings → Connectors
In the Claude desktop app or on claude.ai, click Add custom connector. - 2
Paste the FluxSocial URL
https://www.fluxsocial.app/api/mcp - 3
Sign in and approve
A FluxSocial page opens in your browser. Sign in and click Authorize. No API key to copy.
Then just ask
- “Draft this week's posts for my cafe”
- “Make a 15-second promo: 2 lattes for $9 this weekend”
- “Post it to Instagram at the best time”
Clients that show MCP prompts also get 3 one-click starters: Plan this week's posts, Turn an idea into an Instagram post, Find the best time to post.
What your assistant can do
23 toolsCreate
generate_content· Captions, titles and hashtagsgenerate_image· The AI picture for a postupload_media· Use your own photo or videoget_content· Read a post back
Video
generate_video· AI footage clipgenerate_kinetic_video· Animated text video for offersedit_kinetic_video· Change a finished onecheck_video_status· Poll until it's ready
Publish
post_content· Post nowschedule_content· Post laterget_optimal_time· Best time to postcheck_post_status· Where it went livecancel_scheduled_post· Cancel a scheduled post
Plan
plan_week· A week of drafts to reviewlaunch_campaign· A goal-driven campaignget_review_queue· Drafts waiting for youapprove_posts· Approve or skip drafts
Business
research_business· Fill the brand profile from the webupdate_business_profile· Save brand details oncelist_businesses· Your businesseslist_accounts· Connected accountsget_credit_balance· Credits leftpreview_cost· Cost before you run it
Same credits and hourly limits as your REST keys. Sign-in uses MCP OAuth 2.1, so no key ever sits in a config file. Revoke access any time in Settings → API Keys.
REST API
Your first post in four calls
Every request is JSON with your key as a Bearer token. Credits come from the same balance as the web app.
- 1
Create an API key
In Settings → API Keys, create a key with the scopes you need. It is shown once, so save it as an environment variable.
Terminalbashexport FLUX_API_KEY="fsx_live_..." - 2
Find your business
Content is made for a business, with its voice and its accounts.
GET /businessescurl https://www.fluxsocial.app/api/v1/businesses \ -H "Authorization: Bearer $FLUX_API_KEY" - 3
Generate a post
You get up to 4 ideas back, each with a caption, hashtags and a picture brief. 5-20 credits.
POST /contentcurl -X POST https://www.fluxsocial.app/api/v1/content \ -H "Authorization: Bearer $FLUX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "Morning latte art", "businessId": "biz_abc123", "contentFormat": "IMAGE" }' - 4
Make the picture and post it
Use an idea's
id, and anaccountIdfromGET /accounts.Image, then post# Make the picture (50 credits) curl -X POST https://www.fluxsocial.app/api/v1/content/sug_001/image \ -H "Authorization: Bearer $FLUX_API_KEY" # Post it curl -X POST https://www.fluxsocial.app/api/v1/content/sug_001/post \ -H "Authorization: Bearer $FLUX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "targets": [{ "accountId": "acc_ig1", "platform": "instagram" }] }'
More recipes
Schedule for the best time
Ask when this audience is most active, then schedule for then.
Schedule for the best time
Ask when this audience is most active, then schedule for then.
curl "https://www.fluxsocial.app/api/v1/schedule/optimal-time?businessId=biz_abc123" \
-H "Authorization: Bearer $FLUX_API_KEY"
# → { "data": { "scheduledDateTime": "2026-04-09T09:30:00.000Z", ... } }
curl -X POST https://www.fluxsocial.app/api/v1/content/sug_001/schedule \
-H "Authorization: Bearer $FLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"scheduledFor": "2026-04-09T09:30:00.000Z",
"targets": [{ "accountId": "acc_ig1", "platform": "instagram" }]
}'Plan a week, then approve it
Drafts a week of posts into a review queue. Nothing posts until you approve.
Plan a week, then approve it
Drafts a week of posts into a review queue. Nothing posts until you approve.
curl -X POST https://www.fluxsocial.app/api/v1/campaigns \
-H "Authorization: Bearer $FLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "mode": "plan_week", "businessId": "biz_abc123", "postsPerWeek": 4 }'
curl "https://www.fluxsocial.app/api/v1/calendar/review-queue?businessId=biz_abc123" \
-H "Authorization: Bearer $FLUX_API_KEY"
curl -X POST https://www.fluxsocial.app/api/v1/calendar/review-queue \
-H "Authorization: Bearer $FLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "businessId": "biz_abc123", "suggestionIds": ["sug_001", "sug_002"] }'Make an animated promo video
Text, prices and dates rendered exactly. From 400 credits, ready in a few minutes.
Make an animated promo video
Text, prices and dates rendered exactly. From 400 credits, ready in a few minutes.
curl -X POST https://www.fluxsocial.app/api/v1/video/kinetic \
-H "Authorization: Bearer $FLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"businessId": "biz_abc123",
"prompt": "Weekend special: 2 lattes for $9, Sat-Sun 8-11am, 14 Main St.",
"durationSeconds": 15
}'
# → { "operationId": "op_...", "status": "processing" }
# Poll every 10-15 seconds until "completed"
curl https://www.fluxsocial.app/api/v1/video/op_... \
-H "Authorization: Bearer $FLUX_API_KEY"Reference
API reference
Open an endpoint to see its fields and an example response.
https://www.fluxsocial.appContent
Write captions and make the pictures.
POST/api/v1/contentGenerate post ideas with captions and hashtags5-20 cr
/api/v1/contentGenerate post ideas with captions and hashtagscontent:write· Cost 5-20 crBody
promptrequired- stringWhat the post is about
businessIdrequired- stringBusiness ID from /businesses
contentFormat- stringIMAGE, VIDEO, CAROUSEL, REEL, STORY or TEXT. Default: IMAGE
useContentDNA- booleanMatch the business's own post history and look. Default: true
language- stringForce the output language (e.g. "he", "es"). Omit to follow the prompt
suggestionCount- number1-6 suggestions. Default: 4
{
"sessionId": "ses_...",
"suggestions": [{
"id": "sug_...",
"title": "5 Morning Yoga Poses",
"body": "Start your day with intention...",
"contentFormat": "IMAGE",
"tags": ["yoga", "wellness"]
}],
"creditsUsed": 20,
"balanceAfter": 4980,
"brandProfile": { "complete": true }
}GET/api/v1/content/{id}Get a generated post
/api/v1/content/{id}Get a generated postcontent:read{
"id": "sug_...",
"title": "...",
"body": "...",
"contentFormat": "IMAGE",
"tags": ["yoga"],
"images": [{ "imageUrl": "https://...", "orderIndex": 0 }]
}POST/api/v1/content/{id}/imageMake the AI picture for a post50 cr
/api/v1/content/{id}/imageMake the AI picture for a postcontent:write· Cost 50 crBody
imageIndex- numberSlide index for carousels (0-based). Default: 0
customPrompt- stringReplace the picture brief written for the post
aspectRatio- string"1:1", "4:5", "9:16" and so on. Default: 9:16 for stories and reels, 1:1 otherwise
{ "imageUrl": "https://...", "creditsUsed": 50 }Uses the post's own picture brief by default. For carousels, call once per slide.
POST/api/v1/content/upload-mediaPost your own photo or video from a URLfree
/api/v1/content/upload-mediaPost your own photo or video from a URLcontent:write· Cost freeBody
mediaUrlrequired- stringHTTPS link to the image or video. Max 8MB images, 100MB videos
businessIdrequired- stringBusiness ID
captionrequired- stringCaption for the post
contentFormatrequired- stringIMAGE, VIDEO, CAROUSEL, REEL or STORY
title- stringDefaults to the first 50 characters of the caption
tags- string[]Hashtags without the #
mediaUrls- string[]CAROUSEL only: 2-10 image links (replaces mediaUrl)
{
"suggestionId": "sug_...",
"sessionId": "ses_...",
"contentFormat": "IMAGE",
"mediaUrl": "https://...",
"creditsUsed": 0
}Images are resized to 1080x1080. Videos are stored as they are. TikTok takes VIDEO only.
Video
AI footage, or animated text videos for offers and announcements. Both are async.
POST/api/v1/videoGenerate an AI video clip1,200 cr
/api/v1/videoGenerate an AI video clipcontent:write· Cost 1,200 crBody
promptrequired- stringThe scene: subject, action, camera and mood
businessId- stringFollow this business's content rules and language
duration- number4, 6 or 8 seconds. Default: 8
aspectRatio- string"9:16" or "16:9". Default: 9:16
style- string"realistic", "animated", "cinematic" or "social". Default: social
{ "operationId": "op_...", "status": "processing" }Poll GET /api/v1/video/[operationId] every 10-15 seconds until status is "completed".
POST/api/v1/video/kineticGenerate an animated text video400-600 cr
/api/v1/video/kineticGenerate an animated text videocontent:write· Cost 400-600 crBody
businessIdrequired- stringBusiness ID. Can be left out when the key is scoped to one business
prompt- stringWhat the video says, with every fact to show. Required without sourceUrl
sourceUrl- stringA product or website link. We read the page and use its facts and pictures (free)
durationSeconds- number5-30. Default: 10. Up to 15s costs 400 credits, 16-30s costs 600
aspectRatio- string"9:16", "16:9", "1:1" or "4:5". Default: 9:16
videoType- stringauto, promo, product_demo, explainer, announcement, tips or testimonial
quality- string"standard" or "premium" (+900 credits)
images- object[]Up to 4 of { url, description } to show in the video
aiImages- number | "auto"0-3 AI pictures, 50 credits each
captureDemo- booleanWith sourceUrl: record the live product being used (+200 credits)
brandColors- string[]Up to 6 hex colors
useLogo- booleanShow the business logo. Default: true
{
"operationId": "op_...",
"status": "processing",
"creditsUsed": 400,
"balanceAfter": 4600
}Uses only the facts in the prompt and the page. Poll GET /api/v1/video/[operationId].
POST/api/v1/video/kinetic/{operationId}/editChange a finished animated video100 cr
/api/v1/video/kinetic/{operationId}/editChange a finished animated videocontent:write· Cost 100 crBody
instructionrequired- stringThe change, e.g. "make the price bigger"
logoUrl- stringHTTPS image that replaces the video's logo
{
"operationId": "op_new...",
"status": "processing",
"creditsUsed": 100,
"balanceAfter": 4500
}Returns a new operationId to poll.
GET/api/v1/video/{operationId}Check a video's progress
/api/v1/video/{operationId}Check a video's progresscontent:read{
"operationId": "op_...",
"status": "completed",
"videoUrl": "https://...",
"duration": 8
}Publishing
Post now, schedule for the best time, or cancel.
POST/api/v1/content/{id}/postPost to Instagram or TikTok now
/api/v1/content/{id}/postPost to Instagram or TikTok nowpost:writeBody
targetsrequired- array[{ accountId, platform }], one or more
scheduledFor- stringISO 8601 time. Prefer /schedule for this
{
"suggestionId": "sug_...",
"results": [{
"platform": "instagram",
"status": "success",
"postUrl": "https://instagram.com/p/..."
}]
}POST/api/v1/content/{id}/scheduleSchedule a post
/api/v1/content/{id}/scheduleSchedule a postpost:writeBody
scheduledForrequired- stringISO 8601 time in the future
targetsrequired- array[{ accountId, platform }]
{
"suggestionId": "sug_...",
"scheduledFor": "2026-04-09T09:30:00.000Z",
"targets": [{ "accountId": "acc_ig1", "platform": "instagram" }]
}Posts go out within about 2 minutes of the scheduled time.
GET/api/v1/schedule/optimal-timeGet the best time to post
/api/v1/schedule/optimal-timeGet the best time to postpost:writeQuery
businessIdrequired- stringBusiness to analyze
accountIds- stringComma-separated account IDs to narrow it down
{
"success": true,
"data": {
"scheduledDateTime": "2026-04-09T09:30:00.000Z",
"confidence": 0.87,
"reasoning": "Highest engagement on Wednesday mornings"
}
}GET/api/v1/content/{id}/statusCheck where a post went live
/api/v1/content/{id}/statusCheck where a post went livecontent:read{
"id": "sug_...",
"status": "POSTED",
"platforms": [{
"platform": "instagram",
"postUrl": "https://instagram.com/p/..."
}]
}DELETE/api/v1/content/{id}/postCancel a scheduled post
/api/v1/content/{id}/postCancel a scheduled postpost:write{ "suggestionId": "sug_...", "cancelled": true }Only for posts that are still SCHEDULED.
Planning
Plan a week or a campaign into a review queue, then approve what you like.
POST/api/v1/campaignsPlan a week of posts, or launch a campaign
/api/v1/campaignsPlan a week of posts, or launch a campaigncontent:writeBody
businessIdrequired- stringBusiness ID. Can be left out when the key is scoped to one business
mode- string"plan_week" or "launch_campaign". Default: launch_campaign
postsPerWeek- number2-7
focusTheme- stringplan_week: a theme, promo or launch for the week
name- stringlaunch_campaign: campaign name
goalType- stringlaunch_campaign: awareness, leads, sales, community or launch
goalDescription- stringlaunch_campaign: the offer, audience or call to action
durationWeeks- numberlaunch_campaign: 1-12. Default: 4
Drafts land in the review queue. Nothing is posted until you approve it.
GET/api/v1/campaignsList a business's campaigns
/api/v1/campaignsList a business's campaignscontent:readQuery
businessIdrequired- stringBusiness ID. Can be left out when the key is scoped to one business
{
"campaigns": [{
"id": "...",
"name": "Summer Menu Launch",
"goal": "...",
"postsPerWeek": 3,
"status": "ACTIVE"
}]
}GET/api/v1/calendar/review-queueList drafts waiting for approval
/api/v1/calendar/review-queueList drafts waiting for approvalcontent:readQuery
businessIdrequired- stringBusiness ID. Can be left out when the key is scoped to one business
{
"count": 1,
"drafts": [{
"id": "sug_...",
"title": "...",
"caption": "...",
"contentFormat": "IMAGE",
"scheduledFor": "2026-04-09T09:30:00.000Z",
"imageUrl": "https://...",
"tags": ["coffee"]
}]
}POST/api/v1/calendar/review-queueApprove or skip drafts
/api/v1/calendar/review-queueApprove or skip draftspost:writeBody
businessIdrequired- stringBusiness ID. Can be left out when the key is scoped to one business
suggestionIdsrequired- string[]Up to 50 draft IDs
action- string"approve" (schedules them) or "skip". Default: approve
{
"action": "approve",
"succeeded": 2,
"failed": 0,
"results": [{ "id": "sug_...", "ok": true, "scheduledFor": "..." }]
}Business & accounts
Who you post for, and where.
GET/api/v1/businessesList businesses and their brand profiles
/api/v1/businessesList businesses and their brand profilesbusinesses:read{
"businesses": [{
"id": "biz_...",
"name": "The Morning Cup",
"type": "cafe",
"brandVoice": "..."
}]
}POST/api/v1/researchResearch the business online and fill its profile
/api/v1/researchResearch the business online and fill its profilecontent:writeBody
businessIdrequired- stringBusiness ID. Can be left out when the key is scoped to one business
hints- stringAnything that helps find it: name, city, website, Instagram handle
force- booleanResearch again even if it was done recently
{
"businessId": "biz_...",
"applied": ["description", "brandVoice"],
"fields": {
"brandVoice": { "value": "...", "source": "https://..." }
},
"sources": [...]
}Takes 30-90 seconds. Searches the web, reads the website and its Instagram.
PATCH/api/v1/businesses/{id}Save the brand profile (only the fields you send change)
/api/v1/businesses/{id}Save the brand profile (only the fields you send change)content:writeBody
name- stringMax 100 characters
description- stringWhat the business is
brandVoice- stringHow the brand sounds
targetAudience- stringWho it serves
valueProposition- stringWhy people pick it
type- stringKind of business
industry- stringIndustry
primaryGoals- string[]Up to 10 goals
{
"business": { "id": "biz_...", "name": "The Morning Cup", "brandVoice": "..." }
}Text fields take up to 1,000 characters.
GET/api/v1/accountsList connected social accounts
/api/v1/accountsList connected social accountsaccounts:readQuery
businessId- stringOnly this business's accounts
{
"accounts": [{
"id": "acc_...",
"platform": "instagram",
"username": "@themorningcup",
"followers": 12500
}]
}Credits
The same credit balance as the web app.
GET/api/v1/credits/balanceGet your credit balance
/api/v1/credits/balanceGet your credit balancecredits:read{ "balance": 5000 }GET/api/v1/credits/cost-previewSee what something costs before you run it
/api/v1/credits/cost-previewSee what something costs before you run itcredits:readQuery
typerequired- stringtext, image, video, kinetic_video or kinetic_edit
duration- numberSeconds. Prices video and kinetic_video
quality- stringkinetic_video only: "standard" or "premium"
{ "type": "image", "cost": 50, "currentBalance": 5000 }Reference
Errors, limits and scopes
Errors share one shape, and status always matches the HTTP code.
{ "error": { "message": "Not enough credits", "status": 402 } }400Bad requestA parameter is missing or wrong401UnauthorizedThe API key is missing or invalid402Out of creditsNot enough credits. The body includes currentBalance403ForbiddenThe key doesn't have the scope this needs404Not foundIt doesn't exist, or it isn't yours408TimeoutDownloading your media took too long413Too largeMedia over 8MB (images) or 100MB (videos)415Unsupported mediaThe file isn't a supported image or video429Rate limitedToo many requests. The body includes retryAfter (seconds)500Server errorSomething broke on our side. Retry, or contact us503UnavailableAn AI model or a platform API is down for a momentRate limits
Per account: your keys and MCP share them. Every response has X-RateLimit-Remaining.
Key scopes
Give each key only what it needs.
credits:readCredit balance and cost previews
content:readPosts, videos, campaigns and post status
content:writeGenerate content (costs credits) and save profiles
post:writePublish, schedule and approve posts
accounts:readConnected social accounts
businesses:readBusinesses and brand profiles
Ready to build?
New accounts start with free credits. No card needed.