Thumbnails
27 endpoints on this page
| POST /api/thumbnails | Generate a YouTube thumbnail from a title and one or more reference thumbnails |
| POST /api/thumbnails/channel-style | Generate a thumbnail in a specific channel's own design style |
| POST /api/thumbnails/edit | Edit an already-generated thumbnail with a plain-English instruction |
| GET /api/thumbnails/models | List the thumbnail models available to your account |
| GET /api/thumbnails/status/:task_id | Retrieve the status and result of a thumbnail generation |
| POST /api/thumbnails/outliers | Find topically-similar |
| POST /api/thumbnails/channel-videos | Page through a channel's LONGFORM upload catalogue |
| GET /api/thumbnails/saved-channels | List your saved channel styles |
| POST /api/thumbnails/saved-channels | Save a channel style for one-click reuse |
| DELETE /api/thumbnails/saved-channels/{channel_id} | Remove a channel from your saved styles |
| GET /api/thumbnails/instruction-presets | List your saved custom-instruction presets |
| POST /api/thumbnails/instruction-presets | Save (or update, by name) a reusable custom-instruction preset for thumbnail generation |
| DELETE /api/thumbnails/instruction-presets/{preset_id} | Delete a custom-instruction preset by id |
| POST /api/thumbnails/extract-video | Resolve a YouTube URL or video ID to its title |
| POST /api/thumbnails/analyze | Vision-analyse a thumbnail image into a structured design breakdown |
| POST /api/thumbnails/compose | Engineer an image-gen prompt from a title + a single reference |
| POST /api/thumbnails/compose-channel | Channel-style compose without generating |
| GET /api/thumbnails/channel-presets | List your saved per-channel thumbnail presets |
| POST /api/thumbnails/channel-presets | Save a per-channel preset |
| DELETE /api/thumbnails/channel-presets/{preset_id} | Delete a per-channel preset by id |
| GET /api/thumbnails/history | Your generated-thumbnail history |
| POST /api/thumbnails/detect-people | Check whether a reference image contains a person |
| POST /api/thumbnails/crop-reference | Crop a region out of a reference image and store it as a character reference |
| POST /api/thumbnails/search-faces | Search the web for photos of a named person so you can use one as a character reference |
| POST /api/thumbnails/import-face | Copy an external face photo into Algrow storage and return a stable URL the render pipeline can always fetch |
| POST /api/thumbnails/swap-face | Put a real face onto a thumbnail you already rendered |
| POST /api/thumbnails/feedback | Record a thumbs up or down on a generated thumbnail |
POST/api/thumbnails
Generate a YouTube thumbnail from a title and one or more reference thumbnails. The reference is vision-analysed and its design grammar is folded into an engineered prompt for your new title, then rendered. Returns a task_id immediately — poll /api/thumbnails/status/{task_id} for the image URLs. Costs what its image model costs, the same as in Thumbnail Studio on the site: $0.0048 on GPT Image 2.6 or 2.5, $0.0096 on Nano Banana 2.1 or 2, $0.0144 on Nano Banana Pro (the default), $0.0372 on Seedream 5.0 Lite and $0.0423 on Seedream 4.5 Edit, at any size (fast: true on a Seedream model costs the same), charged to your balance upfront and refunded automatically if generation fails.
Your API key must carry the generations scope.
No daily limit.
Request Body (JSON)
| promptstring · required | The new video title to design the thumbnail for. |
| reference_urlsstring[] · required | One or more references — each a YouTube video URL, a bare 11-char video id, or a direct image URL. The first is used as the primary design reference. At least one is required. |
| modelstring · optional · default nano-banana-pro | Image model. One of nano-banana-pro, nano-banana-2.1, nano-banana-2, gpt-image-2.6, gpt-image-2.5, seedream-5.0-lite, seedream-4.5-edit. |
| aspect_ratiostring · optional · default 16:9 | Output aspect ratio (e.g. 16:9, 9:16, 1:1). |
| resolutionstring · optional · default 1K | Output resolution (1K, 2K, or 4K). It does not change the price. On your Algrow balance the Nano Banana models are made at each size, GPT Image 2.6 and 2.5 at 1K and the Seedream models at one size. |
| reference_titlesobject · optional | Map of reference_url → the reference video's original title, so the prompt knows why that thumbnail worked for that title. |
| find_outliers_firstboolean · optional · default false | Auto-fetch up to 3 topically-similar outlier thumbnails to use as extra references (topic taken from outlier_topic or prompt). |
| custom_instructionsstring · optional | Extra art-direction appended to the engineered prompt with highest salience. |
| fastboolean · optional · default false | Fast mode, for the Seedream models only — quicker renders on a dedicated queue, at the same price as a normal render. Ignored for the other models. |
| 200 | Queued |
| 400 | Validation error |
| 401 | Auth failed |
| 402 | Not enough balance |
| 429 | Too busy |
| 502 | Submit failed |
POST/api/thumbnails/channel-style
Generate a thumbnail in a specific channel's own design style. We resolve the channel, pull its top longform thumbnails, analyse them, pick the one whose design best fits your title, and recreate that treatment for your title (the channel's subjects never carry over — only its design language). Returns a task_id immediately — poll /api/thumbnails/status/{task_id} for the image. Costs what its image model costs, the same as in Thumbnail Studio on the site: $0.0048 on GPT Image 2.6 or 2.5, $0.0096 on Nano Banana 2.1 or 2, $0.0144 on Nano Banana Pro (the default), $0.0372 on Seedream 5.0 Lite and $0.0423 on Seedream 4.5 Edit, at any size (fast: true on a Seedream model costs the same), charged to your balance upfront and refunded automatically on failure.
Requires the generations scope. The compose step runs inline and can take 30–90 seconds before the task_id is returned.
No daily limit.
Request Body (JSON)
| channelstring · required | The channel to borrow the style from — a UC channel id, @handle, or channel URL. |
| titlestring · required | The new video title to design the thumbnail for. |
| modelstring · optional · default nano-banana-pro | Image model. One of nano-banana-pro, nano-banana-2.1, nano-banana-2, gpt-image-2.6, gpt-image-2.5, seedream-5.0-lite, seedream-4.5-edit. |
| custom_instructionsstring · optional | Extra art-direction applied on top of the matched channel style. |
| fastboolean · optional · default false | Fast mode, for the Seedream models only — quicker renders on a dedicated queue, at the same price as a normal render. Ignored for the other models. |
| 200 | Queued |
| 400 | Validation error |
| 401 | Auth failed |
| 402 | Not enough balance |
| 502 | Compose/submit failed |
POST/api/thumbnails/edit
Edit an already-generated thumbnail with a plain-English instruction. The image goes back to the model as the canvas and only the requested change is applied — optional reference_urls are source material for the change ("insert THIS product"). Returns a task_id immediately — poll /api/thumbnails/status/{task_id} for the edited image. Costs what its image model costs, the same as in Thumbnail Studio on the site: $0.0048 on GPT Image 2.6 or 2.5, $0.0096 on Nano Banana 2.1 or 2, $0.0144 on Nano Banana Pro (the default), $0.0372 on Seedream 5.0 Lite and $0.0423 on Seedream 4.5 Edit, at any size (fast: true on a Seedream model costs the same), charged to your balance upfront and refunded automatically on failure. Note: gpt-image-2.5 requests are served by nano-banana-pro for edits.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| base_image_urlstring · required | Direct http(s) URL of the thumbnail to edit — typically an image URL returned by a previous generation. |
| instructionstring · required | The change to make, in plain English (e.g. "make the text yellow"). Max 2000 characters. |
| reference_urlsstring[] · optional | Extra images used as source material for the change (e.g. the product to insert). Each a YouTube video URL, a bare 11-char video id, or a direct image URL. |
| modelstring · optional · default nano-banana-pro | Image model. One of nano-banana-pro, nano-banana-2.1, nano-banana-2, gpt-image-2.6, gpt-image-2.5, seedream-5.0-lite, seedream-4.5-edit. gpt-image-2.5 is auto-served by nano-banana-pro for edits. |
| aspect_ratiostring · optional · default 16:9 | Output aspect ratio (e.g. 16:9, 9:16, 1:1). |
| resolutionstring · optional · default 1K | Output resolution (1K, 2K, or 4K). It does not change the price. On your Algrow balance the Nano Banana models are made at each size, GPT Image 2.6 and 2.5 at 1K and the Seedream models at one size. |
| fastboolean · optional · default false | Fast mode, for the Seedream models only — quicker renders on a dedicated queue, at the same price as a normal render. Ignored for the other models. |
| 200 | Queued |
| 400 | Validation error |
| 401 | Auth failed |
| 402 | Not enough balance |
| 502 | Submit failed |
GET/api/thumbnails/models
List the thumbnail models available to your account, what a render on each costs counted in credits (1 credit = $0.03, so 0.48 is $0.0144), and the fast-mode rate for the Seedream models. A thumbnail costs what an image on the same model costs. Free — use this for capability discovery instead of hardcoding model names.
No daily limit.
| 200 | OK |
| 401 | Auth failed |
GET/api/thumbnails/status/:task_id
Retrieve the status and result of a thumbnail generation. Poll every 2–3 seconds until state is success or fail. Typical generation time is 30–90 seconds. On a failure, what was charged at submit is refunded automatically.
No daily limit.
Path Parameters
| task_idstring · required | The task_id returned from POST /api/thumbnails. |
Response Fields
| statestring | Generation state: a pending value (processing/waiting/queuing/generating), success, or fail. Prompt engineering runs for 1–3 minutes before the render is submitted, so expect processing for a while; keep polling the id you were given until it is terminal. |
| imagesstring[] | Generated thumbnail URLs (only when state=success). |
| errorstring | Error description (only when state=fail). |
| 200 | Success |
| 401 | Auth failed |
| 404 | Not found |
POST/api/thumbnails/outliers
Find topically-similar, high-performing reference thumbnails for a topic. Free (a database lookup). Pass the returned thumbnail_url values straight into POST /api/thumbnails as reference_urls to build a thumbnail in a proven style. From 1 December 2026 a key with no plan can call this once its balance has money in it. With no plan and an empty balance it returns 402.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| topicstring · required | The topic/niche to find outlier thumbnails for (e.g. minecraft survival). |
| content_typestring · optional · default longform | longform or shorts. |
| limitinteger · optional · default 12 | Number of results to return. |
| min_outlier_scorenumber · optional · default 2.0 | Minimum outlier score (how far a video outperforms its channel baseline). |
| pageinteger · optional · default 1 | Page number for pagination. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/channel-videos
Page through a channel's LONGFORM upload catalogue (shorts excluded) — newest first, 50 per page, each video with its thumbnail, title and view count, plus the channel's recent-median baseline (median_views) for outlier scoring (view_count / median_views). Free. Pick a thumbnail_url and pass it to POST /api/thumbnails as a reference.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| channelstring · required | Channel @handle, URL, or UC id. |
| page_tokenstring · optional | next_page_token from the previous response. |
| playlist_idstring · optional | playlist_id from the previous response — page tokens are playlist-specific. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
GET/api/thumbnails/saved-channels
List your saved channel styles (identity only — name, handle, avatar, channel id). The catalogue itself is always fetched live via POST /api/thumbnails/channel-videos. Free.
Requires the generations scope.
No daily limit.
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/saved-channels
Save a channel style for one-click reuse. Snapshots the channel's name, handle and avatar. Upserts by channel. Free.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| channelstring · required | Channel @handle, URL, or UC id. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
DELETE/api/thumbnails/saved-channels/{channel_id}
Remove a channel from your saved styles. Free.
Requires the generations scope.
No daily limit.
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
GET/api/thumbnails/instruction-presets
List your saved custom-instruction presets. Apply one by passing its instructions as custom_instructions to the compose/generate endpoints. Free.
Requires the generations scope.
No daily limit.
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/instruction-presets
Save (or update, by name) a reusable custom-instruction preset for thumbnail generation. Free.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| namestring · required | Preset name (max 60 chars). Saving an existing name updates it. |
| instructionsstring · required | The custom-instructions text (max 2000 chars). |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
DELETE/api/thumbnails/instruction-presets/{preset_id}
Delete a custom-instruction preset by id (from the list endpoint). Free.
Requires the generations scope.
No daily limit.
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/extract-video
Resolve a YouTube URL or video ID to its title, channel, and max-resolution thumbnail. Free. Use the returned thumbnail_url as a reference for POST /api/thumbnails.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| url_or_idstring · required | A YouTube watch URL, short URL, or bare 11-character video id. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/analyze
Vision-analyse a thumbnail image into a structured design breakdown (composition, palette, text, focal points). Free.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| image_urlstring · required | Public URL of the thumbnail image to analyse. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/compose
Engineer an image-gen prompt from a title + a single reference, without generating. Free, synchronous. Stateless — there is no style id; save the returned prompt and pass it to POST /api/thumbnails as final_prompt to render.
Requires the generations scope. Two-step flow: compose → review/edit the prompt → POST /api/thumbnails with final_prompt.
No daily limit.
Request Body (JSON)
| titlestring · required | Your new video title. |
| reference_urlstring · required | A YouTube URL, 11-char video id, or direct image URL. |
| reference_titlestring · optional | The reference's original video title (improves mapping). |
| custom_instructionsstring · optional | Extra art-direction. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/compose-channel
Channel-style compose without generating — resolve the channel, analyse its top thumbnails, match the best design to your title. Free, synchronous (~30–90s). Returns the engineered prompt + the channel's source_thumb_urls; pass both to POST /api/thumbnails (final_prompt + reference_urls) to render. Stateless.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| channelstring · required | UC channel id, @handle, or channel URL. |
| titlestring · required | Your new video title. |
| custom_instructionsstring · optional | Extra art-direction. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
GET/api/thumbnails/channel-presets
List your saved per-channel thumbnail presets — instructions, subject face, style references, and generation defaults, saved together under a label. Returns the 50 most recent. Free.
Requires the generations scope.
No daily limit.
| 200 | Success |
| 401 | Auth failed |
POST/api/thumbnails/channel-presets
Save a per-channel preset, or update an existing one by reusing its label. Only the fields you send are written; on update, everything you leave out keeps its current value. Free.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| labelstring · required | Preset label. Sending an existing label updates that preset. |
| instructionsstring · optional | Custom instructions applied to every render made with this preset. |
| face_urlstring · optional | URL of the subject face to reuse. Takes precedence over face_image_b64. |
| face_image_b64string · optional | Base64 face image (raw or a data: URL). Uploaded to storage and saved as face_url when no face_url is given. |
| content_typestring · optional · default image/png | MIME type for face_image_b64. |
| channel_style_idstring · optional | Saved channel-style id to render in. |
| channel_style_namestring · optional | Display name for the channel style. |
| style_reference_urlsarray · optional | Reference thumbnail URLs that define the look. |
| aspect_ratiostring · optional | Default aspect ratio for renders, e.g. 16:9. |
| resolutionstring · optional | Default resolution, e.g. 2K. |
| modelstring · optional | Default image model. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
DELETE/api/thumbnails/channel-presets/{preset_id}
Delete a per-channel preset by id (from the list endpoint). Free.
Requires the generations scope.
No daily limit.
| 200 | Success |
| 400 | Invalid preset id |
| 401 | Auth failed |
GET/api/thumbnails/history
Your generated-thumbnail history, newest first. One shared history across every path — the browser Studio, the MCP tools, and this API all appear. Each item carries the final image URL(s), the title it was made for, model, aspect ratio and created_at. Query params: limit (default 24, max 60) and offset; has_more signals another page. Free.
Requires the generations scope.
No daily limit.
| 200 | Success |
| 401 | Auth failed |
POST/api/thumbnails/detect-people
Check whether a reference image contains a person, so you can offer to swap in a real face before rendering. Cheaper and faster than a full analysis, and cached per image for six hours. Free.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| image_urlstring · required | Reference image URL. YouTube thumbnail URLs and Algrow-hosted references both work. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/crop-reference
Crop a region out of a reference image and store it as a character reference. The crop happens server-side, so it works on images a browser canvas is not allowed to read back. Returns a hosted URL you can pass straight to generation as a character reference. Free.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| image_urlstring · required | Image to crop. |
| cropobject · required | Crop rectangle in normalized coordinates relative to the image's natural size: {"x": 0.2, "y": 0.1, "w": 0.3, "h": 0.4}, each between 0 and 1. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/search-faces
Search the web for photos of a named person so you can use one as a character reference. Pass the chosen photo through /api/thumbnails/import-face before rendering — some image hosts block our downloader. 25 free a day on every plan, then $0.01 a search from your balance with pay-per-call on, up to 475 more a day. A search that finds nothing is not counted or charged.
Requires the generations scope.
| Every call | 25 | 25 | 25 |
Calls a day on each plan. See every tool’s limits
Request Body (JSON)
| querystring · required | Person to search for. Trimmed to 120 characters. |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
POST/api/thumbnails/import-face
Copy an external face photo into Algrow storage and return a stable URL the render pipeline can always fetch. Run every search result through this before using it as a reference. Free.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| image_urlstring · required | Image to import. |
| fallback_urlstring · optional | Second URL to try when the first host blocks the download — e.g. the search result's thumbnail. |
| 200 | Success |
| 400 | Download blocked / validation error |
| 401 | Auth failed |
POST/api/thumbnails/swap-face
Put a real face onto a thumbnail you already rendered. Queues like any other generation and returns a task_id to poll. Costs what its image model costs: $0.0048 on GPT Image 2.6 or 2.5, $0.0096 on Nano Banana 2.1 or 2, $0.0144 on Nano Banana Pro (the default), $0.0372 on Seedream 5.0 Lite and $0.0423 on Seedream 4.5 Edit, at any size; fast on a Seedream model costs the same.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| base_image_urlstring · required | The rendered thumbnail to edit. |
| face_urlstring · required | Face to place on it. Use an Algrow-hosted URL from /api/thumbnails/import-face or /api/thumbnails/crop-reference. |
| modelstring · optional · default nano-banana-pro | Image model used for the swap. |
| aspect_ratiostring · optional · default 16:9 | Output aspect ratio. |
| resolutionstring · optional · default 1K | Output resolution. |
| fastboolean · optional · default false | Prioritised render, for the Seedream models only, at the same price as a normal render. Ignored for the other models. |
| 200 | Queued |
| 400 | Validation error |
| 401 | Auth failed |
| 402 | Not enough balance |
| 429 | Concurrent job limit |
| 502 | Face swap failed |
Poll GET /api/thumbnails/status/{task_id} for the finished image. The charge is refunded automatically if the swap fails.
POST/api/thumbnails/feedback
Record a thumbs up or down on a generated thumbnail, with an optional comment. Sending the same task_id again updates the existing rating. Free.
Requires the generations scope.
No daily limit.
Request Body (JSON)
| ratingstring · required | up or down. |
| task_idstring · optional | Task id of the generation being rated. Rating the same task again updates it. |
| image_urlstring · optional | URL of the rated image, when you don't have the task id. |
| feedbackstring · optional | Free-text comment (max 2,000 characters). |
| 200 | Success |
| 400 | Validation error |
| 401 | Auth failed |
