The Hour of AI

Free, one-hour activities where students in every grade build something with AI and start to understand how it works.

New this year

Two new ways to Start Building

Grades 3-8

Quest Builder

Students make every piece of their own game: the images, the world and the code. They can draw images by hand or change anything AI makes until it fits, then play the game they built.

Grades 9-12

AI Makerspace

Built for high school. Each student builds a real web application of their own, around something they care about, with AI as a co-creator. No two applications end up the same, and students learn how to prompt and work with AI.

Set up your class with a free account

With a free CodeAI account, you can set up your class so students can save their work and keep building after the hour.

Find your starting point

Every activity takes about an hour and leaves students with something they made. Teachers, parents, librarians and community groups can all host an hour.

Grades 3-12

AI for Oceans

In this fun introduction to artificial intelligence, you train a real machine learning model to identify sea creatures and trash in the ocean.

Grades 2-12

Minecraft Adventurer

Learn the basics of computer science by programming Alex or Steve to move through a simulated piece of a Minecraft world.

Grades 2-12

Flappy Code

Create a game using basic block code in this introductory computer science activity.

Grades 2-12

Mix & Move with AI

Design a dancer, mix music, and choreograph a dance routine—all in one experience. Jump-start your coding with AI to amplify your creative power!

Grades 2-12

Minecraft: Voyage Aquatic

Build and explore with Minecraft! Use your creativity and problem solving skills to explore and build underwater worlds with code.

Grades 2-12

Code with Anna and Elsa

Join Anna and Elsa as they explore the magic and beauty of ice with code! Create snowflakes and patterns as you ice-skate and make a winter wonderland.

Grades 2-12

Music Lab: Jam Session

Remix tracks from artists like Sabrina Carpenter, Lady Gaga, and Shakira while exploring coding basics like sequencing, functions, and generating beats with AI.

Grades 3-8

Dance Party: AI Edition

Learn about artificial intelligence (AI) concepts to create your own virtual dance party showcasing today's top artists. With dozens of songs to choose from, reach every student no matter their music taste. It's time to strut your stuff!

Get ready to lead

Everything you need to run a great Hour of AI.

From the Teacher Toolkit and how-to guide to a free 30-minute prep module, these resources get you ready to lead.

Looking for posters, handouts, email templates and more?

Teacher Toolkit

A step-by-step plan, customizable slides, family and admin handouts, printable stickers and certificates, and free webinars, all in one place.

Elevate Your Hour of AI

A free 30-minute professional learning module from CodeAI and Microsoft. Short videos, knowledge checks and reflection get you ready to lead your class, and you earn the Hour of AI Educator credential when you finish.

How-to guide

Five steps to your Hour of AI, from picking an activity to celebrating with your class, plus tips for teachers, schools, organizations and hosts around the world.

Partner platforms

Hour of AI activities are also available on partner platforms, including Minecraft Education and Khan Academy, so students can explore AI wherever they already learn.

Get Hour of AI-ready in 30 minutes

Elevate Your Hour of AI is a free, 30-minute module from CodeAI and Microsoft on the Microsoft Elevate for Educators platform. Preview the activities, pick up facilitation tips, and earn your Hour of AI Educator credential.

Common questions

The Hour of AI is a collection of free, one-hour activities that give any student a first hands-on experience with AI. Activities cover every grade, from kindergarten through high school, and no prior experience is needed for teachers or students.

No. Hour of AI activities are built to be led by anyone: a classroom teacher, a librarian, a parent volunteer or a community facilitator. Activities are fully planned and guide you and your students through the hour.

Yes. CodeAI is against open, general-purpose AI access in schools. Hour of AI activities are built the opposite way: guided, scaffolded to the grade band and bound by the lesson, so students study how AI works in a controlled environment.

Each activity fits in one class period, roughly 45 to 60 minutes. Some offer extension options if you have more time.

Yes. Every Hour of AI activity is free for students and teachers. Most activities do not require an account, and a free CodeAI account lets students save their work and keep building after the hour.

Any time, anywhere in the world. The Hour of AI is available year-round. In the U.S., many schools participate during Computer Science Education Week in December.

The Hour of AI is a first step, not a full course. If your students are ready to go deeper, How AI Makes Decisions (grades K–5), AI Discoveries (grades 6–8) and AI Foundations (grades 9–12) build on what they started here.

From using AI to understanding it

AI is already part of students’ daily lives. In one guided hour, they start learning to understand, direct, question, and create with the technology shaping their world, using activities that are ready to run.

If your class has done the Hour of Code, the Hour of AI is the next step: the same one-hour format, now focused on AI.

Run it any time of year, wherever you are. In the U.S., many schools choose Computer Science Education Week in December. Pick an activity and Start Building.

250+
activities

Hands-on, one-hour activities for every grade level and learning context.

36.8M
learners

Took part in the Hour of AI in 2025–26.

155M+
students

Reached by CodeAI since 2013.

190
countries and territories

Where CodeAI has reached students since 2013.

2B
Hours of Code and Hours of AI

Served since 2013.

Thank you to our partners

The Hour of AI is made possible by companies, foundations and individuals who believe every student, in every zip code, deserves a first step into digital fluency.

Sign up for the Hour of AI

Get reminders and tips from other educators taking part, plus new activities as they launch.