EN
Lesson 4.4Pro - Part of Agentic School Pro

Building Your Own AI Tools with APIs

Build custom AI tools on top of model APIs, including image-to-structured-data workflows, instead of buying SaaS

28 min•Automation and Agentic Systems•Available

What you learn

  • Calling Gemini and Claude APIs directly, including the free Gemini tier
  • Forcing structured JSON output so a model response becomes a database record
  • Two founder case studies: invoice assignment and Swiss trading cards, photo in, record out

Summary

The biggest shift in building software is this: when the tool you need does not exist, you build it the same afternoon. Model APIs let you call an LLM from your own code, with your own prompt, and - crucially - get structured data back instead of a wall of prose. Once a model can reliably turn an image or a document into a clean JSON record, a whole class of manual data-entry work disappears. This lesson teaches the direct API call, the structured-output trick that makes the response usable, and two real tools the founder of this school built from exactly these pieces.

What you will learn

You will learn to call Gemini and Claude directly with a minimal fetch request, to force the model to return JSON matching a schema so the output drops straight into a database, to use vision so a photo becomes structured data, and to recognise when building a small internal tool beats paying for SaaS. The two founder case studies make it concrete: photo of an invoice in, assigned record out; photo of a trading card in, catalogued record out.

Prerequisites

Courses 1 to 3. You need the model-selection lesson from Course 1 (tool cost depends entirely on which model you call), the secrets discipline from Course 3 (the API key never touches client code), and a database to write into - Convex from Course 3 is perfect. The Fundamentals page on what an API is covers the request basics if you need them.

The problem

Businesses pay monthly for SaaS tools that do one narrow thing - read receipts, tag images, extract fields from PDFs - and still do not quite fit their workflow. Meanwhile the same job is a single API call away. The blocker has never been capability; it is that people do not realise how little code stands between "I have a photo of an invoice" and "the invoice is in my accounting system, assigned to the right project". This lesson removes that blocker by showing the whole path end to end.

Unlocking your Pro lesson

Comments

Loading comments.

Post a comment
CommentsNext
Next step

Ready to put AI to work as a real workflow?

Start with the foundations course, keep your progress locally and sync everything to your free account whenever you like.