Skip to content

Generate spoken hooks

Generate 30-second-capped, fact-checked spoken YouTube hooks across requested formats using hook-lora-v2 and channel WPM/messaging defaults, with optional reference exemplars. Costs 3 credits.

POSThttps://hitfactorapp.com/api/v1/hooks/generate
MCP toolgenerate_hooksCost3 creditsModeSync (200 OK)Scopehooks:writeChannel syncRequired

Request examples

curl -sS -X POST "https://hitfactorapp.com/api/v1/hooks/generate" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $HITFACTOR_API_KEY" \
  -H "Idempotency-Key: req_2026_001" \
  -d '{
  "title": "Why Every AI Agent Breaks in Production",
  "mainIdea": "example_mainIdea",
  "problem": "example_problem",
  "payoff": "example_payoff",
  "proof": "example_proof"
}'

Parameters

Idempotency-Keyheaderstring

Unique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.

maxLength: 255

Request body

Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.

titlestringrequired
minLength: 1maxLength: 300
mainIdeastringrequired
minLength: 1maxLength: 1500
problemstring
maxLength: 1500
payoffstring
maxLength: 1500
proofstring
maxLength: 2000
sectionsstring[]
maxItems: 20
presenterstring
maxLength: 200
formats"reframe-intro" | "four-p" | "if-then"[]
minItems: 1maxItems: 3
targetWpminteger
min: 60max: 300
directionstring
maxLength: 200
includeExemplarsboolean
default: false

Response (200 OK)

Every successful response wraps the payload in data alongside billing and request metadata in meta.

hooksobject[]required
Show item fields
format"reframe-intro" | "four-p" | "if-then"required
textstringrequired
wordCountintegerrequired
min: -9007199254740991max: 9007199254740991
estimatedSecondsintegerrequired
min: -9007199254740991max: 9007199254740991
passedChecksbooleanrequired
failures"opening" | "length" | "number" | "name"[]required
exemplarsobject[]required
Show item fields
kind"published" | "reference"required
channelHandlestringrequirednullable
titlestringrequirednullable
textstringrequired
Example 200 response
{
  "data": {
    "hooks": [
      {
        "format": "reframe-intro",
        "text": "Every developer builds an AI agent demo in an afternoon, then watches it loop forever in production. Here are the three fixes that actually hold up.",
        "wordCount": -9007199254740991,
        "estimatedSeconds": -9007199254740991,
        "passedChecks": true,
        "failures": [
          null
        ]
      }
    ],
    "exemplars": [
      {
        "kind": "published",
        "channelHandle": "example_channelHandle",
        "title": "Why Every AI Agent Breaks in Production",
        "text": "Every developer builds an AI agent demo in an afternoon, then watches it loop forever in production. Here are the three fixes that actually hold up."
      }
    ]
  },
  "meta": {
    "requestId": "req_01j9example0000000000000",
    "creditsCharged": 1,
    "creditsRemaining": 499,
    "replayed": false
  }
}

Error responses

400invalid_input
401Missing or invalid API key
402insufficient_credits
403insufficient_scope
404operation_not_found
409channel_sync_pending or idempotency_conflict
429rate_limited