SocialFaktory API API

SocialFaktory API API: 37 operations.

GitHub OpenAPI

Operations 37

GET /brands List brands #
GET /channels List channels #
GET /channels/{channel_id} Get channel requirements #
GET /formats List formats #
GET /actors List actors #
GET /media List media #
GET /wallet Get wallet #
GET /stats Get brand stats #
POST /reference_checks Check reference #
POST /generations/quote Quote generation #
POST /generations Create generation #
GET /generations List generations #
GET /generations/{generation_id} Get generation #
POST /text_generations Generate text #
GET /text_generations/{text_generation_id} Get text generation #
POST /uploads Create upload #
POST /uploads/{upload_id}/complete Complete upload #
GET /uploads/{upload_id} Get upload #
POST /media_imports Import media #
POST /prompt_readings Create prompt reading #
GET /prompt_readings/{prompt_reading_id} Get prompt reading #
POST /products Create product #
GET /products List products #
POST /images/quote Quote image #
POST /images Generate image #
GET /images/{image_generation_id} Get image #
POST /video_scores/quote Quote video score #
POST /video_scores Create video score #
GET /video_scores/{video_score_id} Get video score #
POST /posts Create posts #
GET /posts List posts #
GET /posts/{post_id} Get post #
DELETE /posts/{post_id} Delete post #
POST /posts/{post_id}/send Send post #
POST /webhook_endpoints Create webhook endpoint #
GET /webhook_endpoints List webhook endpoints #
DELETE /webhook_endpoints/{webhook_endpoint_id} Delete webhook endpoint #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/socialfaktory-com:socialfaktory-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

