Anthropic put out a job ad in 2023 for a "Prompt Engineer and Librarian" role that came with a salary range of $175,000-$335,000.[1] It went viral and drew equal measures of fascination and scepticism.
The salary range was startling for what appeared to be a job that involved writing instructions to a chatbot and that drew fascination.
Critics who doubted whether prompt engineering was a real discipline or just an artefact of a transitional phase in AI development that would fade away as models got better led to scepticism.
Both reactions were partially right. Prompt engineering is a real and consequential skill in the current moment of AI deployment.
An ad hoc talk with a large language model differs from a system prompt built with care that includes examples, guardrails and rules for structured output by as much as the difference between a product that works reliably and one that fails in ways that are hard to predict.
At the same time, the most sceptical critics have a point. Model improvements are really automating parts of prompt engineering that need manually crafting better phrasing and how the role will go over the long term is uncertain in ways that most in-demand technical skills are not.
This article gives an honest account of what prompt engineers really do, which parts of the job description are substantive and which are marketing, what the real salary market is (not the top of the range that viral posts cite). It also covers who actually hires for this role, the technical depth that top practitioners bring to the job and the unresolved question of whether prompt engineering is a lasting career or a temporary specialism.
"The most important skill in prompt engineering is not knowing the perfect phrasing - it is knowing how to systematically test what works and why."
Common observation in applied AI circles
Key Definitions
Large language model (LLM). This is a neural network trained on large text datasets that can produce text, answer questions, summarize documents, write code and handle many other language tasks. GPT-4, Claude, Gemini and Llama are examples.
System prompt. This is what goes to an LLM before any user conversation starts and most often does not appear to the end user. The system prompt sets up the model's persona, rules, output format and behavioral guidelines for an app and designing it is the base skill of prompt engineering.
Few-shot prompting. This is a prompting method that puts examples of desired input-output pairs into the prompt. The model learns the pattern to follow by demonstration instead of being told what to do and is more reliable than zero-shot instruction for complex tasks.
Chain-of-thought prompting. This is a method that makes the model go through its reasoning step-by-step before giving the final answer and this keeps improving performance on hard reasoning tasks. It was introduced by Wei et al. at Google in 2022 and is now a standard technique.
Retrieval-augmented generation (RAG). This is an architecture that brings together an LLM with a retrieval system so the model can get hold of relevant documents or data at query time instead of drawing only on what was in its training data. How the prompts are engineered is a big part of designing an RAG system.
Hallucination: A phenomenon where an LLM generates factually incorrect information with apparent confidence. Managing hallucination risk through prompt design and evaluation is one of the most important functions of a prompt engineer in production systems.
Token. This is the smallest unit of text that LLMs handle. It is roughly 4 characters or 0.75 words in English. How tokens are used matters practically for controlling API costs as well as the limits of the context window.
Context window: The maximum amount of text (measured in tokens) that an LLM can process in a single interaction. Context window management (deciding what information to include and how to prioritise it) is a key prompt engineering skill for complex applications.
Prompt Engineer Salary by Employer Type (US, 2024)
| Employer Type | Role Title | Total Compensation |
|---|---|---|
| AI model companies (Anthropic, OpenAI, Cohere) | Prompt Engineer / AI Safety Researcher | $175,000-$335,000 |
| Large tech companies (Google, Microsoft, Meta) | Applied AI Specialist / LLM Application Developer | $130,000-$220,000 |
| AI-native startups | AI Product Engineer / Prompt Specialist | $100,000-$180,000 |
| Consulting firms (Accenture, Deloitte, McKinsey) | AI Consultant / AI Implementation Specialist | $90,000-$150,000 |
| Enterprise organisations (healthcare, finance, legal) | AI Operations Analyst / AI Content Specialist | $70,000-$120,000 |
| Freelance / contract | Prompt Engineer (specialist domains) | $30-$200/hour |
The $175,000-$335,000 range represents the very top of the market.[8] Glassdoor 2024 data shows the US median for roles explicitly titled "prompt engineer" at approximately $85,000-$110,000, with most roles sitting in enterprise and consulting contexts rather than AI company contexts.
Of the fastest-growing job titles by posting volume in the US, "prompt engineer" appears in LinkedIn's 2024 Emerging Jobs report. There was a 50% year-over-year rise in dedicated postings though there are still few pure prompt engineering roles compared with adjacent AI engineering roles.[9]
What a Prompt Engineer Actually Does
The role is sufficiently new and varied that a clear, universal job description does not exist. But the core activities that appear across prompt engineering roles can be grouped into several categories.
System Prompt Design and Iteration
Designing the system prompts that govern how an AI application behaves is the most basic job.
A system prompt for a customer service chatbot might set out the company's tone of voice, which products the model may and may not talk about, how to deal with complaints, what to say when the answer is unknown and the format of the replies.
Clinical terminology standards, privacy rules, how to deal with uncertainty and what escalation procedures to use would be among the specifications in a system prompt for a medical documentation assistant.
This goes beyond simple writing. It is a kind of specification work. When a system prompt is not well designed, the AI application that comes out behaves inconsistently, gives confident hallucinations, turns down reasonable requests or fails to enforce important constraints.
Prompt engineers put their prompts through the iteration process by testing them against large and varied input sets that include adversarial inputs, edge cases, unusual phrasings and multilingual queries. The cycle follows software testing method more closely than creative writing does.
White et al. (2023) brought out prompt patterns as reusable structural templates like software design patterns to handle common prompt engineering challenges.[10] These include the Persona pattern that gives the model a set role and expertise level, Question Refinement that tells the model to refine the user's question before answering and Cognitive Verifier that instructs the model to break down a complex question into sub-questions before generating a final answer.
The cataloguing of such patterns is moving prompt engineering toward a more systematic engineering discipline.[14]
Evaluation Framework Development
One of the most underappreciated aspects of prompt engineering is building the systems used to evaluate whether prompts are working. Human evaluation of LLM outputs does not scale: if a model processes thousands of queries per day, a person cannot review each response.
Evaluation systems consisting of test cases, automated scoring rules and human rating protocols that allow systematic measurement of output quality are built by prompt engineers.
Designing evaluation is technically challenging. How do you define what makes a correct answer to an open-ended question? How do you measure consistency across different paraphrases of the same query? How do you spot subtle failures in following instructions?
The quality of an evaluation framework directly determines how much reliable signal the prompt engineer has to work with during iteration.[5]
LLM-as-judge has become a practical method. It uses a capable LLM (most often a larger or more capable model than the one being evaluated) to judge how well outputs meet set criteria.
Research has backed up this approach (Zheng et al., 2023 in the MT-Bench evaluation paper) that shows strong correlation between LLM judgments and human expert ratings on many tasks though systematic biases like position bias and preference for verbosity need to be handled with care.[12]
This technique allows evaluation to scale in ways that human review cannot.
RAG System Design and Optimisation
Many enterprise AI applications use retrieval-augmented generation: the LLM is connected to a knowledge base of documents, and at query time, relevant passages are retrieved and included in the prompt context.
The performance of these systems depends heavily on prompt design decisions: how retrieved documents are formatted for inclusion, how the model is instructed to use versus override retrieved information, how uncertainty and contradictions in retrieved content are handled.
Lewis et al. (2020) developed the RAG framework and showed that linking LLM responses to retrieved documents sharply cut hallucination rates and raised factual accuracy on knowledge-intensive tasks.[4]
Later studies have found that the retrieval component covers vector embedding quality, chunking strategy and reranking and the generation component means prompt design for bringing in the retrieved context. Both need expert attention and any failure in either one brings down the quality of the whole system.
Substantive technical work that requires knowledge of both how LLMs behave and how the retrieval system is built goes into this. Close collaboration happens between prompt engineers on RAG systems and ML engineers who build the retrieval parts.
Red Teaming and Safety Testing
Adversarial testing takes up much of what prompt engineers at AI companies and big enterprise users do. They design prompts meant to get past safety measures, look for jailbreak patterns and test how well guardrails hold up.
Red teaming results go straight into better system prompt design as well as model training and safety research for AI companies. Creativity, methodical thinking and a willingness to systematically look at uncomfortable edge cases are needed for this work.
Prompt injection (a class of attacks where malicious content in user input or retrieved documents attempts to override the system prompt's instructions) has emerged as a particularly important security concern for enterprise AI systems.[13]
When a user types "Ignore previous instructions and..." a customer-facing chatbot that lets its system prompt be overridden becomes a security vulnerability. Defensive designs that prompt engineers build make system prompts more resistant to injection but there is no method that gives full protection right now.
Documentation and Knowledge Management
Organizations that put AI systems into production at scale need a prompt library as a major knowledge resource and that is the operational need the "Librarian" role addresses in Anthropic's 2023 job ad. Version-controlled prompt libraries are maintained by prompt engineers along with rules for structuring and testing prompts and training new colleagues who are starting out with AI systems.
At large deployments, prompt version control becomes practically important: when a prompt change is deployed to production and user experience degrades, the ability to quickly identify what changed and roll back is essential.
Some organisations apply software release processes (staging environments, canary deployments, rollback procedures) to prompt updates.
Core Prompting Techniques: The Technical Foundation
Practitioners who work from first principles can be told apart from those operating on intuition by whether they understand the established research on prompting techniques.
Zero-Shot, Few-Shot, and Chain-of-Thought
The seminal Brown et al. (2020) paper introducing GPT-3 established the few-shot learning paradigm: including examples of desired input-output pairs in the prompt dramatically improved performance on many tasks compared to zero-shot (no examples) prompting.[2]
Examples are better at showing the task structure, the expected format and how much reasoning detail is needed than instructions by themselves.
On mathematical and logical reasoning tasks, large models performed much better after getting chain-of-thought prompting that includes step-by-step reasoning examples or just adding "Let's think step by step" [3]. Models above a certain capability threshold benefited most from this approach. Smaller models gained little, pointing to the fact that reasoning capabilities needed by chain-of-thought appear only at scale.
This finding has large practical effects. Prompting methods that work on GPT-4 may not carry over to smaller, cheaper models.[7]
Structured Output and Format Control
Most enterprise AI applications need structured and predictable output formats across the board. These include JSON for API responses, set table formats for analyzing documents and standard citation formats for research tools. Format specs for prompts are designed by prompt engineers drawing from these elements:
Format examples. Show the exact structure the output should take by giving an example and illustrating the schema instead of describing it abstractly.
Explicit schema specification. This means defining what the output structure should be in JSON Schema or natural language description, especially for complex nested structures.
Validation loops. Agentic systems use these by putting in place a second model or validation step to check that the output meets the required format before sending it back to the system that called it.
Getting reliable structured output is a fundamental prompt engineering challenge because LLMs are trained to generate natural, flowing text, not to adhere rigidly to schema. The techniques for enforcing format have improved substantially with model improvements (many models now support native structured output modes through constrained decoding), but prompt design remains important for ensuring the content within the structure is correct even when the format is enforced.
Agentic Prompting and Tool Use
Agentic systems are AI applications that take sequences of actions, use tools such as web search, code execution and API calls and keep context across multi-step tasks and the frontier of prompt engineering has moved markedly toward these systems.[15] Prompt design for agentic systems is much more complex than designing prompts for single-turn conversations.
Key challenges unique to agentic prompting include:
Error recovery. When a tool call fails or gives unexpected results, how does the agent reply? Failure modes have to be anticipated by the system prompt and behavior guidance given out as well.
Scope constraints. Clear rules have to be set by prompt design on which actions agents with tool access can take and which ones need human confirmation. Consequential real-world actions can be taken by these agents.
Context compression: As an agentic task runs across many steps, the context window fills with intermediate results. Designing prompts that guide the model to compress and summarise earlier context without losing critical information is a specialised skill.
Who Actually Hires Prompt Engineers
AI product companies are the most explicit employers. They hire people whose primary job is improving the prompts that make their AI products work. This category includes both model providers and AI-native startups building on top of those models.
Healthcare technology companies are increasingly deploying AI for clinical documentation, prior authorisation, patient communication, and diagnostic support, all domains where reliable prompt design is critical and errors have real consequences. Legal technology firms use AI for contract analysis, legal research, and document review, where precision in prompt design determines whether the system produces usable output or hallucinations that waste lawyer time.
Across financial services, marketing technology platforms and government agencies, AI is used by banks, marketers and governments to generate content, personalise messages and analyze campaigns. Millions of automated interactions call for prompt engineers to keep output quality and brand consistency high and regulatory rules in banking and finance make reliable prompt behavior all the more vital. Public service delivery and regulatory analysis are among the fields that US, UK and EU governments have started using AI for and that creates demand for practitioners who know both how prompts work technically and how they fit into the governance framework.
The Emerging Role of Prompt Engineering in Regulated Industries
Regulated industries demand more from AI system prompts than just performance. Compliance and auditability requirements go beyond what is needed for performance.
To meet validation requirements for clinical accuracy standards, a healthcare AI system needs written proof that its system prompt was validated and any change has to follow change control procedures similar to those used for medical device software updates.
For a financial services AI to meet the standard, its prompts have to show that they contain appropriate disclaimers, do not give regulated financial advice and generate outputs that comply with the firm's compliance rules.
Sustained demand for prompt engineers who bring together technical design skills, domain expertise and compliance awareness drives up demand in this regulatory dimension. That combination is genuinely rare and brings in premium compensation.
Is Prompt Engineering a Long-Term Career?
This is the question the field genuinely cannot answer yet.
The case for durability: As AI systems become more embedded in every industry, the skill of reliably directing those systems toward specific outcomes will become more valuable.
Sophisticated prompt engineering work that designs evaluation frameworks, runs red teaming and optimizes RAG systems is now recognized as part of ML engineering. Those building this more advanced technical skill set have a strong career path ahead of them.
The case for transitioning: Model improvements are steadily reducing the gap between naive and optimised prompts for well-defined tasks. Automatic prompt optimisation research, methods that tune prompts algorithmically rather than manually, is advancing.[11]
On several benchmark tasks, automatic prompt optimisation through LLMs to create and assess candidate prompts beat out human-made prompts. That points to the simplest manual prompt engineering work being able to be automated from within the AI stack itself.[11]
The simplest prompt engineering work is increasingly doable by domain experts with no specialised training.
The most likely scenario: The narrow definition of prompt engineering, the standalone craft of writing better prompts, will consolidate into broader roles rather than growing as an independent profession. The broader definition (applied AI system design including evaluation, testing, and reliability engineering) will grow and be called something else: applied AI engineer, AI product engineer, LLM application developer.
Those entering the field with this understanding have a stronger position than people who see prompt engineering as a permanent destination instead of a platform for developing adjacent AI engineering skills.
Skills Needed
Strong written communication: The foundation of the work. Precision in language, understanding of ambiguity, and the ability to write instructions that are interpreted consistently across varied inputs.
Systematic thinking. Designing experiments, finding variables and objectively evaluating results is what this means. Without systematic testing, prompt engineering becomes iterative guessing.
LLM API familiarity: Understanding how to use OpenAI, Anthropic, Hugging Face, and other APIs programmatically, including parameters like temperature, top-p, and context window management.[6] Basic Python: Scripting ability to automate prompt testing, process outputs at scale, and integrate with data pipelines. Not deep software engineering, but functional programming ability.
Domain expertise. Most enterprise apps give generic results from prompt engineering done without domain knowledge. Healthcare prompt engineers who know clinical workflows do much better than generalists.
Evaluation design. This means being able to put in place quantitative metrics for what is qualitative, build test suites and work through evaluation results with statistical rigour. More than any other technical skill, this is what sets senior prompt engineers apart from newcomers.
Understanding of model capabilities and limitations. This means knowing how each model behaves differently on the same prompts, how the context window length influences behavior, how temperature and other generation parameters work with prompt design and which failure modes are specific to the model and which are universal.
How to Learn Prompt Engineering Systematically
Conceptual study combined with hands-on experimentation is the quickest route to prompt engineering competency and early building of evaluation infrastructure is important.
Read the foundational papers: The Brown et al. (2020) few-shot learning paper, Wei et al. (2022) chain-of-thought paper, and Lewis et al. (2020) RAG paper are accessible to non-specialists and provide the scientific grounding for the major techniques.
Understanding the why behind techniques enables adaptation when they fail, rather than cargo-culting patterns that only work in specific conditions.
Build a prompt testing infrastructure: Before focusing on optimising prompts, build the tooling to evaluate them. A test suite of 50-100 representative inputs with expected outputs, evaluated automatically, is worth more than any individual prompt improvement.
The ability to measure quality before and after a prompt change is the prerequisite for systematic improvement.
Study prompt injection and adversarial cases deliberately. What prompts assume structurally comes out through seeing how they fail under adversarial conditions.
Building a collection of adversarial test cases (attempts to confuse, override, or misdirect the model) and testing prompts against this collection is the fastest way to find and fix weaknesses.
Work on real production problems. There is a large gap between what demo prompts call for and what production prompts call for.
Production systems deal with distributions of inputs that no single designer predicted, edge cases that appear only at scale and latency and cost limits that rule out methods that are theoretically better. Real deployment work speeds up the learning that a tutorial cannot teach.
Practical Takeaways
As a component of broader AI system development skills instead of as a standalone specialisation, prompt engineering has its greatest value when practiced today. Practitioners who can bring together prompt expertise with ML engineering, product management or deep domain knowledge are the most employable.
When you enter this field, put building systematic evaluation skills ahead of perfecting how you phrase each prompt. Practitioners who make reliable AI systems are the ones able to measure whether their prompts work rigorously, at scale and against adversarial cases. Those who create impressive demos fall short.
Do not take today's high-profile salaries at AI companies as a reliable baseline for what the role pays across the board. Instead, build the technical depth that will make you employable across many AI roles and not only the one that had a viral job listing.
Sources
- Anthropic. "Prompt Engineer and Librarian Job Posting.", 2023.
- Brown, T. et al. "Language Models are Few-Shot Learners." Advances in Neural Information Processing Systems 33, 2020.
- Wei, J. et al. "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models." Advances in Neural Information Processing Systems 35, 2022. View source
- Lewis, P. et al. "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks." Advances in Neural Information Processing Systems 33, 2020.
- Perez, E., Kiela, D. and Cho, K. "True Few-Shot Learning with Language Models." Advances in Neural Information Processing Systems, volume 34, 2021.
- Anthropic. "The Claude Model Card.", 2024.
- OpenAI. "GPT-4 Technical Report.", 2023.
- Glassdoor. "Prompt Engineer Salary Data.", 2024.
- LinkedIn Economic Graph. "Emerging Jobs in AI." LinkedIn, 2024.
- White, J. et al. "A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT." Published as arXiv:2302.11382 in 2023.
- Zhou, Y. et al. "Large Language Models Are Human-Level Prompt Engineers." arXiv:2211.01910, 2022.
- Zheng, L. et al. "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena." Advances in Neural Information Processing Systems 36, 2023. View source
- K. Greshake et al. have published "Not What You've Signed Up For. Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection" on arXiv as arXiv:2302.12173 in 2023.
- Liu, P. et al. "Pre-Train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing." ACM Computing Surveys 55(9), 2023. View source
- Yao, S. et al. "ReAct: Synergizing Reasoning and Acting in Language Models." International Conference on Learning Representations, 2023.
Further Reading
- Ouyang, L. et al. Training Language Models to Follow Instructions with Human Feedback. In Advances in Neural Information Processing Systems, volume 35, 2022.








