C.W.K.
Stream
← C.W.K. Quests

Gemini Forge Quest

Updated: 2026-05-04

Forge production Gemini adapters with the current Google GenAI stack

Learn Gemini end-to-end: model family, pricing, the Python and TypeScript SDKs, streaming, function calling, multimodal, OAuth + raw HTTP, and production adapter patterns. Built around the current google-genai stack and the same patterns Pippa runs in cwkPippa.

8 tracks · 35 lessons · ~32h · difficulty: beginner-to-advanced

Level 0Spark
0 XP0/35 lessons0/10 achievements
0/140 XP to next level140 XP to go0% complete
Gemini Forge takes you from "I have an API key" to "I'm running a production Gemini adapter with fallback chains, cost routing, and OAuth." Every track is built around the current google-genai SDK (Python and TypeScript), the live Gemini 2.5 model family, and the production patterns Pippa uses in her own backend. You'll port code off the EOL legacy SDKs, write streaming proxies, build agentic tool loops, handle multimodal inputs, hit the OAuth Cloud Code Assist endpoint by hand, and design adapters that swap models without changing app code. Eight tracks, 35 lessons, every code block runnable, every Korean lesson directly authored — not translated.

Tracks

  1. 01📡Gemini API Fundamentals

    0/6 lessons

    Models, pricing, auth, the generateContent shape, generation knobs

    Everything you need to talk to Gemini intelligently before you write a single line of SDK code. The current model lineup, the pricing math that decides whether your app survives, the three auth paths, the request and response shapes, and the safety + thinking knobs that change every reply.

    Lesson list (6)Quiz · 4 questions
  2. 02🐍Python SDK (google-genai)

    0/5 lessons

    Install, generate, stream, chat, migrate from the EOL package

    The Python SDK is google-genai (replaces EOL google-generativeai). Five lessons take you from install to async streaming chat to a clean migration off the legacy package.

    Lesson list (5)Quiz · 4 questions
  3. 03📘TypeScript / JavaScript SDK

    0/4 lessons

    @google/genai, the .text-not-text() trap, multimodal helpers

    Same surface as Python, with TypeScript ergonomics. Cover the legacy → new migration (the .text() → .text bug catches everyone), multimodal content builders, and ApiError handling that survives module reload.

    Lesson list (4)Quiz · 4 questions
  4. 04Streaming & Real-Time

    0/4 lessons

    SSE wire format, Python and TS streams, FastAPI proxy

    Streaming buys you time-to-first-token, not faster generation. Learn the SSE wire format, both SDK streaming surfaces, and the FastAPI proxy pattern Pippa runs to forward Gemini streams to the browser.

    Lesson list (4)Quiz · 4 questions
  5. 05🔧Function Calling / Tool Use

    0/4 lessons

    Tool declarations, modes, multi-turn loops, auto calling

    The agentic loop in 12 lines. Learn how to declare tools the model picks correctly, how to handle the call/response wire format, the multi-turn tool loop, and Python's auto-calling shortcut.

    Lesson list (4)Quiz · 4 questions
  6. 06👁️Multimodal & Features

    0/4 lessons

    Image, video, audio, JSON mode, caching, image gen, PDFs

    One model, many modalities. Master inline-bytes vs File API uploads, the structured-output schema enforcement that beats prompt engineering, the 90%-discount caching pattern, and image generation through gemini-3-pro-image-preview.

    Lesson list (4)Quiz · 4 questions
  7. 07🔌Raw HTTP & OAuth Adapter

    0/4 lessons

    Both auth paths, token refresh, dual adapter, raw tool loop

    Beyond the SDK: hit Gemini directly via raw HTTP and OAuth. Learn the Cloud Code Assist endpoint, the loadCodeAssist preflight, the dual API-key + OAuth adapter with sticky fallback, and the agentic tool loop without an SDK.

    Lesson list (4)Quiz · 4 questions
  8. 08🏗️Production Patterns

    0/4 lessons

    Adapter pattern, cost routing, rate limits, token tracking

    Ship Gemini for real. The adapter pattern that lets you swap providers, smart cost routing that cuts bills 70-90%, exponential backoff with jitter for 429s, multi-tier fallback chains, token tracking, and OpenAI ↔ Gemini message translation.

    Lesson list (4)Quiz · 4 questions
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.