GPT-4 Vision and Next.js Tutorial - Create Your Own AI Coding Bot

Sam Meech-Ward November 29, 2023
Video Thumbnail
Sam Meech-Ward Logo

Sam Meech-Ward

@sammeechward

About

I make things with code and I teach other people how to do the same. I created this channel to share some of my creations and teach people about programming and making.

Video Description

I'll guide you step-by-step on how to create your own AI coding bot using GPT-4 Vision and Next.js. This is everything you need to know to get started making your own custom gpt 4 apps with next.js and HTTP streaming. Next two videos that build ontop of this: 1. Easiest Database Setup in Next.js 14 with Turso & Drizzle: https://youtu.be/4ZhtoOFKFP8 2. Kinde: The Best Auth Solution Next.js 14: https://youtu.be/sjcLxYbw5BQ Upload image to S3: https://youtu.be/t-lhgq7Nfpc Networking in React: https://youtu.be/Mokoo0mVEAU Code: https://github.com/meech-ward/code-gpt-example/tree/part1 Join this channel to help me out and get early access to some videos: https://www.youtube.com/channel/UC6aTLuI_j4-0wiDSzmaPctQ/join Chapters: 0:00​ Intro 1:59 POST to Server 4:06 Setup OpenAI 6:14 Streaming 13:15 Markdown Parsing 17:35 Prompt Engineering 19:59 Edge Runtime 20:48 GPT Vision Image URL 24:45 Stop streaming 29:13 Summary Reference Links: https://nextjs.org/docs/app/building-your-application/routing/route-handlers#streaming https://vercel.com/ai https://sdk.vercel.ai/docs/concepts/prompt-engineering https://tailwindcss.com/docs/typography-plugin https://vercel.com/docs/functions/serverless-functions/runtimes#streaming My Website: https://www.sammeechward.com Instagram: https://www.instagram.com/meech_ward Twitter: https://twitter.com/Meech_Ward Github: https://github.com/orgs/Sam-Meech-Ward

You May Also Like

AI Coding Must-Haves

AI-recommended products based on this video

Loading...
Pishengfa DIY Stitch Book, Embroidery Stitch Book, DIY Sewing Books, EmbroideryS Books of Stitches, with 86/128 Sewing Tips for Beginners, Unique Embroidery Handmade Gifts (Grey)

Pishengfa DIY Stitch Book, Embroidery Stitch Book, DIY Sewing Books, EmbroideryS Books of Stitches, with 86/128 Sewing Tips for Beginners, Unique Embroidery Handmade Gifts (Grey)

(0)
$29.99
$6.99 delivery Dec 23, 2025 - Jan 2, 2026
700+ bought in past month
Loading...
ARZOPA Portable Monitor, 16.1" FHD 1080P Kickstand 100% sRGB High Color Gamut Portable Laptop Monitor IPS Eye Care Screen for High-end Office & Entertainment - Z1C

ARZOPA Portable Monitor, 16.1" FHD 1080P Kickstand 100% sRGB High Color Gamut Portable Laptop Monitor IPS Eye Care Screen for High-end Office & Entertainment - Z1C

(2,728)
$129.99
FREE delivery Tue, Aug 12
100+ bought in past month
Loading...
Acer Nitro V 16 AI Gaming Laptop, 16" WUXGA 180Hz Display, AMD Ryzen 5 240, GeForce RTX 5050, 16GB DDR5, 512GB SSD, Backlit Keyboard, Copilot, Wi-Fi 6E, Win 11, Black, 1TB Docking Station Set

Acer Nitro V 16 AI Gaming Laptop, 16" WUXGA 180Hz Display, AMD Ryzen 5 240, GeForce RTX 5050, 16GB DDR5, 512GB SSD, Backlit Keyboard, Copilot, Wi-Fi 6E, Win 11, Black, 1TB Docking Station Set

(40)
$1,399.00
FREE delivery Feb 24 - Mar 5
Loading...
8000mAh Hand Warmers Rechargeable 2 Pack, AI Smart Chip Long Safe Heat, Quick Charge Electric Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

8000mAh Hand Warmers Rechargeable 2 Pack, AI Smart Chip Long Safe Heat, Quick Charge Electric Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

(9)
$20.99
FREE delivery Sat, Jun 14 on your first order
Loading...
Hand Warmers Rechargeable 2 Pack, AI Smart Chip 20Hrs Long Safe Heat, 2s Fast Heating Up to 140℉, Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

Hand Warmers Rechargeable 2 Pack, AI Smart Chip 20Hrs Long Safe Heat, 2s Fast Heating Up to 140℉, Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

(6)
$20.29
FREE delivery Sat, Jun 14 on your first order
Loading...
Flotstiga AI Hand Warmers Rechargeable 2 Pack,6000mAh Electric Hand Warmers,AI Smart Chips 20Hrs Long Safe Heat Pocket Size Heater Great Warm,Gifts for Christmas, Golf, Hunting, Camping Accessories

Flotstiga AI Hand Warmers Rechargeable 2 Pack,6000mAh Electric Hand Warmers,AI Smart Chips 20Hrs Long Safe Heat Pocket Size Heater Great Warm,Gifts for Christmas, Golf, Hunting, Camping Accessories

(29)
$18.99
FREE delivery Sat, Jun 14 on your first order
Loading...
NuGrain Wood Repair Kit, Professional Floor Scratch Repair- Restores Scratch, Covers Nicks, Marks, Minor Defects,Restore a Finish for Wood (1pcs)

NuGrain Wood Repair Kit, Professional Floor Scratch Repair- Restores Scratch, Covers Nicks, Marks, Minor Defects,Restore a Finish for Wood (1pcs)

