If you create cartoon content, YouTube thumbnails, kids' educational videos, or any kind of visual assets, you've probably run into the same wall: AI image generators are either expensive, rate-limited, or watermark your output. In this tutorial, I'll show you how to set up a **completely free AI image generator** using Kaggle's GPU notebooks and Stable Diffusion XL — and how to generate images in **bulk batches** with just a list of prompts.
By the end of this guide, you'll have a reusable notebook where you can drop in 10, 20, or even 50 prompts, hit run, and walk away with a folder of finished images — zipped and ready to download.
Why Kaggle for AI Image Generation?
Most free AI image generator tools online limit you to a handful of images per day, strip out resolution, or require a subscription for anything beyond basic use. Running Stable Diffusion locally is an option, but it requires a powerful GPU — something most laptops simply don’t have.
Kaggle solves this elegantly. Every Kaggle account comes with free access to NVIDIA T4 GPUs, with roughly 30 hours of GPU time per week at no cost. That’s more than enough to generate hundreds of high-quality images weekly, especially if you’re working on a content calendar that needs a steady stream of visual assets.
The setup runs entirely in your browser through a Jupyter-style notebook. No installation on your computer, no driver issues, nothing to maintain.
What You’ll Need
A free Kaggle account (sign up at kaggle.com if you don't have one)
20
- About 15 minutes for initial setup
21
- A list of prompts for whatever images you want to create
22
23
That's it. No credit card, no API keys, no subscriptions.
Create a New Notebook with GPU Enabled
Once you're logged into Kaggle, head to the Notebooks section and create a new notebook. Before doing anything else, you need to enable GPU access:
1. Open the notebook settings panel (usually on the right side)
2. Under "Accelerator," select **GPU T4 x2** (or whichever T4 option is available)
3. Save the settings
This step is critical. Without enabling the GPU, the notebook will try to run everything on CPU, which would make image generation painfully slow — we're talking minutes per image instead of seconds.
Install the Required Libraries
The first cell in the notebook handles installing everything needed to run Stable Diffusion. This includes the Diffusers library (which handles the actual image generation pipeline), Transformers, Accelerate for performance optimization, and a few supporting packages.
42
43
This installation step typically takes under a minute. One thing worth knowing: Kaggle notebooks come pre-loaded with a lot of data science packages, and you might see some dependency warning messages during installation. These are harmless — they're conflicts between Kaggle's pre-installed packages and the new ones, but they don't affect the image generation pipeline at all.
Load the Image Generation Model
This is where the magic happens. The second cell loads the actual AI model — in this case, we're using Playground v2.5, a Stable Diffusion XL model known for producing vibrant, high-quality results that work well for both realistic and stylized/cartoon imagery.
The first time you run this cell, it will download the model files, which total a few gigabytes. This download happens once per session — if your notebook restarts, you'll need to run this cell again, but Kaggle often caches it for faster reloads.
A few optimizations are baked into this step that are worth understanding even if you're not technical:
Memory-efficient attention** allows the GPU to process images using less memory, which means you can generate larger images without running into "out of memory" errors.
VAE slicing and tiling** breaks the final image decoding step into smaller chunks. This is what allows you to run a long batch of images back-to-back without the GPU running out of room — a problem that commonly occurs when generating many images in sequence without this optimization.
Once this cell finishes, you'll see a confirmation message that the model is loaded and ready.
Set Up the Generator Function
The third cell defines a reusable function that handles the actual image creation process. Think of this as the "engine" — you won't need to touch this cell directly, but it's what powers everything that follows
This function takes care of several things automatically
Generating the image based on your prompt
- Applying a "negative prompt" — essentially a list of things you don't want in the image, like blurry results, distorted anatomy, or watermarks
- Saving each image with a unique filename based on the time it was created
Displaying the image directly in the notebook so you can preview it immediately
Cleaning up GPU memory after each image, which prevents crashes during long batch run
You only need to run this cell once per session.
Add Your Prompts and Generate in Bulk
This is the cell you'll actually edit every time you want new images. It contains a simple list where each entry has two parts: a name (used for the filename) and a prompt (the description of what you want generated).
or example, if you’re creating a set of cartoon animal images for a kids’ educational video, your list might include entries for a lion, an elephant, a rabbit, and so on — each with a detailed prompt describing the art style, the animal’s pose, expression, and background.
Download Everything as a ZIP File
Once your batch finishes, the final cell bundles every generated image into a single ZIP file and provides a direct download link right inside the notebook. Click the link, and the entire batch downloads to your computer in one go — no need to right-click and save each image individually.
With this setup, you now have access to a genuinely free, GPU-powered image generation pipeline that can produce dozens of images per session without any subscription costs or daily limits beyond Kaggle's generous weekly GPU allowance. Whether you're building out a content calendar for a YouTube channel, creating thumbnail assets, or just experimenting with AI art, this notebook gives you a solid, repeatable foundation.
If you found this tutorial helpful, check out our other guides on automating content creation workflows — including video editing automation, text-to-speech pipelines, and more.
Stop Writing Expressions Manually – Use This Free Script Instead
Are you tired of copying and pasting the same After Effects expressions over and over? Want to add professional animations like wiggle, pulse, and bounce effects without memorizing code? This free Expression Applier script gives you instant access to 18+ pre-built expressions with just one click.
Perfect for motion designers, video editors, and content creators who want to speed up their workflow and create stunning animations effortlessly.
What is the Expression Applier Script?
The Expression Applier is a free After Effects automation script that provides a library of commonly-used expressions. Instead of typing or copying code, you simply:
Select your layers
Choose an expression from the library
Click “Apply”
Done! ✅
Why You Need This Script
✅ Save Time – No more googling expressions or searching old projects ✅ No Coding Required – User-friendly interface for beginners ✅ 18+ Professional Effects – Wiggle, bounce, pulse, loop, and more ✅ Batch Apply – Add expressions to multiple layers at once ✅ Organized Categories – Position, Rotation, Scale, and Opacity tabs ✅ See Descriptions – Know what each expression does before applying
Ctrl/Cmd + D – Duplicate layer with expressions intact
Ctrl/Cmd + Shift + D – Split layer (expressions remain on both)
Frequently Asked Questions
Q: Does this work with After Effects 2024? A: Yes! Works with After Effects CC 2017 and all later versions including 2024.
Q: Can I use these expressions in commercial projects? A: Absolutely! These are standard After Effects expressions, free to use anywhere.
Q: Will expressions slow down my composition? A: Slightly, but modern computers handle these simple expressions easily. Audio reactive expressions are more intensive.
Q: Can I add my own expressions to the library? A: Yes! The script is customizable. Open the .jsx file and add to the expressionLibrary object following the same format.
Q: Do expressions export with my video? A: Yes! Expressions are “baked in” when you render. The animation becomes real keyframes in the final export.
Q: Can I remove an expression after applying? A: Yes. Select the layer, press E, then Alt/Opt+Click the stopwatch to remove it.
Q: What’s the difference between expressions and keyframes? A: Expressions are dynamic code that generates animation automatically. Keyframes are manual points you set. Expressions are easier for repetitive effects!
Q: Can I apply multiple expressions to one property? A: No, one expression per property. But you can apply different expressions to different properties (Position, Rotation, Scale, Opacity).
Q: Does “Follow Null” work with any null name? A: The default code looks for a null named “Controller”. You can edit the expression to use any null name.
Q: How do I make expressions loop a specific number of times? A: You’ll need to modify the expression code to add a time limit or counter. Check the “Pro Tips” section for examples.
Best Practices for Using Expressions
1. Name Your Layers Properly
Before applying expressions, use clear layer names:
❌ “Shape Layer 1”
✅ “Logo_Main”
This helps when expressions reference other layers.
2. Use Adjustment Layers for Global Effects
Apply expressions to adjustment layers to affect everything below:
Add wiggle to adjustment layer position = everything shakes
Add opacity flicker = entire composition flickers
3. PreCompose for Complex Setups
If you have many layers with expressions:
Select all layers
Right-click > Pre-compose
Apply expressions to the precomp Result: Easier to manage and faster performance
The Expression Applier script is a must-have tool for any After Effects user. Whether you’re a beginner learning expressions or a professional speeding up your workflow, having instant access to 18+ pre-built expressions saves countless hours.
Quick Summary:
✅ Free and easy to use – No coding required ✅ 18+ professional expressions – Position, Rotation, Scale, Opacity ✅ Apply to multiple layers – Batch processing saves time ✅ Organized interface – Tabbed categories with descriptions ✅ Customizable – Edit expressions after applying ✅ Works with all AE versions – CC 2017 and newer
What You Can Create:
🎬 Smooth floating animations
🔄 Perfect loading spinners
💓 Pulsing logos and text
🎵 Audio-reactive visualizers
✨ Glitch and flicker effects
🎯 Complex motion graphics
Stop wasting time searching for expressions online. Download the Expression Applier script today and speed up your After Effects workflow instantly!
Ready to supercharge your animations? Download the script above and start creating stunning effects in seconds!
Have questions or want more expressions added? Drop a comment below and let me know what effects you’d like to see!
Add Professional SRT Captions to Your Videos in Minutes
Are you struggling to add eye-catching captions to your videos? Whether you’re creating content for YouTube, Instagram, or TikTok, this free After Effects script makes it incredibly easy to import SRT files and create stunning animated captions that keep your audience engaged.
What is the Caption Creator?
The Caption Creator is a free After Effects script that automatically converts your SRT subtitle files into beautifully animated text layers. Perfect for:
Social media content creators
YouTube video editors
Punjabi language content
Music video producers
Educational content
Marketing videos
Key Features
✅ Automatic SRT Import – Drag and drop your subtitle file ✅ 5 Animation Styles – Fade, Pop, Slide, Bounce, and Zoom ✅ Auto-Scaling Text – Font size adjusts to fit your box perfectly ✅ Customizable Effects – Glow, shadow, and stroke options ✅ Single Container – Move all captions together easily ✅ Bold & Readable – Enhanced text styling for maximum visibility
How to Install the Script
Step 1: Download the Script
Copy the script code to a text editor
Save it as srtmaker.jsx
Place it in your After Effects Scripts folder:
Windows: C:\Program Files\Adobe\Adobe After Effects [version]\Support Files\Scripts
Mac: /Applications/Adobe After Effects [version]/Scripts
Step 2: Enable Scripts in After Effects
Open After Effects
Go to Edit > Preferences > Scripting & Expressions (Windows) or After Effects > Preferences > Scripting & Expressions (Mac)
Check Allow Scripts to Write Files and Access Network
Restart After Effects
How to Use: Step-by-Step Tutorial
Step 1: Prepare Your SRT File
First, you need an SRT subtitle file. Here’s what it should look like:
1
00:00:01,000 --> 00:00:03,500
this is my fist video
2
00:00:03,600 --> 00:00:06,000
watch till last
Pro Tip: You can generate SRT files using:
YouTube’s auto-caption feature
Subtitle editing software like Aegisub
Online SRT generators
AI transcription tools
Step 2: Create Your Composition
Open After Effects
Create a new composition (recommended: 1920×1080, 30fps)
Import your video footage
Make sure your composition is the active/selected item
Step 3: Run the Script
Go to File > Scripts > Run Script File
Select srtmaker.jsx
Browse and select your SRT file
The settings dialog will appear
Step 4: Configure Your Caption Settings
Box Position & Size
Position X, Y: Where the caption box appears on screen
Default: 960, 900 (bottom center for 1920×1080)
Adjust based on your composition size
Size W, H: Dimensions of the caption container
Default: 1600×400 (wide bottom banner)
Larger = more text fits
Text Styling
Text Color: Choose from Green, White, or Yellow
Green works great for most content
White for dark backgrounds
Yellow for high visibility
Padding: Space between text and box edges (default: 40px)
Auto-scale Font: Automatically adjusts text size to fit
Animation Options
Choose from 5 professional animations:
Fade – Classic smooth appearance (best for professional content)
Pop – Dynamic scale effect (great for energetic content)
Slide Up – Text slides from bottom (smooth and modern)
Bounce – Playful spring effect (perfect for fun content)
Zoom – Attention-grabbing zoom in (high-impact)
Visual Effects
Glow: Adds a vibrant glow around text (recommended: ON)
Shadow: Creates depth with drop shadow (recommended: ON)
Stroke: Black outline for better contrast (recommended: ON)
Step 5: Generate Captions
Click Create
Wait for the script to process (takes 5-30 seconds depending on caption count)
You’ll see a confirmation message with details
Customizing Your Captions
Moving Captions Around
The beauty of this script is that all captions are in one container:
Select the “Captions” precomp layer in your timeline
Press P to reveal Position
Drag or animate the position – all text moves together!
Adjusting Individual Captions
If you need to edit specific captions:
Double-click the “Captions” precomp in your Project panel
Find the caption layer you want to edit
Modify text, position, or timing as needed
Changing Colors After Creation
Select a text layer in the precomp
Open Character panel (Ctrl/Cmd + 6)
Click the fill color to change it
Use the Edit > Select All to change all at once
Pro Tips for Better Captions
1. Optimize Box Size for Your Video Format
YouTube/Horizontal Videos: 1600×400 at bottom
Instagram Stories/TikTok: 800×600 centered
Square Videos: 1000×500 at bottom third
2. Choose the Right Animation
Tutorial/Educational: Fade (professional, not distracting)
Music Videos: Pop or Bounce (energetic, matches beat)
Vlogs: Slide Up (modern, smooth)
Promotional: Zoom (attention-grabbing)
3. Font Size Matters
The script auto-scales, but you can adjust box dimensions to control text size:
Larger box = smaller text (more words fit)
Smaller box = larger text (fewer words, more impact)
4. Contrast is Key
Use White text on dark videos
Use darker colors on bright videos
Always keep Stroke ON for maximum readability
5. Position Strategy
Common positioning:
Bottom 10%: Standard for most content
Top 20%: When showing products/faces at bottom
Center: For dramatic effect or lyrics
Troubleshooting Common Issues
“No composition found” Error
Solution: Make sure you have a composition open and selected before running the script.
Captions Don’t Appear
Solution:
Check if the layer is below your footage (move it to top)
Verify the timing matches your SRT file
Check if the precomp is visible and not hidden
Text is Too Small/Large
Solution:
Adjust the box Width and Height settings
Turn OFF auto-scale and manually set font size in the precomp
Modify padding to give text more room
Script Won’t Run
Solution:
Enable “Allow Scripts to Write Files” in Preferences
Make sure the script file has .jsx extension
Try restarting After Effects
Captions Overlap
Solution: The script automatically adds 1 frame gap. If still overlapping:
i will approve the access when you send the request.
SEO Keywords Covered
This tutorial covers: After Effects captions, SRT to After Effects, Punjabi subtitles, animated captions, video caption script, social media captions, YouTube subtitles, subtitle animation, After Effects automation, free caption tool, video editing tutorial, subtitle effects, caption creator, automatic subtitles.
Conclusion
The Punjabi Caption Creator script is a game-changer for video editors working with subtitle files. In just a few clicks, you can transform plain SRT files into stunning, animated captions that boost engagement and accessibility.
Quick Recap:
✅ Install the script in After Effects
✅ Prepare your SRT file
✅ Run the script and configure settings
✅ Generate professional captions instantly
✅ Customize and export your video
Ready to create stunning captions? Download the script and start making your videos more engaging today!
FAQ
Q: Does this work with other languages besides Punjabi? A: Yes! This script works with any language supported by After Effects, including English, Hindi, Urdu, and more.
Q: Can I use this for commercial projects? A: Absolutely! This script is free to use for both personal and commercial projects.
Q: What version of After Effects do I need? A: The script works with After Effects CC 2017 and later versions.
Q: Can I change the animation after creating captions? A: Yes, you can modify animations by opening the precomp and adjusting keyframes manually.
Q: How many captions can this handle? A: The script can handle hundreds of captions. Processing time increases with more captions but typically stays under 1 minute.
Have questions or suggestions? Leave a comment below! Don’t forget to share this tutorial if it helped you create amazing captions.