Skip to content
onelayer.
All tools

Tool detail

x-preflight

Grades a draft X/Twitter post against X's open-sourced ranking code, reporting pool eligibility, retrievability window and which filters or gates apply.

Categories: Social media

Use when

  • check a draft tweet against X's ranking algorithm before posting
  • see which ranking gates a post will hit before publishing it

Not for

  • not a rewrite — never rewrites or stores the post

Inputs

POST JSON body: { text: string (required); brief, post_kind, followers_under_1000, reader_follows_back, all_video_over_10s (all optional) }

Admitted input schema

{
  "type": "object",
  "properties": {
    "all_video_over_10s": {
      "type": "boolean",
      "description": "OPTIONAL, defaults to false. Whether EVERY attachment is video running longer than ten seconds. One photo or one short clip makes this false."
    },
    "brief": {
      "type": "boolean",
      "description": "OPTIONAL, defaults to false. True returns the classification only and drops the prose, which is 78% of the generation. Answers in seconds instead of tens of seconds, same model and same price. Use it if your client has a short timeout."
    },
    "followers_under_1000": {
      "type": "boolean",
      "description": "OPTIONAL, defaults to false. Whether the author is under the small-account cap that the one per-batch lift applies to."
    },
    "post_kind": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "original",
        "reply",
        "quote",
        "repost"
      ],
      "description": "OPTIONAL, defaults to original. A reply's parent is not in the text, so no tool can read this off the draft. Declare it only if it is not an original."
    },
    "reader_follows_back": {
      "type": "boolean",
      "description": "OPTIONAL, defaults to false. Whether the reader follows the author back. Decides in-network versus out-of-network, which changes the reply chain."
    },
    "text": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "The draft post. Never rewritten, never stored."
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://kevinhoff.com/api/paid/grade

Payment

Protocol
x402
Listed price
0.01 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://kevinhoff.com/api/paid/grade
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z