How it Works
PromptLayer provides two primary ways to integrate with your application:- The
run()method — Fetch a prompt template from the Prompt Registry, execute it against your configured LLM provider (OpenAI, Anthropic, Google, etc.), and automatically log the result. This is the recommended approach. - The
log_requestmethod / REST API — Make LLM requests with your own client code and log them to PromptLayer for tracking and analysis.
Features
Some of the key features of PromptLayer include:- Prompt Registry: Version, manage, and retrieve prompt templates through a visual editor and API.
- API request logging: PromptLayer records all your LLM requests, allowing you to search and explore request history in the PromptLayer dashboard.
- Metadata tracking: PromptLayer logs each LLM request with metadata such as the prompt used, the response returned, tags, scores, and any additional parameters.
- Easy integration: Use the
run()method for zero-setup integration, orlog_requestto add logging to your existing code. - Designed for production: PromptLayer is designed to help maintain LLMs in production and aid in the development process. It is prod-ready and will not interfere with your application’s functionality even if it fails.
- Collaboration: PromptLayer allows you to share your prompt engineering with others, making it easy to collaborate on projects with teammates or share your work with the wider community.
Getting Started
To get started with PromptLayer, you will need to sign up for an account on the PromptLayer website. Once you have created an account, install the SDK and start using therun() method to execute prompts or log_request to log your existing LLM calls.
All your requests will be logged and saved to the cloud. You can access this data via the PromptLayer dashboard, which allows you to search and explore your request history, view metadata, and collaborate with others.
Pricing
PromptLayer offers flexible pricing options to suit different needs and usage levels. Here’s an overview of our pricing structure:Free Plan
- Perfect for hackers and individual developers
- Includes 7 days of log retention
- Up to 5,000 requests
- Ideal for getting started and exploring PromptLayer’s features
Pro Plan
- Designed for power users and small teams
- Priced at $50/month/user
- Unlimited log retention
- Up to 100,000 requests
- Full access to advanced features like evaluations, fine-tuning, and workspaces
- Collaboration tools for team members
Enterprise Plan
- Tailored for larger teams and organizations with specific requirements
- Custom pricing based on needs
- Includes all Pro features plus:
- Shared Slack channel for support
- Self-hosted option available
- SOC 2 compliance
- Custom service & data agreements
- Dedicated evaluation workers