(0)
$9.02
$3.99 delivery Jan 19 - Feb 6
Loading...
Nail Polish Pens - 5.46*5.39inch Gel Nail Pens Kit, Nails Art Markers Doodle Pen, Professional Nails Art Markers, Naiil-Art Tools For Polishing, Graffitii Dotting Arts Tools For Kids Girl Adults Begin

Nail Polish Pens - 5.46*5.39inch Gel Nail Pens Kit, Nails Art Markers Doodle Pen, Professional Nails Art Markers, Naiil-Art Tools For Polishing, Graffitii Dotting Arts Tools For Kids Girl Adults Begin

(0)
$14.69
$6.94 delivery Dec 30 - 31
Loading...
12 Colors Nail Art Pens Set - Professional Nail Art Markers for 3D DIY Design, Quick Dry Nail Polish Pens for Painting, Dotting & Fine Liner - Precision Tip Nail Tools for Adults & Beginners

12 Colors Nail Art Pens Set - Professional Nail Art Markers for 3D DIY Design, Quick Dry Nail Polish Pens for Painting, Dotting & Fine Liner - Precision Tip Nail Tools for Adults & Beginners

(10)
$12.98
FREE delivery Sat, Jan 31 on your first order
300+ bought in past month
Loading...
8000mAh Hand Warmers Rechargeable 2 Pack, AI Smart Chip Long Safe Heat, Quick Charge Electric Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

8000mAh Hand Warmers Rechargeable 2 Pack, AI Smart Chip Long Safe Heat, Quick Charge Electric Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

(9)
$20.99
FREE delivery Sat, Jun 14 on your first order
Loading...
Hand Warmers Rechargeable 2 Pack, AI Smart Chip 20Hrs Long Safe Heat, 2s Fast Heating Up to 140℉, Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

Hand Warmers Rechargeable 2 Pack, AI Smart Chip 20Hrs Long Safe Heat, 2s Fast Heating Up to 140℉, Portable Pocket Heater, Warm Gifts for Christmas, Outdoor, Golf, Hunting, Camping Accessories

(6)
$20.29
FREE delivery Sat, Jun 14 on your first order
Loading...
SAIKATI Smart Watch for Men Women Bluetooth Call, 1.85" HD Touch Screen AI Voice Smartwatch, Fitness Tracker with Sleep/Heart Rate Monitor, 100+ Sports Modes, IP68 Waterproof, Compatible with Android & iOS

SAIKATI Smart Watch for Men Women Bluetooth Call, 1.85" HD Touch Screen AI Voice Smartwatch, Fitness Tracker with Sleep/Heart Rate Monitor, 100+ Sports Modes, IP68 Waterproof, Compatible with Android & iOS

(787)
$49.99
FREE delivery Thu, Sep 4
1K+ bought in past month
Loading...
SAIKATI Smart Watch for Men Women Bluetooth Call, 1.85" HD Touch Screen AI Voice Smartwatch, Fitness Tracker with Sleep/Heart Rate Monitor, 100+ Sports Modes, IP68 Waterproof, Compatible with Android & iOS

SAIKATI Smart Watch for Men Women Bluetooth Call, 1.85" HD Touch Screen AI Voice Smartwatch, Fitness Tracker with Sleep/Heart Rate Monitor, 100+ Sports Modes, IP68 Waterproof, Compatible with Android & iOS

(141)
$39.99
FREE delivery Jul 2 - 3
500+ bought in past month
Loading...
Asus ROG Swift 32” 4K OLED Gaming Monitor (PG32UCDP) - WOLED, Dual Mode (4K 240Hz, FHD 480Hz), 0.03ms, G-SYNC Compatible, Custom Heatsink, AI Gaming, 99% DCI-P3,True 10-bit, USB-C 90W, 3yr Warranty

Asus ROG Swift 32” 4K OLED Gaming Monitor (PG32UCDP) - WOLED, Dual Mode (4K 240Hz, FHD 480Hz), 0.03ms, G-SYNC Compatible, Custom Heatsink, AI Gaming, 99% DCI-P3,True 10-bit, USB-C 90W, 3yr Warranty

(192)
$1,399.99
FREE delivery Sat, Jan 3
50+ bought in past month
Loading...
Asus ROG Strix 27” 4K HDR USB-C Gaming Monitor (XG27UCG) – UHD (3840x2160) Dual Mode (4K 160Hz or FHD 320Hz), 1ms, Fast IPS, Extreme Low Motion Blur Sync, G-SYNC Compatible, AI Gaming, 3yr Warranty

Asus ROG Strix 27” 4K HDR USB-C Gaming Monitor (XG27UCG) – UHD (3840x2160) Dual Mode (4K 160Hz or FHD 320Hz), 1ms, Fast IPS, Extreme Low Motion Blur Sync, G-SYNC Compatible, AI Gaming, 3yr Warranty

(102)
$499.99
FREE delivery Jan 10 - Feb 21
Loading...
Tablet Latest Android Tablets with 10 Inch Incell Display, 24GB+256GB ROM /2TB TF, Gemini AI, T606 Octa-Core 8MP Camera Tablette Android, Widevine L1, 2 in 1 Tablets with Keyboard Mouse Stylus

Tablet Latest Android Tablets with 10 Inch Incell Display, 24GB+256GB ROM /2TB TF, Gemini AI, T606 Octa-Core 8MP Camera Tablette Android, Widevine L1, 2 in 1 Tablets with Keyboard Mouse Stylus

(241)
$149.99
FREE delivery Wed, Aug 27
100+ bought in past month