YouTube Thumbnail Generator API
Generate catchy, high-quality thumbnails optimized for click-through rates.
GET/api/image/youtube-thumbnail-generator-prompts
Retrieve a list of pre-defined thumbnail styles.
Example Request
curl -X GET 'https://codingmantra.com/api/image/youtube-thumbnail-generator-prompts'Example Response
{
"data": [
{
"id": "bold-vs",
"title": "Versus / Comparison",
"categoryId": "bold",
"categoryTitle": "Bold & Dynamic",
"description": "Dynamic split-screen..."
},
// ... more prompts
]
}POST/api/image/youtube-thumbnail-generator
Generate a thumbnail based on prompts and assets.
Request Body
| Field | Type | Description |
|---|---|---|
| prompt | string | Required. Description of the video or desired thumbnail. |
| overlayText | string | Optional. Text to overlay on the image. |
| personImage | string | Optional. URL or data URI of a person subject. |
| backgroundImage | string | Optional. URL or data URI of a background. |
| logoImage | string | Optional. URL or data URI of a logo. |
| referenceImage | string | Optional. URL or data URI of a style reference. |
| model | string | Optional. `'standard'` (default) or `'pro'`. |
| outputResult | string | Optional. `'base64'` (default) or `'url'`. |
Example Request
curl -X POST 'https://codingmantra.com/api/image/youtube-thumbnail-generator' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"prompt": "Unboxing the latest smartphone review",
"overlayText": "BEST PHONE 2024?",
"accentColor": "yellow",
"model": "high_quality"
}'Example Response
{
"data": {
"photoDataUri": "data:image/png;base64,..."
}
}