Plus plan

Generate Thumbnail

Create an eye-catching cover image with your title on it
POST
/v1/ai/generation/thumbnail

About this tool

This tool makes a thumbnail, which is the small cover picture that shows up for a video or an article. The AI (a computer program that creates images) makes the background, and your title is added as exact, clean text. You choose the platform (YouTube, a blog or anywhere), the text position and the text colour. You do not need to add a file.
For example, you type the title 5 easy bread recipes and get a YouTube cover with big text over a tasty-looking background.

How to use it

  1. Choose this tool.
  2. Type the Title and, if you like, a Subtitle.
  3. Choose the platform, where the text goes and its colour.
  4. Optionally describe what the picture should show, then press Generate.
  5. Download the thumbnail you like.

What you get back

You get a thumbnail picture at the right size to download and use. You can make several versions and pick the best one.
TEST IT LIVE

Try Generate Thumbnail in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
AI
Plan
Plus
Method
POST
Endpoint
/v1/ai/generation/thumbnail
Tool ID
ai.generation.thumbnail
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Ai
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/ai/generation/thumbnail" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"on_unsupported":"error","title":"x","platform":"youtube"}'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.ai.generation.thumbnail({
    "on_unsupported": "error",
    "title": "x",
    "platform": "youtube"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->ai()->generation()->thumbnail([
    'on_unsupported' => 'error',
    'title' => 'x',
    'platform' => 'youtube',
]);
echo $result->requestId;
FAQ

Frequently asked questions

AI background plus deterministic text composition (exact typography). Readiness: unbenchmarked (see GET /v1/ai/capabilities/generation.thumbnail).

Classification: ai. Deterministic stages: upload content sniffing, input image normalisation (Sharp), generated image validation and re-encoding (Sharp), signed-URL output, deterministic text rendering (SVG/Sharp), platform size presets.

Generate Thumbnail works from text and settings, so no file is needed. The required inputs are title.

Not on the Free plan: Generate Thumbnail is available on the Plus plan and above. Free accounts can upgrade any time to use it. Each run uses credits from your monthly allowance.

Send a POST request to /v1/ai/generation/thumbnail with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.