SOKE
API ReferenceThumbnail

Generate Background

Generate only the background image for a thumbnail using AI.

POST /api/v1/thumbnail/generate-background

Generate only the background image for a thumbnail. Useful when you want to compose the thumbnail manually using your own text overlays and elements.

Credits: 4 per request

Request Body

FieldTypeRequiredDefaultDescription
videoUrlstringNoYouTube video URL for context
manualPromptstringNoCustom prompt for the background
manualTitlestringNoVideo title for context
resolutionstringNoOutput resolution
platformstringNo"youtube"Target platform
sessionIdstringNoGroup in an existing session
overrideTitlebooleanNotrueWhether to override the auto-detected title
templateIdstringNoUse a saved template

Example Request

curl -X POST https://api.usesoke.ai/api/v1/thumbnail/generate-background \
  -H "Content-Type: application/json" \
  -H "X-Soke-Key: sk_live_your_api_key" \
  -d '{
    "manualTitle": "10 Developer Productivity Hacks",
    "manualPrompt": "A clean minimalist desk setup with warm lighting",
    "platform": "youtube"
  }'

Response

Returns the same async job format as Generate Thumbnail. Poll via GET /api/v1/thumbnail/{id}.

Error Codes

CodeStatusDescription
BAD_REQUEST400Missing required fields
RATE_LIMIT_EXCEEDED429Rate limit exceeded
INSUFFICIENT_CREDITS402Not enough credits
PLATFORM_NOT_IMPLEMENTED501Platform not yet supported

On this page