# API requests and responses — Claude API / OpenAI API Basics

Source: https://www.geekswithgeeks.com/en/llm-apis/llm-apis-01

> Apply API requests and responses with clear evidence.

## Understand API requests and responses

For **API requests and responses**, begin with the problem it solves. Identify the inputs, constraints, and observable outcome before choosing an implementation.

## See the workflow

Use this path while practising **API requests and responses**: understand, act, verify, and improve.

![Workflow for API requests and responses.](assets/figures/llm-apis/section-1-map.svg) — Figure 1.1 — A repeatable workflow.

## A useful comparison

**API requests and responses** is like a route plan: it keeps each step connected to a destination.

Check your reasoning.

**Quiz:** What is the best first step for API requests and responses?

- [x] Define the goal and constraints.
- [ ] Copy an unverified example.
- [ ] Skip measurement.

*Answer:* Define the goal and constraints.. A clear goal and constraints make decisions reviewable.
