# Generation Modes

> Every way to generate a post: text source, format, media and the credits each combination costs.

Source: https://xbeast.io/docs/generation-modes

Generation turns a source into post text. You can generate on https://xbeast.io/generate, inside the Drafts editor, from a preset, or through the [Generations API](https://xbeast.io/docs/api-generations.md) 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`, `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

| 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](https://xbeast.io/docs/presets.md).

## 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](https://xbeast.io/docs/media-and-images.md).

## 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](https://xbeast.io/docs/styles.md).
- `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:

| 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](https://xbeast.io/docs/credits-and-plans.md).

## 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](https://xbeast.io/docs/api-generations.md), 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](https://xbeast.io/docs/api-generations.md). Pass a `post_id` to save the edit back to a draft.

## Where to generate

- https://xbeast.io/generate exposes AI, AI + Web, YouTube and X rewrite.
- The [Drafts](https://xbeast.io/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](https://xbeast.io/docs/presets.md) and [Scheduling](https://xbeast.io/docs/scheduling.md).
- The [Generations API](https://xbeast.io/docs/api-generations.md) and [MCP server](https://xbeast.io/docs/mcp.md) accept all eight types. Both require a paid plan and a full-access key.

## Related

- [Presets: field list and preset credit costs](https://xbeast.io/docs/presets.md)
- [Writing styles](https://xbeast.io/docs/styles.md)
- [Media & AI images](https://xbeast.io/docs/media-and-images.md)
- [Credits & plans](https://xbeast.io/docs/credits-and-plans.md)
- [Generations API reference](https://xbeast.io/docs/api-generations.md)

[Open the generator](https://xbeast.io/generate)

[Go to Drafts](https://xbeast.io/drafts)
