How the Claude API works — CCA-F Exam Prep

×
L1.170
REAL STORYA terminal window on a dark screen. A single curl command is typed out. Below: Claude's response in JSON. Elapsed time: 2 seconds.

You open a terminal.

You type one curl command with your API key, a model name, and a message. 2 seconds later, Claude responds. JSON in, JSON out.

That's it. The entire Claude API in one request. Everything else is just options.