API Reference/Generation Tools

Generation Tools

Generate, modify, and manage AI-generated YouTube thumbnails. These tools handle the core thumbnail creation workflow.

Generate, modify, and manage AI-generated YouTube thumbnails. These tools handle the core thumbnail creation workflow.

generate_thumbnail

Generate YouTube thumbnails from a text prompt.

Endpoint: POST /api/v1/tools/generate_thumbnail

Cost: 1 thumbnail | Rate Limit: 10 requests/min

Parameters

ParameterTypeRequiredDescription
promptstringNoText description of the thumbnail (default: 1)
imageIdsstring[]NoIDs of uploaded images
modelstringNoAI model to use (default: gemini)

Example

curl -X POST https://thumbfa.st/api/v1/tools/generate_thumbnail \
  -H "Authorization: Bearer tf_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A YouTuber looking shocked at their laptop",
    "model": "gemini"
  }'

get_generation_status

Get the status of a generation including pending and completed thumbnails.

Endpoint: POST /api/v1/tools/get_generation_status

Parameters

ParameterTypeRequiredDescription
generationIdstringYesID of the generation to check

Example

curl -X POST https://thumbfa.st/api/v1/tools/get_generation_status \
  -H "Authorization: Bearer tf_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "generationId": "example_generationId"
  }'

generate_variation

Create new variations of an existing prompt with optional modifications.

Endpoint: POST /api/v1/tools/generate_variation

Cost: 1 thumbnail | Rate Limit: 10 requests/min

Parameters

ParameterTypeRequiredDescription
promptIdstringNoID of the existing prompt (default: 1)
newPromptstringNoModified prompt text
modelstringNoAI model to use (default: gemini)

Example

curl -X POST https://thumbfa.st/api/v1/tools/generate_variation \
  -H "Authorization: Bearer tf_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "promptId": "example_promptId",
    "model": "gemini"
  }'

list_generations

List your generated thumbnails with optional search and pagination.

Endpoint: POST /api/v1/tools/list_generations

Parameters

ParameterTypeRequiredDescription
cursorstringNoPagination cursor
searchstringNoSearch in prompt text

Example

curl -X POST https://thumbfa.st/api/v1/tools/list_generations \
  -H "Authorization: Bearer tf_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{}'

cancel_generation

Cancel pending generations and get thumbnails refunded.

Endpoint: POST /api/v1/tools/cancel_generation

Parameters

ParameterTypeRequiredDescription
generationIdstringYesID of the generation to cancel

Example

curl -X POST https://thumbfa.st/api/v1/tools/cancel_generation \
  -H "Authorization: Bearer tf_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "generationId": "example_generationId"
  }'

trigger_generation

Trigger the actual image generation for a pending generation. Called internally by the generation loop.

Endpoint: POST /api/v1/tools/trigger_generation

This tool takes no parameters.

Example

curl -X POST https://thumbfa.st/api/v1/tools/trigger_generation \
  -H "Authorization: Bearer tf_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{}'