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 code

Claude, Cursor, Windsurf or any MCP client. Add one URL, sign in, and ask for posts in plain words.

https://www.fluxsocial.app/api/mcp
Connect in a minute

From your code

REST API

23 JSON endpoints with Bearer keys. Generate, make media, schedule and post.

POST/api/v1/content
Make your first call

Model 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.

A real Claude Code run, sped up 5x. One sentence in, a live Instagram post out.

Connect

  1. 1

    Open Settings → Connectors

    In the Claude desktop app or on claude.ai, click Add custom connector.
  2. 2

    Paste the FluxSocial URL

    https://www.fluxsocial.app/api/mcp
  3. 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 tools

Create

  • generate_content · Captions, titles and hashtags
  • generate_image · The AI picture for a post
  • upload_media · Use your own photo or video
  • get_content · Read a post back

Video

  • generate_video · AI footage clip
  • generate_kinetic_video · Animated text video for offers
  • edit_kinetic_video · Change a finished one
  • check_video_status · Poll until it's ready

Publish

  • post_content · Post now
  • schedule_content · Post later
  • get_optimal_time · Best time to post
  • check_post_status · Where it went live
  • cancel_scheduled_post · Cancel a scheduled post

Plan

  • plan_week · A week of drafts to review
  • launch_campaign · A goal-driven campaign
  • get_review_queue · Drafts waiting for you
  • approve_posts · Approve or skip drafts

Business

  • research_business · Fill the brand profile from the web
  • update_business_profile · Save brand details once
  • list_businesses · Your businesses
  • list_accounts · Connected accounts
  • get_credit_balance · Credits left
  • preview_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. 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.

    Terminal
    bash
    export FLUX_API_KEY="fsx_live_..."
  2. 2

    Find your business

    Content is made for a business, with its voice and its accounts.

    curl https://www.fluxsocial.app/api/v1/businesses \
      -H "Authorization: Bearer $FLUX_API_KEY"
  3. 3

    Generate a post

    You get up to 4 ideas back, each with a caption, hashtags and a picture brief. 5-20 credits.

    curl -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. 4

    Make the picture and post it

    Use an idea's id, and an accountId from GET /accounts.

    # 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
bash
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
bash
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
bash
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.

Base URL
https://www.fluxsocial.app

Content

Write captions and make the pictures.

POST
/api/v1/contentGenerate post ideas with captions and hashtags
Scope content:write· Cost 5-20 cr

Body

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
Response
json
{
  "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
Scope content:read
Response
json
{
  "id": "sug_...",
  "title": "...",
  "body": "...",
  "contentFormat": "IMAGE",
  "tags": ["yoga"],
  "images": [{ "imageUrl": "https://...", "orderIndex": 0 }]
}
POST
/api/v1/content/{id}/imageMake the AI picture for a post
Scope content:write· Cost 50 cr

Body

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
Response
json
{ "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 URL
Scope content:write· Cost free

Body

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)
Response
json
{
  "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 clip
Scope content:write· Cost 1,200 cr

Body

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
Response
json
{ "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 video
Scope content:write· Cost 400-600 cr

Body

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
Response
json
{
  "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 video
Scope content:write· Cost 100 cr

Body

instructionrequired
stringThe change, e.g. "make the price bigger"
logoUrl
stringHTTPS image that replaces the video's logo
Response
json
{
  "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
Scope content:read
Response
json
{
  "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
Scope post:write

Body

targetsrequired
array[{ accountId, platform }], one or more
scheduledFor
stringISO 8601 time. Prefer /schedule for this
Response
json
{
  "suggestionId": "sug_...",
  "results": [{
    "platform": "instagram",
    "status": "success",
    "postUrl": "https://instagram.com/p/..."
  }]
}
POST
/api/v1/content/{id}/scheduleSchedule a post
Scope post:write

Body

scheduledForrequired
stringISO 8601 time in the future
targetsrequired
array[{ accountId, platform }]
Response
json
{
  "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
Scope post:write

Query

businessIdrequired
stringBusiness to analyze
accountIds
stringComma-separated account IDs to narrow it down
Response
json
{
  "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
Scope content:read
Response
json
{
  "id": "sug_...",
  "status": "POSTED",
  "platforms": [{
    "platform": "instagram",
    "postUrl": "https://instagram.com/p/..."
  }]
}
DELETE
/api/v1/content/{id}/postCancel a scheduled post
Scope post:write
Response
json
{ "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
Scope content:write

Body

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
Scope content:read

Query

businessIdrequired
stringBusiness ID. Can be left out when the key is scoped to one business
Response
json
{
  "campaigns": [{
    "id": "...",
    "name": "Summer Menu Launch",
    "goal": "...",
    "postsPerWeek": 3,
    "status": "ACTIVE"
  }]
}
GET
/api/v1/calendar/review-queueList drafts waiting for approval
Scope content:read

Query

businessIdrequired
stringBusiness ID. Can be left out when the key is scoped to one business
Response
json
{
  "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
Scope post:write

Body

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
Response
json
{
  "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
Scope businesses:read
Response
json
{
  "businesses": [{
    "id": "biz_...",
    "name": "The Morning Cup",
    "type": "cafe",
    "brandVoice": "..."
  }]
}
POST
/api/v1/researchResearch the business online and fill its profile
Scope content:write

Body

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
Response
json
{
  "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)
Scope content:write

Body

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
Response
json
{
  "business": { "id": "biz_...", "name": "The Morning Cup", "brandVoice": "..." }
}

Text fields take up to 1,000 characters.

GET
/api/v1/accountsList connected social accounts
Scope accounts:read

Query

businessId
stringOnly this business's accounts
Response
json
{
  "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
Scope credits:read
Response
json
{ "balance": 5000 }
GET
/api/v1/credits/cost-previewSee what something costs before you run it
Scope credits:read

Query

typerequired
stringtext, image, video, kinetic_video or kinetic_edit
duration
numberSeconds. Prices video and kinetic_video
quality
stringkinetic_video only: "standard" or "premium"
Response
json
{ "type": "image", "cost": 50, "currentBalance": 5000 }

Reference

Errors, limits and scopes

Errors share one shape, and status always matches the HTTP code.

Error
json
{ "error": { "message": "Not enough credits", "status": 402 } }
400Bad requestA parameter is missing or wrong
401UnauthorizedThe API key is missing or invalid
402Out of creditsNot enough credits. The body includes currentBalance
403ForbiddenThe key doesn't have the scope this needs
404Not foundIt doesn't exist, or it isn't yours
408TimeoutDownloading your media took too long
413Too largeMedia over 8MB (images) or 100MB (videos)
415Unsupported mediaThe file isn't a supported image or video
429Rate limitedToo many requests. The body includes retryAfter (seconds)
500Server errorSomething broke on our side. Retry, or contact us
503UnavailableAn AI model or a platform API is down for a moment

Rate limits

Per account: your keys and MCP share them. Every response has X-RateLimit-Remaining.

Content generation10 / hour
Image generation5 / hour
Everything else60 / hour

Key scopes

Give each key only what it needs.

credits:read

Credit balance and cost previews

content:read

Posts, videos, campaigns and post status

content:write

Generate content (costs credits) and save profiles

post:write

Publish, schedule and approve posts

accounts:read

Connected social accounts

businesses:read

Businesses and brand profiles

Ready to build?

New accounts start with free credits. No card needed.