Watercolor: laptop terminal glowing with a golden line of AI response, notebook with token beads, tea cup, and sticky note with checkmark on desk

Day 1 Exercise: Run Your First API Code

This is the Day 1 companion exercise for the AI Path L1→L2 Upgrade Guide. Read Part 1 first, then come back here to practice. Today we do exactly one thing: run the hello_api.py from Part 1 and see AI reply in your terminal. Prerequisites Complete these steps from Part 1 (skip if already done): Register a DeepSeek developer account (Part 1, “Register for API Accounts”) Get your API Key and save it to a .env file (Part 1, “API Key Safety”) Install uv and Python 3.12 (Part 1, “Install Python”) Create a virtual environment and install dependencies (Part 1, “Create a Virtual Environment”) Confirm your project directory looks like this: ...

2026-06-02 · 3 min · Alex Wang
Watercolor: chat bubbles dissolving into a token stream flowing into a notebook and brass key on a desk

AI Path L1→L2 Upgrade Guide (1): Your First API Call

TL;DR: This is Part 1 of the “AI Path L1→L2 Upgrade Guide” series. Four parts total, one per week of practice. This article takes you from chat windows to APIs—automating your AI interactions through code, laying the foundation for batch processing and autonomous task-execution AI. Introduction: From “I Ask AI” to “Programs Ask AI” If you finished the L0→L1 graduation checklist, you might remember one line from the graduation post: “Register for an API account and use Python to print your first AI reply.” Today is that day. ...

2026-06-01 · 12 min · Alex Wang