Draft tweets with AI: generate variants from a topic and goal, refine an existing draft, o
Draft tweets with AI: generate variants from a topic and goal, refine an existing draft, or score a draft for likely engagement — with tone, call-to-action, and style-matching options. Flat sub-cent price per step.
1000 (raw units)
price
5
calls / 30d
1
unique payers
2026-09-11
updated
Provider
twitr.sh · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xb5194A98DbDBb7028B585Db26B972e7F0F3f826A",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 60
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "4u4TLWUqr4296NFpUohqJELAfZLbkxThwX8UALxh6M7o",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"category": "api",
"discoverable": true,
"info": {
"input": {
"body": {
"goal": "announce launch",
"step": "generate",
"tone": "punchy",
"topic": "pay-per-call APIs for AI agents"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"duration": 2,
"items": [
{
"score": 87,
"suggestions": [
"Add a concrete number for credibility"
],
"text": "Your agent can now pay for its own API calls. No signup, no keys — just a wallet."
}
],
"payment": {
"amount": "0.001000",
"currency": "USD",
"protocol": "x402"
},
"runId": "tw_example"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"additionalContext": {
"type": "string"
},
"callToAction": {
"type": "string"
},
"draft": {
"type": "string"
},
"goal": {
"type": "string"
},
"hasLink": {
"type": "boolean"
},
"hasMedia": {
"type": "boolean"
},
"mediaType": {
"type": "string"
},
"step": {
"description": "Composer step.",
"enum": [
"generate",
"refine",
"score"
],
"type": "string"
},
"styleUsername": {
"type": "string"
},
"tone": {
"type": "string"
},
"topic": {
"type": "string"
}
},
"required": [
"step"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"duration": {
"description": "Run duration in seconds.",
"type": "integer"
},
"items": {
"description": "Returned items. Shape varies per tool — see each tool's outputSample for a concrete example.",
"items": {
"type": "object"
},
"type": "array"
},
"payment": {
"description": "Settlement summary (protocol, amount, currency).",
"type": "object"
},
"runId": {
"description": "Run ID for debugging/audit.",
"type": "string"
}
},
"required": [
"items"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"tags": [
"twitter",
"x",
"compose",
"write-tweet",
"ai-generated",
"copywriting",
"thread",
"content",
"draft",
"creator",
"agent",
"x402"
]
}
}Use it
curl
curl "https://twitr.sh/api/tools/compose" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://twitr.sh/api/tools/compose");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://twitr.sh/api/tools/compose")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4338.json, and this resource appears in /discovery/resources and /discovery/search.