🎉 Cyber Week: 30% off your first payment — ends Sunday, Dec 7Claim 30% off
Docs
Generation Modes

Generation Modes

Generation turns a source into post text. You can generate on /generate, inside the Drafts editor, from a preset, or through the Generations API and the MCP server. Every generation is saved as a history post: it never schedules or publishes anything by itself.

Generation types

type selects where the text comes from. The API accepts all eight values:
typeWhat it doesRequired input
aiWrites a post from an instruction or topic prompt.prompt
searchResearches the web with the prompt, then writes the post from the findings.prompt
youtubeTurns a YouTube video into a post.video_url
xRewrites an existing X post, keeping its argument and improving the writing.tweet_url
x-newsPicks a story from an X News search and writes the post from it.news_query and a connected X account
linkReads a web page and writes a post about it.link_url
listTurns prepared items into a post or thread, optionally rewriting them in your voice.prompt
articleWrites an X Article with a title, body and a mandatory AI-generated cover.prompt and an X Premium account

Required inputs

  • ai, search, list and article need a prompt (up to 20,000 characters). For list, separate the prepared items in the prompt with a line containing ---.
  • youtube needs video_url in the form https://www.youtube.com/watch?v=VIDEO_ID or https://youtu.be/VIDEO_ID.
  • x needs tweet_url as an HTTPS X post URL, for example https://x.com/handle/status/1234567890.
  • x-news needs news_query. It uses an X account: pass account_id or XBeast falls back to your first connected X account.
  • link needs link_url, a public http or https URL.
  • article needs an account_id for an account with X Premium. You can also request format: "article" with type ai, search, list or x-news.

Formats

formatOutput
tweetOne short post. This is the default.
threadA series of connected posts.
longOne long post. Requires an X Premium account.
articleAn X Article. Not supported for type x or youtube; article sources are ai, search, list and x-news.
sameKeeps the original post format. Only valid for type x.
article is rejected for type x and youtube. A link source has no article builder either, so use ai, search, list or x-news for articles. Format details are also listed in Presets.

Media

media_typeWhat it attachesExtra credits
offNo media. This is the API default.0
imagesStock or uploaded images.+1
videosStock or uploaded videos.+1
mixedA mix of images and videos.+2
aiAn AI-generated image. The app defaults to images, not off.+1 plus the image model credits
When media_type is ai, set ai_image_model and optionally ai_image_aspect_ratio. Model prices, aspect ratios and image editing are covered in Media & AI images.

Voice and account context

  • account_id supplies the account's voice, timezone and X tokens. It is required for articles and used by every generation that needs an X account.
  • style_id points at one of your writing styles or a shared community style. A style is a set of up to 9 example tweets; see Writing styles.
  • format defaults to tweet and media_type defaults to off in the API. The in-app generator starts with images selected.

What a generation costs

Instant generation starts at 1 credit. Add 1 for search, x, x-news, youtube or link; add 1 for a thread, long or same format; then add the media cost. Examples:
GenerationCredits
AI tweet, no media1
AI thread or long post2
Web search tweet2
Link tweet2
X rewrite in the same format3
YouTube thread3
AI tweet with stock images2
AI tweet with mixed media3
AI tweet with a Muse Image3
AI tweet with a Nano Banana 2 image8
Instant article (type article) with the default MAI Image 2.7 Flash cover5
Two types use preset pricing instead of the instant formula. list costs 1 for a tweet or 2 for a thread or long post, plus media. An instant article costs 3 for the text plus the mandatory cover at 1 + model credits, which is 5 with the default MAI Image 2.7 Flash cover. If you request format: "article" with a different source, that source's add-on still applies: web search adds 2 and X News adds 1. An article preset can add in-body media on top. The full table is in Credits & plans.

Beast Mode

Beast Mode writes one tweet from the account's profile and recent post history, using xAI web search and X search. It takes the account and an optional instruction, costs 1 credit and saves the result as a history post. In the app it is the Beast Mode action in the Drafts generator; in the API it is POST /api/v1/generations/beast-mode, and over MCP it is beast_mode_generate.

Edit with AI chat

The chat editor rewrites a draft from a plain instruction. It costs 1 credit, plus 1 when the assistant changes the tweets and plus 1 when it adds media. Sent posts cannot be edited. Over MCP the tool is edit_post_with_ai; in the API it is POST /api/v1/generations/chat. Pass a post_id to save the edit back to a draft.

Where to generate

  • /generate exposes AI, AI + Web, YouTube and X rewrite.
  • The Drafts generator adds X News and Link. It is the quickest place to generate a post you are already editing.
  • Presets cover list and article output and run on a schedule; see Presets and Scheduling.
  • The Generations API and MCP server accept all eight types. Both require a paid plan and a full-access key.

Related