Prompting concept illustration

Prompting

Prompt engineering

The craft of writing prompts that reliably get the output you want. Good prompts cut errors, retries, and therefore cost.

In practice

Adding "answer in JSON with keys name and price" stops the model from rambling.

Related terms

See what your tokens really cost

Track usage and spend across every model and platform, free.

Image: Aedrian Salazar on Pexels. Definition free to reuse under CC BY 4.0.