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

Writing Styles

A writing style is a small set of example tweets that the generator imitates. It does not describe the voice in the abstract; it shows the model real posts so the output sounds like them. Attach a style to a preset or to an instant generation with style_id.

What a style contains

  • A title.
  • Custom examples stored in examples, each one a piece of tweet text you provide.
  • Optional tweet-bank entries stored in tweet_bank_ids. These are rows from the shared Tweet Bank.
  • The combined custom and bank examples may not exceed 9. Remove an example before adding another when the style is full.

Add examples

SourceHow to add itNeeds an X account
Custom textPaste tweet text with add_example, or replace the whole custom set with replace_custom_tweets.No
X post URLPass a public post URL with add_from_url. XBeast fetches the post and stores it as a bank example.Yes
A handlePass a handle with generate_from_handle. XBeast loads its recent top tweets and prefers a thread, a long post and a short post.Yes
Tweet bank entriesPass existing tweet-bank ids with replace_tweet_bank_ids.No
Importing an X post URL or a handle calls the X API, so the workspace needs a connected X account. The import itself is free. Adding tweet-bank ids does not call X because the posts are already stored in the bank.

Style changes

The API accepts one change per request. These are the actions on PATCH /api/v1/styles/:id:
ActionWhat it does
titleRename the style.
add_exampleAdd one custom tweet as { text }.
add_from_urlImport one public X post URL as an example.
generate_from_handleReplace the tweet-bank examples with recent top tweets from a handle.
replace_custom_tweetsReplace all custom examples with an array of texts.
replace_tweet_bank_idsReplace the tweet-bank examples with an array of ids.
remove_example_idRemove one example by bank id, index or example text.

Use a style

  • In a preset, set style_id. Every scheduled run of that preset uses the style. See Presets.
  • In instant generation, pass style_id with the prompt and format. Owned styles and community styles both work. See Generation modes.
  • Using a style does not add credits. You still pay the normal generation cost for the post.

Community styles

Community styles are shared across XBeast and are read-only. You can use one in a preset or generation, but you cannot edit or delete it. To customize the voice, create your own style and add the examples you want.

Manage styles

In the app, open the style picker from the preset editor, the Drafts generator or /generate and choose Manage Styles. The public API exposes the same operations: create a style, update it, add an example through POST /api/v1/styles/:id/examples, remove one, or delete the style. The full request list is in the Styles API reference.

Deleting a style

Deleting a style removes its examples immediately. Presets that pointed at it keep their other fields but lose the style, so pick another style or clear style_id before the next run.

Related