LLM Prompt Library

19 production-ready prompt templates across 7 categories. Each template includes token estimates and real cost calculations so you know exactly what you'll pay before deploying.

Copy the prompts as-is or adapt to your use case. Replace {VARIABLE} placeholders with your actual values.

💬
Customer Service
4 prompts · ~1,060 avg tokens
⌨️
Coding
4 prompts · ~1,125 avg tokens
📊
Data Extraction
3 prompts · ~1,040 avg tokens
📝
Summarization
2 prompts · ~4,065 avg tokens
✍️
Content Writing
2 prompts · ~780 avg tokens
🏷️
Classification
2 prompts · ~510 avg tokens
📚
RAG / Q&A
2 prompts · ~3,440 avg tokens

How to use these prompts

1
Pick a template
Find a prompt matching your use case. Filter by category or difficulty.
2
Check the cost
Token estimates show exactly what each request costs on your chosen model.
3
Copy and adapt
Replace {VARIABLE} placeholders with your values. Test in your playground first.
4
Optimize
Run the calculator to compare costs across models before going to production.

19 prompts found

Customer Inquiry Response

beginner

Draft a professional, empathetic reply to a customer support message. Adapt tone based on the urgency and sentiment of the inquiry.

520input tokens
180output tokens
Cost per 1K requests
Mini: $0.194.5: $1.42Flash: $0.62
supportemailchat
Variables:{COMPANY_NAME}{CUSTOMER_MESSAGE}{PRODUCT_CONTEXT}

Support Ticket Triage & Priority

beginner

Classify incoming support tickets by category, urgency, and required team. Returns structured JSON for routing automation.

380input tokens
90output tokens
Cost per 1K requests
Mini: $0.114.5: $0.83Chat: $0.20
classificationjsonautomation
Variables:{SUBJECT}{TICKET_BODY}

FAQ Answer from Knowledge Base

intermediate

Answer customer questions grounded strictly in a provided knowledge base. Refuses to speculate beyond the given context.

2,100input tokens
220output tokens
Cost per 1K requests
Mini: $0.454.5: $3.20Flash: $1.49
raggroundedknowledge-base
Variables:{SUPPORT_EMAIL}{KNOWLEDGE_BASE}{QUESTION}

Escalation Risk Detection

intermediate

Detect whether a customer conversation is at risk of churn or requires manager escalation. Returns risk score and reason.

650input tokens
100output tokens
Cost per 1K requests
Mini: $0.164.5: $1.15Flash: $0.53
classificationjsonchurn
Variables:{CONVERSATION_HISTORY}{ACCOUNT_TIER}

Code Review with Actionable Feedback

intermediate

Perform a structured code review covering correctness, security, performance, and readability. Returns prioritized issues with fix suggestions.

900input tokens
600output tokens
Cost per 1K requests
4.6: $11.70GPT-4.1: $6.604.8: $19.50
reviewsecurityquality
Variables:{LANGUAGE}{CONTEXT_DESCRIPTION}{CODE}

Bug Fix with Explanation

intermediate

Identify the root cause of a bug, explain it clearly, and provide the corrected code with a before/after diff.

700input tokens
500output tokens
Cost per 1K requests
4.6: $9.60GPT-4.1: $5.40Chat: $0.74
debuggingfixexplanation
Variables:{LANGUAGE}{ERROR_DESCRIPTION}{CODE}

Docstring & API Documentation Generator

beginner

Generate comprehensive docstrings for functions, classes, or modules. Covers parameters, return values, exceptions, and usage examples.

420input tokens
280output tokens
Cost per 1K requests
Mini: $0.234.5: $1.82Mini: $0.62
documentationdocstringapi
Variables:{LANGUAGE}{STYLE}{CODE}

Code Translation Between Languages

intermediate

Translate code from one programming language to another, preserving logic, idioms, and performance characteristics of the target language.

550input tokens
550output tokens
Cost per 1K requests
GPT-4.1: $5.504.6: $9.90Chat: $0.75
translationrefactoringmigration
Variables:{SOURCE_LANGUAGE}{TARGET_LANGUAGE}{CODE}

