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.
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
}'const response = await fetch("https://hitfactorapp.com/api/v1/titles/generate", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.HITFACTOR_API_KEY!,
"Idempotency-Key": "req_2026_001",
},
body: JSON.stringify({
"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
}),
})
const { data, meta } = await response.json()
console.log(data, meta)curl -sS -X POST "https://hitfactorapp.com/api/v1/mcp" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "generate_titles",
"arguments": {
"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,
"requestId": "req_2026_001"
}
}
}'Parameters
Idempotency-KeyheaderstringUnique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.
maxLength: 255Request body
Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.
conceptstringrequiredminLength: 1maxLength: 2000workingTitlestringmaxLength: 300targetAudiencestringmaxLength: 500countintegerdefault: 8min: 1max: 15notesstringmaxLength: 2000Response (200 OK)
Every successful response wraps the payload in data alongside billing and request metadata in meta.
titlesobject[]requiredShow item fields
titlestringrequiredanglestringrequiredrankScorenumberrequiredscoresobjectrequiredShow object fields
compositenumberrequiredwantnumberavoidnumberwondernumberavatarScorenumberstructurePercentilenumberrequiredleversobject[]requiredShow item fields
featurestringrequiredblocstringrequirednullabledirection"add" | "remove"requiredeffectPctPerStepnumberrequiredgroundingRejectedintegerrequiredmin: -9007199254740991max: 9007199254740991Example 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_input401Missing or invalid API key402insufficient_credits403insufficient_scope404operation_not_found409channel_sync_pending or idempotency_conflict429rate_limited