Generate thumbnail
Generate a blueprint-backed YouTube thumbnail PNG asynchronously using corpus winner blueprints, channel brand context, and optional reference images or presenter headshot. Costs 15 credits.
Request examples
curl -sS -X POST "https://hitfactorapp.com/api/v1/thumbnails/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",
"concept": "Walk through the three failure modes we hit scaling tool-calling agents and how deterministic state graphs fixed them.",
"style": "corpus_winners",
"blueprintId": "bp_split_comparison_01",
"referenceUrls": [
"https://example.com/resource"
]
}'const response = await fetch("https://hitfactorapp.com/api/v1/thumbnails/generate", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.HITFACTOR_API_KEY!,
"Idempotency-Key": "req_2026_001",
},
body: JSON.stringify({
"title": "Why Every AI Agent Breaks in Production",
"concept": "Walk through the three failure modes we hit scaling tool-calling agents and how deterministic state graphs fixed them.",
"style": "corpus_winners",
"blueprintId": "bp_split_comparison_01",
"referenceUrls": [
"https://example.com/resource"
]
}),
})
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_thumbnail",
"arguments": {
"title": "Why Every AI Agent Breaks in Production",
"concept": "Walk through the three failure modes we hit scaling tool-calling agents and how deterministic state graphs fixed them.",
"style": "corpus_winners",
"blueprintId": "bp_split_comparison_01",
"referenceUrls": [
"https://example.com/resource"
],
"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.
titlestringrequiredminLength: 1maxLength: 300conceptstringrequiredminLength: 1maxLength: 2000stylestringminLength: 1maxLength: 100blueprintIdstringminLength: 1maxLength: 100referenceUrlsstring (uri)[]maxItems: 3headshotUrlstring (uri)maxLength: 2048notesstringmaxLength: 2000webhookUrlstring (uri)maxLength: 2048Response (202 Accepted)
Returns HTTP 202 immediately with an operationId and pollUrl. Poll GET /operations/{operationId} (0 credits) or pass webhookUrl to receive the finished payload.
operationIdstringrequiredstatus"queued"requiredpollUrlstringrequired{
"data": {
"operationId": "apiop_01j9example0000000000000",
"status": "queued",
"pollUrl": "/api/v1/operations/apiop_01j9example0000000000000"
},
"meta": {
"requestId": "req_01j9example0000000000000",
"creditsCharged": 1,
"creditsRemaining": 499,
"replayed": false
}
}Completed operation result
When the async operation reaches status: "succeeded", this schema is returned inside data.result on GET /operations/{operationId} and webhook deliveries.
urlstring (uri)requiredSigned HTTPS download URL for the generated PNG (expires after 24 hours).
expiresAtstringrequiredISO-8601 expiration timestamp for the signed PNG URL.
route"html" | "photo"requiredRendering pipeline used to compose the thumbnail.
headlinestringrequiredThumbnail overlay headline selected for the layout.
blueprintIdstringrequirednullableCorpus winner blueprint ID used, if applicable.
blueprintSummaryobjectrequirednullableSummary of the selected visual blueprint.
Show object fields
layoutstringrequiredstoryTypestringrequirednullablepromptTemplatestringrequiredverificationPassedbooleanrequiredWhether automated visual verification passed on the rendered PNG.
{
"url": "https://example.com/generated/thumb-01.png",
"expiresAt": "2026-12-02T20:00:00.000Z",
"route": "html",
"headline": "AGENTS BREAK",
"blueprintId": "bp_split_comparison_01",
"blueprintSummary": {
"layout": "example_layout",
"storyType": "example_storyType",
"promptTemplate": "example_promptTemplate"
},
"verificationPassed": true
}Error responses
400invalid_input401Missing or invalid API key402insufficient_credits403insufficient_scope404operation_not_found409channel_sync_pending or idempotency_conflict429rate_limited