generate_thumbnail
Create platform-specific thumbnails from a title for YouTube, Instagram, X, LinkedIn, or blog posts. Returns an inline image and a public URL for embedding.
Instructions
Generate a thumbnail / social share image from a title using the ThumbAPI service.
Use this when the user wants to create a YouTube thumbnail, Instagram post image, X/Twitter card, LinkedIn share image, or blog post hero image from a headline or title.
Returns the generated image inline (viewable by the model) plus metadata: format, outputFormat, generationId, and imageUrl (a public URL on ThumbAPI's CDN — use this to download or embed the image without handling base64).
Requires an API key. Either set THUMBAPI_API_KEY in the environment or run the login tool once — that starts an OAuth-style browser flow and saves the key to ~/.thumbapi/config.json. Get a key at https://thumbapi.dev.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Generation model. `sd` (default) is faster and cheaper (10 credits). `hd` produces higher quality output but requires a Pro or Business plan (20 credits). | |
| title | Yes | The headline / video title / blog post title to render on the thumbnail. Required. Max 200 chars. Write the title exactly as it should appear. | |
| format | Yes | Target platform / aspect ratio. `youtube` = 1280x720 (16:9), `instagram` = 1080x1080 (1:1), `x` = 1600x900 (16:9, Twitter/X card), `blogpost` = photorealistic hero image (16:9), `linkedin` = 1200x627 (LinkedIn share). | |
| category | No | Optional content category hint that biases visual style. Choose the closest match, or omit to let the API auto-detect from the title (equivalent to `auto`). | |
| outputFormat | No | Image encoding of the returned file. Defaults to `webp`. |