Creating a Visual
Base URL: https://backend.blotato.com/v2
URL: /videos/from-templates
Method: POST
This endpoint creates a new visual (image or video) from a template. Templates define the structure and input parameters for generating visuals like slideshows, quote cards, tweet cards, and more.
You can provide input parameters manually, or use the optional prompt parameter to have AI automatically fill in the template inputs based on your description.
Field
Type
Required
Description
The ID of the template to use. Get available templates from the /v2/videos/templates endpoint.
Template-specific input parameters. Structure depends on the selected template. Can be an empty object {} if using the prompt parameter.
Optional natural language prompt to auto-fill template inputs using AI. When provided, AI interprets your description and fills in the inputs automatically. Any manually provided inputs take precedence over AI-generated values.
Whether to render the visual immediately. Default: true.
Save as draft without rendering. Default: false.
Getting Available Templates
To list all available templates and their input specifications:
Query Parameters:
Comma-separated list of fields to include. Use id,name,description,inputs to get full template details.
Optional regex term to filter templates by name or description.
Optional template ID to get a specific template.
Success Response
Status Code: 201 Created
Visual creation is scheduled on the queue. To check status, poll the Find Video endpoint.
Response Body:
Error Responses
Not Found
Status Code: 404 Not Found
Too Many Requests
Visual creation has a user-level rate limit of 1 request / minute.
Status Code: 429 Too many requests
1. Create a Visual Using AI Prompt (Recommended)
The easiest way to create visuals is using the prompt parameter. AI will interpret your description and fill in the template inputs automatically.
You can also specify inputs manually for full control:
3. Combine Prompt with Manual Overrides
You can use prompt for most inputs while manually specifying certain values:
In this example, AI fills in the slides content, but textPosition and textColor use your manual values.
Available Templates
Use the /v2/videos/templates endpoint to get the current list of templates. Common templates include:
Create slideshows from images with text overlays
Generate quote cards with stylized backgrounds
Create visual cards from tweet-style content
Step-by-step tutorial visuals
AI-generated story videos with narration
Merge multiple video clips
Templates use various input types:
Choice from predefined values
"top" | "center" | "bottom"
"https://example.com/image.jpg"
"https://example.com/video.mp4"
Troubleshooting
If you're having trouble generating a visual or it's taking too long, navigate to https://my.blotato.com/videos/<YOUR_VIDEO_ID> to view and manually edit it.
Polling for Status
After creating a visual, poll the Find Video endpoint to check its status:
Possible status values:
Queued - Waiting to be processed
Processing - Currently being generated
Failed - Generation failed