#api
7 tutorials, projects and news items tagged api.
Google has released Gemini 4 Hydrogen to replace Gemini 3.8 Flash. Its overall score is slightly above Argon, it runs about 2.5 times faster, and it has a free tier in AI Studio and the Gemini API, with paid use at $1.50 per million input tokens. We cover the benchmarks, pricing, where to use it, how to migrate from older models, and a prompt you can give your AI agent to switch models for you.
Google's Gemini Decisions API and the new Gemini Decision 1 model handle closed questions: yes or no, pick one, or score on a scale. Up to 1000 questions per request, about 0.2 seconds per response, and free output. Useful for choosing tools for an AI agent, routing requests, and running safety checks. Includes a prompt you can hand to your AI agent to try it.
Subscription quota often beats pay-per-use API calls by several times. Give your own non-urgent, one-off back-office jobs to your AI agent, and use the API only for features that serve users live at high volume. Includes four questions to decide and the limits you must not cross.
Developer advanced tutorial: how function calling lets large models use tools, the three things you need to prepare, and what to watch for with errors, state and security when using tools.
Use when the user wants answers to AI agent learning questions that come from CWYZ course content and include sources. Calls the CWYZ Q&A API with an API Key: it first classifies the question, then finds answers in the matching site sections and returns source links. Free accounts get 1 question per day, members get 30 per day. Use case: Let your agent ask CWYZ questions directly and get answers based on course content, with source links.
An experience piece (members only): for occasional use (chat, copywriting, code edits), an API is cheaper; for high-frequency batch work (daily transcription, classification, processing large volumes of material, fixed workflows), running locally may pay off. The core dividing line is monthly token consumption, plus whether the task needs top-tier model quality. The article works out the numbers and the hidden costs on both sides for you.
Use when a user wants an AI agent to connect to Home Assistant, check device and sensor status, or control lights, switches, and scenes. Connects via Home Assistant's built-in REST API using a long-lived access token, verifies the connection first, then reads and controls devices. Security-sensitive actions such as door locks and alarms must always be confirmed with the user first. Use case: Connect your AI agent to Home Assistant to view and control your smart home.
