Use the Bannerbear CLI from KosmoKrator to call Bannerbear tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Bannerbear can be configured headlessly with `kosmokrator integrations:configure bannerbear`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure bannerbear --set api_key="$BANNERBEAR_API_KEY" --enable --read allow --write ask --jsonkosmokrator integrations:doctor bannerbear --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
BANNERBEAR_API_KEY
Secret secret
yes
API Key
url
BANNERBEAR_URL
URL url
no
API Base URL
Call Bannerbear Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Bannerbear.
bannerbear.bannerbear_create_image
Write write
Generate an image from a Bannerbear template. Provide a template ID and an array of modifications to customize text, images, colors, and other layers. The image is generated asynchronously — use get_image to check status and retrieve the final URL.
Retrieve the status and download URL of a previously created Bannerbear image. Images are generated asynchronously, so poll this endpoint until status is "completed".
List Bannerbear collections. Collections are groups of images generated from a single template with different data. Supports pagination via page and limit parameters.
Generate a video from a Bannerbear template. Provide a template ID and an array of modifications per scene. The video is generated asynchronously — use get_video to check status and retrieve the final URL.
Retrieve the status and download URL of a previously created Bannerbear video. Videos are generated asynchronously, so poll this endpoint until status is "completed".
List all available Bannerbear templates. Returns template UIDs, names, dimensions, and preview URLs. Use a template UID with create_image or create_video.
Get details for a specific Bannerbear template, including all available modification layers (text, image, color, etc.). Use this to discover which layer names to use when calling create_image or create_video.
Generate an animated GIF from a Bannerbear template. Provide a template ID and an array of modifications per frame. The GIF is generated asynchronously — use get_image with the returned ID to check status.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
bannerbear.bannerbear_create_image
Generate an image from a Bannerbear template. Provide a template ID and an array of modifications to customize text, images, colors, and other layers. The image is generated asynchronously — use get_image to check status and retrieve the final URL.
The template UID (e.g., "01H8XYZ..."). Use list_templates to find available templates.
modifications
array
yes
Array of modification objects. Each object has a "name" (layer name) and one of: "text" (string), "image_url" (URL), "color" (hex), or "barcode" (string). Example: [{"name": "title", "text": "Hello World"}, {"name": "photo", "image_url": "https://example.com/img.jpg"}].
width
integer
no
Override the template width in pixels.
height
integer
no
Override the template height in pixels.
transparent
boolean
no
Render with a transparent background (PNG only).
metadata
string
no
Custom metadata string to attach to the image (max 500 chars).
bannerbear.bannerbear_get_image
Retrieve the status and download URL of a previously created Bannerbear image. Images are generated asynchronously, so poll this endpoint until status is "completed".
Page number for pagination (1-based). Defaults to 1.
limit
integer
no
Number of results per page. Defaults to 20.
bannerbear.bannerbear_list_collections
List Bannerbear collections. Collections are groups of images generated from a single template with different data. Supports pagination via page and limit parameters.
Page number for pagination (1-based). Defaults to 1.
limit
integer
no
Number of results per page. Defaults to 20.
bannerbear.bannerbear_create_video
Generate a video from a Bannerbear template. Provide a template ID and an array of modifications per scene. The video is generated asynchronously — use get_video to check status and retrieve the final URL.
The template UID (e.g., "01H8XYZ..."). Use list_templates to find available templates.
modifications
array
yes
Array of modification objects for scenes. Each scene entry has a "name" (layer name) and one of: "text", "image_url", "color", or "barcode". Pass as JSON or array.
fps
integer
no
Frames per second for the output video (default: template setting).
trim
string
no
Trim the video. Pass as "start,end" in seconds (e.g., "0,5").
metadata
string
no
Custom metadata string to attach (max 500 chars).
bannerbear.bannerbear_get_video
Retrieve the status and download URL of a previously created Bannerbear video. Videos are generated asynchronously, so poll this endpoint until status is "completed".
List all available Bannerbear templates. Returns template UIDs, names, dimensions, and preview URLs. Use a template UID with create_image or create_video.
Get details for a specific Bannerbear template, including all available modification layers (text, image, color, etc.). Use this to discover which layer names to use when calling create_image or create_video.
The template UID (e.g., "01H8XYZ..."). Use list_templates to find available templates.
bannerbear.bannerbear_create_animated_gif
Generate an animated GIF from a Bannerbear template. Provide a template ID and an array of modifications per frame. The GIF is generated asynchronously — use get_image with the returned ID to check status.
The template UID (e.g., "01H8XYZ..."). Use list_templates to find available templates.
modifications
array
yes
Array of modification objects per frame. Each entry has a "name" (layer name) and one of: "text", "image_url", "color", or "barcode". Pass as JSON or array.
fps
integer
no
Frames per second for the animated GIF (default: template setting).
metadata
string
no
Custom metadata string to attach (max 500 chars).
bannerbear.bannerbear_get_current_user
Get the authenticated Bannerbear account details, including plan info and usage.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.