Docs
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 costs credits, publishing costs credits
A generation charges its own credit cost and stops at a history post. Scheduling or publishing that post is a separate action and is charged separately.
Generation types
type selects where the text comes from. The API accepts all eight values:| type | What it does | Required input |
|---|---|---|
| ai | Writes a post from an instruction or topic prompt. | prompt |
| search | Researches the web with the prompt, then writes the post from the findings. | prompt |
| youtube | Turns a YouTube video into a post. | video_url |
| x | Rewrites an existing X post, keeping its argument and improving the writing. | tweet_url |
| x-news | Picks a story from an X News search and writes the post from it. | news_query and a connected X account |
| link | Reads a web page and writes a post about it. | link_url |
| list | Turns prepared items into a post or thread, optionally rewriting them in your voice. | prompt |
| article | Writes an X Article with a title, body and a mandatory AI-generated cover. | prompt and an X Premium account |
Required inputs
ai,search,listandarticleneed aprompt(up to 20,000 characters). Forlist, separate the prepared items in the prompt with a line containing---.youtubeneedsvideo_urlin the formhttps://www.youtube.com/watch?v=VIDEO_IDorhttps://youtu.be/VIDEO_ID.xneedstweet_urlas an HTTPS X post URL, for examplehttps://x.com/handle/status/1234567890.x-newsneedsnews_query. It uses an X account: passaccount_idor XBeast falls back to your first connected X account.linkneedslink_url, a public http or https URL.articleneeds anaccount_idfor an account with X Premium. You can also requestformat: "article"with typeai,search,listorx-news.
Formats
| format | Output |
|---|---|
| tweet | One short post. This is the default. |
| thread | A series of connected posts. |
| long | One long post. Requires an X Premium account. |
| article | An X Article. Not supported for type x or youtube; article sources are ai, search, list and x-news. |
| same | Keeps 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_type | What it attaches | Extra credits |
|---|---|---|
| off | No media. This is the API default. | 0 |
| images | Stock or uploaded images. | +1 |
| videos | Stock or uploaded videos. | +1 |
| mixed | A mix of images and videos. | +2 |
| ai | An 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_idsupplies the account's voice, timezone and X tokens. It is required for articles and used by every generation that needs an X account.style_idpoints 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.formatdefaults totweetandmedia_typedefaults tooffin 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:| Generation | Credits |
|---|---|
| AI tweet, no media | 1 |
| AI thread or long post | 2 |
| Web search tweet | 2 |
| Link tweet | 2 |
| X rewrite in the same format | 3 |
| YouTube thread | 3 |
| AI tweet with stock images | 2 |
| AI tweet with mixed media | 3 |
| AI tweet with a Muse Image | 3 |
| AI tweet with a Nano Banana 2 image | 8 |
| Instant article (type article) with the default MAI Image 2.7 Flash cover | 5 |
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
listandarticleoutput 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.