# Billing

Use the free monthly allowance, add prepaid credit, and check publication reservations.

Source: https://opensocial.run/docs/billing
Markdown: https://opensocial.run/docs/billing.md



Integrate once. Start with the free monthly allowance. Add prepaid credit when needed. No subscription is required. There is no unlimited publication plan.

## Pricing and limits [#pricing-and-limits]

USD 10 buys 1,000 publication credits. The table shows the default service limits. Billing shows the current catalog and whether credit purchases are available.

| Setting                   | Default                                                                     |
| ------------------------- | --------------------------------------------------------------------------- |
| Free credit               | 50 credits per workspace per UTC calendar month                             |
| Connected social accounts | 15 free; unlimited after a successful purchase (current service limit: 100) |
| Top-up                    | USD 10 for 1,000 publication credits                                        |
| Credit expiry             | 1 year after each credit grant or confirmed purchase                        |
| Refund policy             | No refunds, except where required by law                                    |
| Free scheduling horizon   | 30 days                                                                     |
| Pending destinations      | 100                                                                         |
| File size                 | 100 MiB                                                                     |
| Workspace storage         | 1 GiB, including pending uploads                                            |
| Media records             | 100                                                                         |
| Saved posts               | 500                                                                         |
| Pending upload retention  | 1 day                                                                       |
| Unused media retention    | 30 days                                                                     |

The server returns the current catalog and limits in the balance response. Account limits count unique social accounts across connection methods. Reconnecting an account does not give new free credit. A failed or pending payment does not increase the account limit. A full refund or active dispute removes the paid capacity. Existing accounts and saved content remain available.

Referenced media stays with saved content. Only old media that is not used by saved content is deleted. Storage limits still apply to retained files. Request limits default to 60 requests per minute per API key and 300 per workspace and IP.

## What credits can do [#what-credits-can-do]

The charge is calculated for each destination. Free and purchased credits use
the same rates.

| Destination            | Credits per successful delivery |
| ---------------------- | ------------------------------: |
| Platforms other than X |                               1 |
| X without a URL        |                               2 |
| X with a URL           |                              25 |

A URL includes a link without `https://`, such as `example.com`. A media
attachment alone does not count as a URL in the post text.

50 credits pay for 50 deliveries to platforms other than X, 25 X posts without
a URL, or 2 X posts with a URL. 1,000 credits pay for 1,000 other deliveries,
500 X posts without a URL, or 40 X posts with a URL.

For mixed destinations, add the charges. An X post with a URL plus LinkedIn
needs 26 credits. The post dialog and validation response show the required
credit before you schedule or publish.

## When credit is charged [#when-credit-is-charged]

Each destination uses the rate in the table above. Credit is charged only for confirmed successful delivery. A post to three accounts outside X needs three credits.

Drafts, validation, edits, and scheduling have no publication charge. Scheduling and immediate publishing reserve credit before the server accepts the work. All destinations must have enough credit before a request is accepted. If credit is insufficient, it returns `insufficient_credits` with HTTP 402 and preserves an existing draft. A request to create a new scheduled post is rejected in full if funding is insufficient.

Reserved credit is charged only after the platform confirms successful delivery. A failed destination has no charge. Partial delivery consumes credit only for the successful destinations. Retries retain the same reservation. A manual retry after final failure must reserve credit again.

Cancellation before delivery, account disconnection, and deletion of pending content release reservations. Work that is already in delivery or provider processing cannot be cancelled, deleted, or rescheduled until the outcome is known. A timeout does not prove failure. An unknown outcome keeps credit reserved and needs a provider check before another delivery.

YouTube uploads stay reserved until processing succeeds and the requested visibility is confirmed. Upload acceptance alone has no charge. X uses 2 credits without a URL or 25 credits with a URL. Check platform availability in Accounts before you publish.

## Monthly allowance and credit expiry [#monthly-allowance-and-credit-expiry]

The free allowance belongs to the workspace. API keys, social accounts, and reconnects share it. Each UTC calendar month adds 50 free credits when the workspace next uses billing or reserves credit. Unused free credits carry over. Missed months do not add grants.

Each free or purchased credit expires 1 year after it is added. The server uses available free credit before purchased credit, with the earliest expiry first within each group. Reserved credit stays in its original grant until success or release. Credit released after its expiry does not return to the available balance. A won dispute does not extend the original expiry date.

## Add credit [#add-credit]

See [Pricing](https://opensocial.run/pricing) for the free allowance and prepaid purchase amount.

Open Billing in the dashboard. Select Add credit and confirm the price to open Stripe hosted Checkout. The server adds credit only after it verifies successful payment. A return from Checkout does not prove payment. The page shows payment confirmation only from the stored purchase status.

Select Check balance after payment if confirmation is delayed. Purchase history shows the latest 500 purchases, their payment status, and refunded amounts. Credit history shows the latest 500 ledger entries. A reservation reduces available credit. Its settlement has a zero available balance change because the credit was already reserved.

Credit purchases are final. No refunds, except where required by law. If a payment refund is required, it removes a proportional number of credits, rounded up to a whole credit. An active or lost dispute removes the full purchase. Reserved work retains its allocation. Removed credit that has already been spent or reserved creates credit debt and blocks new reservations. Cancellation releases paid credit against that debt first. A later top-up pays the debt before it adds available credit. A won dispute restores unexpired credit with a new ledger entry. Expired, unused credit does not create debt after a payment reversal.

Account deletion removes personal data and content. The service retains the workspace's financial records for payment, refund, and dispute checks.

## Check the balance [#check-the-balance]

Use an API key with `billing:read`, or a key with full access.

```bash
curl -H "Authorization: Bearer $OPEN_SOCIAL_API_KEY" \
  https://opensocial.run/v1/billing

bun run cli -- billing balance
bun run cli -- billing transactions
```

```typescript
const balance = await client.billing.balance();
console.log(balance.available, balance.reserved, balance.free.next_grant_at);
```

An MCP client can call `social_billing_balance`. API clients can subscribe to `billing.low_balance`, `billing.credit_added`, `billing.credit_adjusted`, and `post.outcome_unknown` events.

Reuse the same `Idempotency-Key` header when you retry a mutating API request. Use a new key for new content. The SDK accepts the key as the second argument to `posts.create`, or the final argument to `posts.publish` and `posts.schedule`. The CLI accepts `--idempotency-key`. MCP post creation requires `idempotency_key`.