socialfaktory-com-api-openapi.json Raw ↑
{"openapi":"3.1.0","info":{"title":"SocialFaktory API","version":"1"},"servers":[{"url":"https://www.socialfaktory.com/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["not_found","validation_failed","scope_required","brand_not_allowed","subscription_required","insufficient_tokens","credit_cap_exceeded","idempotency_in_progress","idempotency_key_reuse","reconnect_required","busy","platform_unavailable","service_unavailable","reference_unavailable","unsupported","tool_failed","payload_too_large","rate_limited","unauthorized"]},"code":{"type":"string"},"message":{"type":"string"}}}}},"paths":{"/brands":{"get":{"operationId":"list_brands","summary":"List brands","description":"List the brands this token may act for. A pinned token sees only the brand it is pinned to.","tags":["brands"],"parameters":[],"responses":{"200":{"description":"List brands","content":{"application/json":{"schema":{"properties":{"brands":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string"},"language":{"type":"string"}},"required":["id","name","status","language"]}}},"required":["brands"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/channels":{"get":{"operationId":"list_channels","summary":"List channels","description":"List a brand connected social channels with the caption and media limits each one enforces.","tags":["channels"],"parameters":[{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","description":"The brand this call belongs to. Required unless the token is pinned to a brand."}}],"responses":{"200":{"description":"List channels","content":{"application/json":{"schema":{"properties":{"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"handle":{"type":["string","null"]},"status":{"type":"string"},"caption_limit":{"type":["integer","null"]},"media_required":{"type":"boolean"},"max_media":{"type":["integer","null"]}},"required":["id","provider","status"]}}},"required":["channels"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/channels/{channel_id}":{"get":{"operationId":"get_channel_requirements","summary":"Get channel requirements","description":"Ask the connected social account what it accepts right now: its limits, the TikTok privacy levels the creator allows, and the Pinterest boards a pin can go to.","tags":["channels"],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","description":"The brand this call belongs to. Required unless the token is pinned to a brand."}}],"responses":{"200":{"description":"Get channel requirements","content":{"application/json":{"schema":{"properties":{"channel_id":{"type":"string"},"provider":{"type":"string"},"caption_limit":{"type":["integer","null"]},"media_required":{"type":"boolean"},"max_media":{"type":["integer","null"]},"creator_info":{"type":["object","null"]},"boards":{"type":["array","object","null"]}},"required":["channel_id","provider","media_required"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/formats":{"get":{"operationId":"list_formats","summary":"List formats","description":"List the video formats a generation can be built from, and the render styles they can be drawn in.","tags":["formats"],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"List formats","content":{"application/json":{"schema":{"properties":{"formats":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"category":{"type":["string","null"]},"render_style_key":{"type":["string","null"]},"credit_multiplier":{"type":"number"},"actor_required":{"type":"boolean"},"product_required":{"type":"boolean"},"product_forbidden":{"type":"boolean"}},"required":["id","key","name","credit_multiplier"]}},"render_styles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"category":{"type":["string","null"]},"default":{"type":"boolean"}},"required":["id","key","name"]}},"page":{"type":"integer"},"pages":{"type":"integer"}},"required":["formats","render_styles","page","pages"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/actors":{"get":{"operationId":"list_actors","summary":"List actors","description":"List the actors this account can cast: its own and the ready-made cast, by name, 25 a page. Pass an id as actor_id or actor_ids to quote_generation and create_generation.","tags":["actors"],"parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["person","mascot","cartoon"]}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"List actors","content":{"application/json":{"schema":{"properties":{"actors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["person","mascot","cartoon"]},"own":{"type":"boolean"},"portrait_url":{"type":["string","null"]}},"required":["id","name","kind","own"]}},"page":{"type":"integer"},"pages":{"type":"integer"}},"required":["actors","page","pages"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/media":{"get":{"operationId":"list_media","summary":"List media","description":"Browse the finished exports in a brand media library, by folder or by name.","tags":["media"],"parameters":[{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","description":"The brand this call belongs to. Required unless the token is pinned to a brand."}},{"name":"folder_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"List media","content":{"application/json":{"schema":{"properties":{"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"kind":{"type":["string","null"]},"aspect_ratio":{"type":["string","null"]},"file_url":{"type":["string","null"]},"pages":{"type":"array"},"created_at":{"type":"string"}},"required":["id","created_at"]}},"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"page":{"type":"integer"},"pages":{"type":"integer"}},"required":["media","folders","page","pages"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/wallet":{"get":{"operationId":"get_wallet","summary":"Get wallet","description":"Read the credit balance of the account the token belongs to, and its auto top-up settings (read-only: they change only in the Billing page).","tags":["wallet"],"parameters":[],"responses":{"200":{"description":"Get wallet","content":{"application/json":{"schema":{"properties":{"available_balance":{"type":"integer"},"reserved_balance":{"type":"integer"},"total_balance":{"type":"integer"},"auto_top_up":{"type":["object","null"],"properties":{"enabled":{"type":"boolean"},"threshold":{"type":"integer"},"pack_credits":{"type":"integer"}},"required":["enabled","threshold","pack_credits"]}},"required":["available_balance","reserved_balance","total_balance","auto_top_up"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stats":{"get":{"operationId":"get_brand_stats","summary":"Get brand stats","description":"Read how a brand is doing over the last 7, 30 or 90 days: the headline views, engagements and followers with their change on the window before, the daily trend, every connected channel with its follower count, the posts that did best and the alerts worth acting on. It reads the figures already collected from the channels, a few hours old at most, and spends no credits.","tags":["stats"],"parameters":[{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","description":"The brand this call belongs to. Required unless the token is pinned to a brand."}},{"name":"range","in":"query","required":false,"schema":{"type":"integer","description":"Days to measure: 7, 30 or 90. Anything else reads 7."}}],"responses":{"200":{"description":"Get brand stats","content":{"application/json":{"schema":{"properties":{"range":{"type":"integer"},"collecting_since":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"headline":{"type":"object","properties":{"views":{"type":"object","properties":{"value":{"type":["integer","null"]},"previous":{"type":["integer","null"]},"delta":{"type":["number","null"]}},"required":["value","previous","delta"]},"engagements":{"type":"object","properties":{"value":{"type":["integer","null"]},"previous":{"type":["integer","null"]},"delta":{"type":["number","null"]}},"required":["value","previous","delta"]},"followers":{"type":"object","properties":{"value":{"type":["integer","null"]},"previous":{"type":["integer","null"]},"delta":{"type":["number","null"]}},"required":["value","previous","delta"]}},"required":["views","engagements","followers"]},"trend":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"value":{"type":"integer"}},"required":["date","value"]}},"trend_baseline":{"type":["integer","null"]},"brands":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"handle":{"type":["string","null"]},"status":{"type":"string"},"supported":{"type":"boolean"},"follower_count":{"type":["integer","null"]},"synced_at":{"type":["string","null"]},"metrics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"canonical":{"type":["string","null"]},"kind":{"type":"string"},"value":{"type":"integer"}},"required":["key","canonical","kind","value"]}}},"required":["id","provider","status","supported","follower_count","metrics"]}}},"required":["id","name","channels"]}},"credits":{"type":"object","properties":{"available_balance":{"type":"number"},"monthly_spend":{"type":"number"},"used_share":{"type":"integer"}},"required":["available_balance","monthly_spend","used_share"]},"upcoming":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"brand_id":{"type":"string"},"provider":{"type":["string","null"]},"caption":{"type":"string"},"media_url":{"type":["string","null"]},"thumbnail_url":{"type":["string","null"]},"release_url":{"type":["string","null"]},"published_at":{"type":["string","null"]},"scheduled_at":{"type":["string","null"]},"metrics":{"type":["object","null"]}},"required":["id","brand_id","provider","caption"]}},"top_posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"brand_id":{"type":"string"},"provider":{"type":["string","null"]},"caption":{"type":"string"},"media_url":{"type":["string","null"]},"thumbnail_url":{"type":["string","null"]},"release_url":{"type":["string","null"]},"published_at":{"type":["string","null"]},"scheduled_at":{"type":["string","null"]},"metrics":{"type":["object","null"]}},"required":["id","brand_id","provider","caption"]}},"alerts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"at":{"type":["string","null"]}},"required":["kind"]}},"failed_count":{"type":"integer"},"has_channels":{"type":"boolean"},"has_published":{"type":"boolean"}},"required":["range","collecting_since","updated_at","headline","trend","trend_baseline","brands","credits","upcoming","top_posts","alerts","failed_count","has_channels","has_published"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reference_checks":{"post":{"operationId":"check_reference","summary":"Check reference","description":"Ask whether a video link can be used as the source of a swap, and if so record it on the account and start fetching that third-party video from its host. Safe to call again while the fetch is running: it reports progress rather than fetching twice.","tags":["reference_checks"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false,"type":"object"}}}},"responses":{"200":{"description":"Check reference","content":{"application/json":{"schema":{"properties":{"supported":{"type":"boolean"},"reference_id":{"type":"string"},"status":{"type":"string"},"source_url":{"type":"string"},"video_url":{"type":["string","null"]},"has_audio":{"type":["boolean","null"]}},"required":["supported"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/generations/quote":{"post":{"operationId":"quote_generation","summary":"Quote generation","description":"Show how many credits a generation would use before it starts, so the user can agree to it. `total` is what starts it, and the only figure taken then: for an animated story that waits for approval, that is the storyboard alone. `expected` is what the finished video is likely to cost in all, the rest of it taken when the user approves the storyboard, and is null when `total` already covers the whole job. Inputs it would refuse to run come back as a refusal instead.","tags":["generations"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workflow":{"type":"object","properties":{"workflow_type":{"type":"string"},"brand_id":{"type":"string"},"video_type_id":{"type":"string"},"render_style":{"type":"string"},"render_style_id":{"type":"string"},"hook_id":{"type":"string"},"voice_id":{"type":"string"},"script":{"type":"string"},"spoken_script":{"type":"string","description":"Story with a format that offers it: the exact words to say, kept to the letter and cut into one line a scene. Under two minutes, about 280 words. Leave it out to have the script written from the brief. Every other lane reads it as the words an actor speaks; with two or more actors, open each speaker's turn with their actor token and a colon, numbered in actor_ids order: @actor_1: Ready? @actor_2: Always."},"scene_brief":{"type":"string"},"type_description":{"type":"string"},"instruction":{"type":"string"},"negative_prompt":{"type":"string"},"caption_preset":{"type":"string","enum":["hormozi","tiktok","beast","karaoke","clean","none"],"description":"Captions edit only (video_edit, edit_kind captions): the look of the burned-in captions. Every other lane ignores it."},"aspect_ratio":{"type":"string"},"reframe_aspect_ratio":{"type":"string"},"target_duration":{"type":"integer"},"target_language":{"type":"string","enum":["af","ak","am","ar","ar-EG","as","az","be","bg","bo","bs","ca","ceb","cmn","cs","cy","da","de","dgo","el","en","en-AU","en-CA","en-GB","en-US","es","es-AR","es-CL","es-ES","es-MX","et","eu","fa","fi","fil","fr","fr-CA","fr-FR","gl","gu","ha","he","hi","hr","hu","hy","id","is","it","ja","jv","ka","ki","kk","kn","ko","ky","lg","lt","lv","mk","ml","mn","mr","ms","my","ne","nl","no","nso","pa","pl","pt","pt-BR","pt-PT","rn","ro","ru","rw","sd","sk","sl","sq","ss","st","su","sv","sw","ta","te","tg","th","tn","tr","ts","ug","uk","ur","uz","ve","vi","war","wo","yo","yue","zh","zh-TW","zu"]},"edit_kind":{"type":"string"},"product_kind":{"type":"string"},"tone":{"type":"string"},"actor_id":{"type":"string"},"actor_ids":{"type":"array","items":{"type":"string"},"description":"The cast, lead first. A remake (video_swap or trend_remake) takes exactly one actor, who replaces the main person in the clip. A story casts up to 3 cartoons saved to its brand."},"user_product_id":{"type":"string"},"source_workflow_id":{"type":"string"},"source_url":{"type":"string","description":"The link the generation starts from: the web page a launch animation reads, or the video a trend remake, composed video or video swap copies. Either way, one the user made or has the rights to use."},"mode":{"type":"string","enum":["template","custom"]},"brief":{"type":"string"},"asset_ids":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"Motion graphics (workflow_type animated) only: the library files the composition shows. Every other lane refuses them; a prompt_video takes files as references instead."},"prompt":{"type":"string","maxLength":2000},"resolution":{"type":"string","enum":["480p","720p"],"description":"The resolution the video renders at, 720p unless named. A prompt video takes 480p or 720p; a remake (video_swap or trend_remake) renders at 720p only and refuses any other."},"sound":{"type":"boolean"},"references":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"kind":{"type":"string","enum":["image","video","audio"]},"source":{"type":"string","enum":["upload","media","link","actor","product","result"]},"id":{"type":"string"},"name":{"type":"string"},"trim":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number","minimum":0}}},"required":["kind","source","id","name"],"additionalProperties":false},"description":"The files a prompt_video works from, each called in the prompt as @ and its name: images, video clips (30 seconds in all, cut with trim [start, end] in seconds) and audio. Source upload takes the editor_asset id get_upload returns once the upload is ready, actor an actor id, product a product id, link the source_url of a video_reference upload, result a finished prompt_video generation id."},"reference_url":{"type":"string"},"music":{"type":"object","properties":{"kind":{"type":"string","enum":["library","upload","none","auto","compose"]},"id":{"type":"string"},"asset_id":{"type":"string"}},"required":["kind"],"additionalProperties":false,"description":"The soundtrack. A story takes auto to let us pick a track, compose for one written for it, upload for one of your own, or none. Every other lane takes library, upload or none."},"start":{"type":"number","minimum":0},"seconds":{"type":"number","minimum":4,"maximum":90,"description":"How much of the video to keep, from start. A remake (video_swap or trend_remake) keeps 4 to 30 seconds, the first 15 unless start and seconds name another part, and refuses a longer one. An animated video takes seconds as its length."},"keep_source_audio":{"type":"boolean"},"swap_who":{"type":"string","maxLength":300,"description":"Remake only: who in the video the actor replaces, in your own words, such as \"the woman in the red coat\". Leave it out to replace the main person."},"style":{"type":"object","properties":{"kind":{"type":"string","enum":["drawn","illustrated"]},"skin":{"type":"string","enum":["glossy","line_stick","chalk","neon","clay","paper_cutout","marker","blueprint","ink","flat_people","pixel","brand"]},"preset":{"type":"string","enum":["painted_cartoon","soft_comic","flat_vector","storybook","low_poly_3d","toy_3d","documentary_collage"]}},"required":["kind"],"additionalProperties":false,"description":"Story only: the look, drawn on a skin or illustrated in a preset."},"characters":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"key":{"type":"string"},"text":{"type":"string","maxLength":40}},"additionalProperties":false},"description":"The characters a format invents its cast from, such as the foods in a Talking Food video. Each entry is either {\"key\": \"\u003cone of the video type cast_choices keys\u003e\"} or {\"text\": \"\u003cyour own, in a few words\u003e\"}. Only a format that declares cast_choices takes them."},"narrator_voice_id":{"type":"string"},"sfx":{"type":"boolean","description":"Story only: add sound effects under each scene. Every other lane refuses it."},"captions":{"type":"boolean","description":"Story only: burn the spoken words into the video as it is made. Every other lane refuses it; caption a finished video instead with a video_edit generation, edit_kind captions and source_workflow_id set to it."},"arc":{"type":"string","enum":["classic","peaks"]},"format":{"type":"string","enum":["explainer"],"description":"Story only, on an illustrated look: how the story is told. explainer tells it one short line a scene, cutting straight from one to the next, one big word at a time, with every scene moving, from 15 to 60 seconds. Leave it out for the usual telling. The price is quoted before anything is made."},"motion":{"type":"string","enum":["none","key","all"],"description":"Story only, on an illustrated look: which scenes get a moving picture made from their own painting. none leaves every scene still, key moves the opening, the peaks and the ending (about a third of the scenes), all moves every painted scene. Left out, the look decides: all for documentary collage, key for the rest. A clip costs about 2 credits a second, 7 at the four-second floor, and is quoted with the storyboard before anything is made. With auto_approve there is no storyboard to quote, so create holds the most clips the scene budget allows at 15 seconds each (24 credits a clip); the unused part comes back as soon as the storyboard is set."},"auto_approve":{"type":"boolean","description":"Story only: render the storyboard as soon as it is ready, on one quote charged at create: the storyboard plus a render estimated from target_duration. Once the storyboard exists, a lower render quote is refunded and a higher one is charged."},"source_id":{"type":"string","description":"Story only: a finished story of this brand to open again at its storyboard, at no charge, and render again once edited and approved."},"previous_id":{"type":"string","description":"Story only: a finished story of this brand that this one continues as its next part, with its cast, look and meters."},"vote_winner":{"type":"string","description":"Story only, with previous_id: the option that won the vote the previous part ended on."}},"additionalProperties":false}},"required":["workflow"],"additionalProperties":false,"type":"object"}}}},"responses":{"200":{"description":"Quote generation","content":{"application/json":{"schema":{"properties":{"quote":{"type":"object","properties":{"total":{"type":"integer"},"expected":{"type":["integer","null"]},"lines":{"type":"array","items":{"type":"object"}},"duration_seconds":{"type":["number","null"]},"approximate":{"type":"boolean"}},"required":["total","lines"]},"credit_cap_remaining":{"type":["integer","null"]}},"required":["quote"],"type":"object"}}}},"default":{"description":"The error envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/generations":{"post":{"operationId":"create_generation","summary":"Create generation","description":"Run a video generation, spending credits already in the account. Quote it first with quote_generation and run only once the user agrees to the quote: the token monthly credit cap is the only other guard on the spend.","tags":["generations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"workflow":{"type":"object","properties":{"workflow_type":{"type":"string"},"brand_id":{"type":"string"},"video_type_id":{"type":"string"},"render_style":{"type":"string"},"render_style_id":{"type":"string"},"hook_id":{"type":"string"},"voice_id":{"type":"string"},"script":{"type":"string"},"spoken_script":{"type":"string","description":"Story with a format that offers it: the exact words to say, kept to the letter and cut into one line a scene. Under two minutes, about 280 words. Leave it out to have the script written from the brief. Every other lane reads it as the words an actor speaks; with two or more actors, open each speaker's turn with their actor token and a colon, numbered in actor_ids order: @actor_1: Ready? @actor_2: Always."},"scene_brief":{"type":"string"},"type_description":{"type":"string"},"instruction":{"type":"string"},"negative_prompt":{"type":"string"},"caption_preset":{"type":"string","enum":["hormozi","tiktok","beast","karaoke","clean","none"],"description":"Captions edit only (video_edit, edit_kind captions): the look of the burned-in captions. Every other lane ignores it."},"aspect_ratio":{"type":"string"},"reframe_aspect_ratio":{"type":"string"},"target_duration":{"type":"integer"},"target_language":{"type":"string","enum":["af","ak","am","ar","ar-EG","as","az","be","bg","bo","bs","ca","ceb","cmn","cs","cy","da","de","dgo","el","en","en-AU","en-CA","en-GB","en-US","es","es-AR","es-CL","es-ES","es-MX","et","eu","fa","fi","fil","fr","fr-CA","fr-FR","gl","gu","ha","he","hi","hr","hu","hy","id","is","it","ja","jv","ka","ki","kk","kn","ko","ky","lg","lt","lv","mk","ml","mn","mr","ms","my","ne","nl","no","nso","pa","pl","pt","pt-BR","pt-PT","rn","ro","ru","rw","sd","sk","sl","sq","ss","st","su","sv","sw","ta","te","tg","th","tn","tr","ts","ug","uk","ur","uz","ve","vi","war","wo","yo","yue","zh","zh-TW","zu"]},"edit_kind":{"type":"string"},"product_kind":{"type":"string"},"tone":{"type":"string"},"actor_id":{"type":"string"},"actor_ids":{"type":"array","items":{"type":"string"},"description":"The cast, lead first. A remake (video_swap or trend_remake) takes exactly one actor, who replaces the main person in the clip. A story casts up to 3 cartoons saved to its brand."},"user_product_id":{"type":"string"},"source_workflow_id":{"type":"string"},"source_url":{"type":"string","description":"The link the generation starts from: the web page a launch animation reads, or the video a trend remake, composed video or video swap copies. Either way, one the user made or has the rights to use."},"mode":{"type":"string","enum":["template","custom"]},"brief":{"type":"string"},"asset_ids":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"Motion graphics (workflow_type animated) only: the library files the composition shows. Every other lane refuses them; a prompt_video takes files as references instead."},"prompt":{"type":"string","maxLength":2000},"resolution":{"type":"string","enum":["480p","720p"],"description":"The resolution the video renders at, 720p unless named. A prompt video takes 480p or 720p; a remake (video_swap or trend_remake) renders at 720p only and refuses any other."},"sound":{"type":"boolean"},"references":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"kind":{"type":"string","enum":["image","video","audio"]},"source":{"type":"string","enum":["upload","media","link","actor","product","result"]},"id":{"type":"string"},"name":{"type":"string"},"trim":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number","minimum":0}}},"required":["kind","source","id","name"],"additionalProperties":false},"description":"The files a prompt_video works from, each called in the prompt as @ and its name: images, video clips (30 seconds in all, cut with trim [start, end] in seconds) and audio. Source upload takes the editor_asset id get_upload returns once the upload is ready, actor an actor id, product a product id, link the source_url of a video_reference upload, result a finished prompt_video generation id."},"reference_url":{"type":"string"},"music":{"type":"object","properties":{"kind":{"type":"string","enum":["library","upload","none","auto","compose"]},"id":{"type":"string"},"asset_id":{"type":"string"}},"required":["kind"],"additionalProperties":false,"description":"The soundtrack. A story takes auto to let us pick a track, compose for one written for it, upload for one of your own, or none. Every other lane takes library, upload or none."},"start":{"type":"number","minimum":0},"seconds":{"type":"number","minimum":4,"maximum":90,"description":"How much of the video to keep, from start. A remake (video_swap or trend_remake) keeps 4 to 30 seconds, the first 15 unless start and seconds name another part, and refuses a longer one. An animated video takes seconds as its length."},"keep_source_audio":{"type":"boolean"},"swap_who":{"type":"string","maxLength":300,"description":"Remake only: who in the video the actor replaces, in your own words, such as \"the woman in the red coat\". Leave it out to replace the main person."},"style":{"type":"object","properties":{"kind":{"type":"string","enum":["drawn","illustrated"]},"skin":{"type":"string","enum":["glossy","line_stick","chalk","neon","clay","paper_cutout","marker","blueprint","ink","flat_people","pixel","brand"]},"preset":{"type":"string","enum":["painted_cartoon","soft_comic","flat_vector","storybook","low_poly_3d","toy_3d","documentary_collage"]}},"required":["kind"],"additionalProperties":false,"description":"Story only: the look, drawn on a skin or illustrated in a preset."},"characters":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"key":{"type":"string"},"text":{"type":"string","maxLength":40}},"additionalProperties":false},"description":"The characters a format invents its cast from, such as the foods in a Talking Food video. Each entry is either {\"key\": \"\u003cone of the video type cast_choices keys\u003e\"} or {\"text\": \"\u003cyour own, in a few words\u003e\"}. Only a format that declares cast_choices takes them."},"narrator_voice_id":{"type":"string"},"sfx":{"type":"boolean","description":"Story only: add sound effects under each scene. Every other lane refuses it."},"captions":{"type":"boolean","description":"Story only: burn the spoken words into the video as it is made. Every other lane refuses it; caption a finished video instead with a video_edit generation, edit_kind captions and source_workflow_id set to it."},"arc":{"type":"string","enum":["classic","peaks"]},"format":{"type":"string","enum":["explainer"],"description":"Story only, on an illustrated look: how the story is told. explainer tells it one short line a scene, cutting straight from one to the next, one big word at a time, with every scene moving, from 15 to 60 seconds. Leave it out for the usual telling. The price is quoted before anything is made."},"motion":{"type":"string","enum":["none","key","all"],"description":"Story only, on an illustrated look: which scenes get a moving picture made from their own painting. none leaves every scene still, key moves the opening, the peaks and the ending (about a third of the scenes), all moves every painted scene. Left out, the look decides: all for documentary collage, key for the rest. A clip costs about 2 credits a second, 7 at the four-second floor, and is quoted with the storyboard before anything is made. With auto_approve there is no storyboard to quote, so create holds the most clips the scene budget allows at 15 seconds each (24 credits a clip); the unused part comes back as soon as the storyboard is set."},"auto_approve":{"type":"boolean","description":"Story only: render the storyboard as soon as it is ready, on one quote charged at create: the storyboard plus a render estimated from target_duration. Once the storyboard exists, a lower render quote is refunded and a higher one is charged."},"source_id":{"type":"string","description":"Story only: a finished story of this brand to open again at its storyboard, at no charge, and render again once edited and approved."},"previous_id":{"type":"string","description":"Story only: a finished story of this brand that this one continues as its next part, with its cast, look and meters."},"vote_winner":{"type":"string","description":"Story only, with previous_

# --- truncated at 32 KB (65 KB total) ---
# Full source: https://artifacts.apis.io/socialfaktory-com/openapi/_original/socialfaktory-com-api-openapi.json