Skip to content

Generate and score titles

Generate and score YouTube title candidates for a concept, conditioned on the connected channel avatars, title-v2-sft, and study-008 structural levers. Costs 4 credits.

POSThttps://hitfactorapp.com/api/v1/titles/generate
MCP toolgenerate_titlesCost4 creditsModeSync (200 OK)Scopepackaging:writeChannel syncRequired

Request examples

curl -sS -X POST "https://hitfactorapp.com/api/v1/titles/generate" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $HITFACTOR_API_KEY" \
  -H "Idempotency-Key: req_2026_001" \
  -d '{
  "concept": "Walk through the three failure modes we hit scaling tool-calling agents and how deterministic state graphs fixed them.",
  "workingTitle": "Why AI Agents Fail in Production",
  "targetAudience": "Senior TypeScript and backend engineers building AI features",
  "count": 8
}'

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.

conceptstringrequired
minLength: 1maxLength: 2000
workingTitlestring
maxLength: 300
targetAudiencestring
maxLength: 500
countinteger
default: 8min: 1max: 15
notesstring
maxLength: 2000

Response (200 OK)

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

titlesobject[]required
Show item fields
titlestringrequired
anglestringrequired
rankScorenumberrequired
scoresobjectrequired
Show object fields
compositenumberrequired
wantnumber
avoidnumber
wondernumber
avatarScorenumber
structurePercentilenumberrequired
leversobject[]required
Show item fields
featurestringrequired
blocstringrequirednullable
direction"add" | "remove"required
effectPctPerStepnumberrequired
groundingRejectedintegerrequired
min: -9007199254740991max: 9007199254740991
Example 200 response
{
  "data": {
    "titles": [
      {
        "title": "Why Every AI Agent Breaks in Production",
        "angle": "example_angle",
        "rankScore": 0.85,
        "scores": {
          "composite": null,
          "want": null,
          "avoid": null,
          "wonder": null,
          "avatarScore": null,
          "structurePercentile": null
        },
        "levers": [
          null
        ]
      }
    ],
    "groundingRejected": -9007199254740991
  },
  "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