It answers "how many users can the API take before it degrades" with a number, not a guess. The scenario is a JavaScript script (TypeScript also runs directly, with no build step but no type checking) with requests, pauses and pass criteria (thresholds), such as p95 under 500 ms and under 1% errors. If a threshold fails, the command exits with an error, which fits CI.
k6 is open source (AGPL-3.0 license) and maintained by Grafana Labs. It covers load, stress, spike and soak tests, has a browser module and supports extensions for other protocols. Running it on your machine is free; Grafana Cloud k6 has a free tier of 500 virtual user hours per month for cloud runs.
Two common traps. The machine generating load has limits too: if its CPU saturates, the result measures the generator, not the server. And never point it at production without agreeing with whoever runs it; test in staging with similar data. Use Hoppscotch to shape the request before writing the script.