Skip to content

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.

POSThttps://hitfactorapp.com/api/v1/thumbnails/generate
MCP toolgenerate_thumbnailCost15 creditsModeAsync (202 Accepted)Scopepackaging:writeChannel syncRequired

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"
  ]
}'

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
conceptstringrequired
minLength: 1maxLength: 2000
stylestring
minLength: 1maxLength: 100
blueprintIdstring
minLength: 1maxLength: 100
referenceUrlsstring (uri)[]
maxItems: 3
headshotUrlstring (uri)
maxLength: 2048
notesstring
maxLength: 2000
webhookUrlstring (uri)
maxLength: 2048

Response (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.

operationIdstringrequired
status"queued"required
pollUrlstringrequired
Example 202 response
{
  "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)required

Signed HTTPS download URL for the generated PNG (expires after 24 hours).

expiresAtstringrequired

ISO-8601 expiration timestamp for the signed PNG URL.

route"html" | "photo"required

Rendering pipeline used to compose the thumbnail.

headlinestringrequired

Thumbnail overlay headline selected for the layout.

blueprintIdstringrequirednullable

Corpus winner blueprint ID used, if applicable.

blueprintSummaryobjectrequirednullable

Summary of the selected visual blueprint.

Show object fields
layoutstringrequired
storyTypestringrequirednullable
promptTemplatestringrequired
verificationPassedbooleanrequired

Whether automated visual verification passed on the rendered PNG.

Example completed result
{
  "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_input
401Missing or invalid API key
402insufficient_credits
403insufficient_scope
404operation_not_found
409channel_sync_pending or idempotency_conflict
429rate_limited