Prompts
Generate API
Generate content using predefined prompts through a dedicated API endpoint.
Overview
The Generate API allows you to use predefined prompts to generate content through a unified endpoint. This feature simplifies the process of using prompts across different LLM providers while maintaining Helicone’s observability features.
Prerequisites
- A Helicone account and API key
- At least one predefined prompt in Helicone
- API keys for the LLM providers you want to use
API Endpoint
Request Format
The request body should include:
Required headers:
Provider API keys (at least one required):
Example Usage
Response Format
The response format will match the standard format of the underlying LLM provider being used. All responses will be logged in Helicone and can be viewed in your dashboard.
Features
- Unified Endpoint: Use a single endpoint for multiple LLM providers
- Version Control: Specify prompt versions for testing and production
- Input Variables: Pass dynamic inputs to your prompts
- User Tracking: Include user and session IDs for request tracking
- Full Observability: All requests are logged in Helicone’s dashboard
Upcoming Features
- Reverse mapper for Anthropic and other API paths
- Support for additional LLM providers
- Enhanced prompt template key-value store
FAQ
Was this page helpful?