68trust / 100
Tools Compose
by twitr.sh in News & content
x402 APIPassing, checked 3 h ago
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.
POST https://twitr.sh/api/tools/compose
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 254 ms typical, 309 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://twitr.sh/api/tools/compose" \
-H "content-type: application/json" \
-d '{"goal":"announce launch","step":"generate","tone":"punchy","topic":"pay-per-call APIs for AI agents"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftwitr.sh%2Fapi%2Ftools%2Fcompose
const res = await pay("https://twitr.sh/api/tools/compose", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"goal":"announce launch","step":"generate","tone":"punchy","topic":"pay-per-call APIs for AI agents"}),
});
console.log(await res.json());Example input
{
"goal": "announce launch",
"step": "generate",
"tone": "punchy",
"topic": "pay-per-call APIs for AI agents"
}Example output
{
"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"
}Security scan
- Charges more than its listed price in payment
Listed at $0.001, charges $0.0024
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 454 ms | $0.0024 |
| 6 h ago | Passed | 402 | 209 ms | $0.0024 |
| 10 h ago | Passed | 402 | 260 ms | $0.0024 |
| 13 h ago | Passed | 402 | 239 ms | $0.0024 |
| 17 h ago | Passed | 402 | 257 ms | $0.0024 |
| 21 h ago | Passed | 402 | 270 ms | $0.0024 |
| 24 h ago | Passed | 402 | 227 ms | $0.0024 |
| 28 h ago | Passed | 402 | 254 ms | $0.0024 |
| 31 h ago | Passed | 402 | 243 ms | $0.0024 |
| 35 h ago | Passed | 402 | 260 ms | $0.0024 |
| 39 h ago | Passed | 402 | 236 ms | $0.0024 |
| 42 h ago | Passed | 402 | 309 ms | $0.0024 |
| 2 days ago | Passed | 402 | 189 ms | $0.0024 |
History
| 11 Oct 2026 | Price changed from $0.001 to $0.0024 |