---
title: X
description: "Connect X to Peal, what a post there may hold, and the options it takes."
sidebar:
  icon: /platform-marks/x.svg
---

On Peal Cloud, every post you send to X is billed at X's own rates ([see below](#billing)). A server you run yourself bills nothing for X.

## At a glance [#at-a-glance]

Here's what an X post can hold:

|                   |                           |
| ----------------- | ------------------------- |
| Text              | 280 characters, as X counts them    |
| Images and videos | Up to 4, one video at most   |
| Parts             | A thread, up to 24 more parts   |
| Formats           | Feed |
| Alt text          | Shown     |

What each file type must be is in [Images and videos](/guides/media#platforms).

## Connect an account [#connect]

Under **X**, click **Connect X**, sign in on X and allow Peal. It asks to:

- Read and write posts.
- Upload media.
- Stay connected, so it can renew its access without you.

**Channels** offers X once the Peal server is set up for it (see [On your own server](#self-hosting)).

### How X counts length [#length]

X counts a post's length its own way, and Peal counts the same way, so a post Peal accepts fits on X (see [Fill in the composer](/guides/posts#write)). Two things count differently from what you'd expect:

- A link counts as 23 characters whatever its length, with or without `https://`, as in `peal.social`. It has to be a domain X knows, so `localhost` doesn't count as a link.
- An emoji, or a character outside the Latin, Greek and Cyrillic scripts, counts as 2.

## Options [#options]

None of these is required, and Peal sends each one only when you set it. **API name** is the option's name in the API. **Parts** says what the option applies to in a [thread](/guides/posts#threads).

| Option                        | API name             | Values                                                   | Left out                | Parts                             |
| ----------------------------- | -------------------- | -------------------------------------------------------- | ----------------------- | --------------------------------- |
| **Who can reply**             | `replySettings`      | `following`, `mentionedUsers`, `subscribers`, `verified` | Everyone                | The first part                    |
| **Community**                 | `communityId`        | The community's number, digits only                      | The account's followers | The first part                    |
| **Also share with followers** | `shareWithFollowers` | Yes or no; only with a community                         | No                      | The first part                    |
| **Paid partnership**          | `paidPartnership`    | Yes or no                                                | No                      | Every part                        |
| **Made with AI**              | `madeWithAi`         | Yes or no                                                | No                      | Every part with images or a video |

### When X refuses an option [#option-refused]

X doesn't document which accounts can use each of these options. When X refuses a post that carries them, what you see depends on X's answer:

| X's answer                                                 | The channel shows                                                                                        | What to do                           |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| Names one of the options (the field, or the community)     | **Failed**, with the code `optionRefused`                                                                | Change the options and post it again |
| Refuses it for anything else, such as a restricted account | X's own problem type, as for a post without options (`client-forbidden`, or `http403` when X names none) | Changing the options won't help      |

With `optionRefused`, Peal doesn't send the post again. Peal doesn't keep X's message, so the channel can't tell you which option X refused.

## Comments [#comments]

Peal doesn't read comments on X yet.

## On Peal Cloud: billed at X's rates [#billing]

X bills each call to its API. On Peal Cloud, Peal passes that cost on at X's published rates, with nothing added ([X, at X's rates](/guides/workspace/billing#x)). Here's what that means for a workspace:

- An X account connects only once the billing account has a payment method and is on per-account pricing.
- Each post sent to X is billed at X's rate for a post ($0.015 excl. VAT · $0.018 with France's 20% VAT), or for a post with a link ($0.20 excl. VAT · $0.24 with France's 20% VAT). Each part of a thread counts as a post.
- X's counts and followers are read only once a member who manages billing turns X's reads on for the workspace, on the billing page. Each read is billed at X's rate, once a UTC day.
- The billing account's monthly ceiling for X covers all of it.

When a thread doesn't have room under the ceiling for all its parts, Peal doesn't send it at all, and the composer tells you before you schedule it. Room can still run out between its parts, if another post or X channel of the same account, or X's reads, take it first. The thread is then cut at that point.

A post refused for billing fails without being sent, with the code `paymentMethodRequired`, `paymentFailed`, `perAccountPricingRequired` or `xCeilingReached`. A thread cut part way says where, with `xThreadCut`.

A server you run yourself bills nothing for X.

## On your own server [#self-hosting]

A self-hosted server offers X once its app is registered: see [X](/self-hosting/platforms#x). Until then, **Channels** doesn't offer it.