Structured Data Extraction to JSON

beginner

Extract specific fields from unstructured text into a defined JSON schema. Handles missing fields gracefully with null values.

900input tokens
280output tokens
Cost per 1K requests
Mini: $0.304.5: $2.30Flash: $1.01
jsonextractionstructured-output
Variables:{JSON_SCHEMA}{SOURCE_TEXT}

Named Entity Recognition (NER)

beginner

Extract and classify named entities (people, organizations, locations, dates, amounts) from text. Returns structured JSON with confidence.

480input tokens
260output tokens
Cost per 1K requests
Mini: $0.234.5: $1.78Chat: $0.42
nerentitiesjson
Variables:{SOURCE_TEXT}

Table Extraction from Documents

intermediate

Extract tabular data from invoices, reports, or prose descriptions. Returns a clean CSV or JSON array of rows.

820input tokens
380output tokens
Cost per 1K requests
GPT-4o: $5.854.6: $8.16Flash: $1.20
tableinvoicecsv
Variables:{DOCUMENT_TEXT}{EXPECTED_COLUMNS}

Executive Summary (Long Document)

beginner

Generate a structured executive summary of long documents (reports, research papers, contracts). Extracts key findings, decisions, and action items.

5,200input tokens
480output tokens
Cost per 1K requests
Flash: $2.764.6: $22.80GPT-4o: $17.80
summaryexecutivelong-document
Variables:{TITLE}{DOCUMENT_TYPE}{DOCUMENT_TEXT}

Meeting Notes → Action Items

beginner

Convert raw meeting transcripts or notes into structured summaries with decisions made and clearly assigned action items.

2,100input tokens
350output tokens
Cost per 1K requests
Mini: $0.534.5: $3.85Flash: $1.75
meetingaction-itemsproductivity
Variables:{MEETING_NOTES}

Blog Post Outline from Topic

beginner

Generate a detailed, SEO-optimized blog post outline with H2/H3 structure, key points per section, and suggested word counts.

300input tokens
600output tokens
Cost per 1K requests
GPT-4o: $6.754.6: $9.90Flash: $1.59
blogseooutline
Variables:{TOPIC}{AUDIENCE}{PRIMARY_KEYWORD}{TONE}{WORD_COUNT}

Product Description Generator

beginner

Write compelling e-commerce product descriptions that highlight benefits, address objections, and include relevant keywords.

340input tokens
320output tokens
Cost per 1K requests
Mini: $0.244.5: $1.94Flash: $0.81
ecommerceproductcopywriting
Variables:{WORD_COUNT}{PRODUCT_NAME}{CATEGORY}{FEATURES}{TARGET_CUSTOMER}{PRICE}

Sentiment Analysis with Confidence

beginner

Classify text sentiment with confidence score and aspect-level breakdown. Returns structured JSON for downstream processing.

300input tokens
160output tokens
Cost per 1K requests
Mini: $0.144.5: $1.10Chat: $0.26
sentimentclassificationjson
Variables:{TEXT}

User Intent Classification for Chatbots

intermediate

Classify user messages into predefined intents for chatbot routing. Handles multi-intent messages and slot extraction.

420input tokens
140output tokens
Cost per 1K requests
Mini: $0.154.5: $1.12Flash: $0.49
intentchatbotnlu
Variables:{INTENT_LIST}{USER_MESSAGE}{CONTEXT}

RAG Question Answering with Citations

intermediate

Answer questions based on retrieved document chunks. Provides citations, handles unanswerable questions, and never hallucinates.

3,800input tokens
320output tokens
Cost per 1K requests
4.6: $16.20GPT-4o: $12.70Flash: $1.94
ragcitationsgrounded
Variables:{RETRIEVED_DOCUMENTS}{QUESTION}

Document Relevance Reranking

advanced

Rerank a list of retrieved document chunks by relevance to a query. More accurate than vector similarity alone for complex questions.

2,400input tokens
360output tokens
Cost per 1K requests
Mini: $0.584.5: $4.20Flash: $1.92
ragrerankingretrieval
Variables:{QUERY}{DOCUMENTS}