Skip to main content

X API cost calculator API

Enter what your app posts and reads on X in a month and see the pay-per-use bill line by line, including what links in posts add.

  • Endpoint: POST https://postboost.co/app/api/tools/x-api-cost-calculator (operationId calculateXApiCost)
  • Web tool: postboost.co/tools/x-api-cost-calculator
  • Token: optional (limits)
  • MCP: tool calculate-x-api-cost on https://postboost.co/mcp/tools

Request​

FieldTypeDefaultDescription
postsinteger0Posts created per month, with or without a link.
link_shareinteger0Percent of those posts that contain a URL (billed at the link-post price).
repliesinteger0Summoned replies per month.
post_readsinteger0Posts read per month.
user_readsinteger0Users read per month.
owned_readsinteger0Owned resources read per month (your own posts, followers and so on).

Call it​

curl -X POST https://postboost.co/app/api/tools/x-api-cost-calculator \
-H 'Content-Type: application/json' \
-d '{"posts":1000,"link_share":20}'

With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).

Response​

{
"line_items": [
{
"key": "posts",
"label": "Posts without a link",
"count": 800,
"unit_usd": 0.015,
"cost_usd": 12
},
{
"key": "link_posts",
"label": "Posts with a link",
"count": 200,
"unit_usd": 0.2,
"cost_usd": 40
},
{
"key": "replies",
"label": "Summoned replies",
"count": 0,
"unit_usd": 0.01,
"cost_usd": 0
},
{
"key": "post_reads",
"label": "Post reads",
"count": 0,
"unit_usd": 0.005,
"cost_usd": 0
},
{
"key": "user_reads",
"label": "User reads",
"count": 0,
"unit_usd": 0.01,
"cost_usd": 0
},
{
"key": "owned_reads",
"label": "Owned reads",
"count": 0,
"unit_usd": 0.001,
"cost_usd": 0
}
],
"total_usd": 52,
"link_premium_usd": 37,
"notes": [
"X bills pay-per-use from prepaid credits; there is no free tier.",
"X lets you set an optional spending limit, so a busy month cannot use up your credits."
],
"prices_last_verified": "2026-10-15",
"source": "https://docs.x.com/x-api/getting-started/pricing"
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Calculate the monthly X API cost with the PostBoost calculate-x-api-cost tool.

Errors​

StatusWhen
401The Authorization header holds an invalid token. Leave it out to call as a guest.
413The JSON body is larger than 128 KB.
422A field is invalid; the body lists the errors per field.
429A limit is reached; see limits.