Skip to content
AgenticAIWiki

← Chapter 1. Engineering prerequisites for AI apps

One request, three ways

POST /v1/messages200 + JSONanswerYour codeblocking callModel APIabout 2 s per replyUserwaiting…Blocking: the program does nothing while it waits.

Swipe to change step

Step 1 of 8. A blocking call sends one request and waits. For about 2 seconds the model generates tokens and your program sits idle. Your code (blocking call), highlighted. Model API (about 2 s per reply), highlighted. User (waiting…). arrow from Your code to Model API, labelled POST /v1/messages. arrow from Model API to Your code, labelled 200 + JSON. arrow from Your code to User, labelled answer. a request moving along POST /v1/messages.

Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.