Agents and beyond
API vs. the web interface
The web interface is the vendor's harness, the vendor's preamble, one human, one conversation. The API is your code sending the prompt and receiving the reply, with everything else up to you.
What the API gives you, and costs you
| You gain | You lose |
|---|---|
| Your own system prompt and tools | The vendor's safety rails and conveniences |
| Fixed output formats (JSON schemas) and lower creativity settings | The chat's memory, projects, and file handling |
| Ten thousand calls in a loop, batches, logging | Simplicity; you pay per token and own every failure |
| Deterministic code between steps, the pipeline pattern | Nothing else; this is the point |