Overview
The Chat Completions API is designed as a standard interface for integrating Large Language Models (LLMs) into your application. It is fully compatible with OpenAI’s Chat Completions API format, making integration straightforward for teams familiar with OpenAI, Claude, or similar providers. In addition to the standard fields, Promptrun requires amodel property in the request body. You can choose from a variety of supported models. Visit the Models page to see all available models along with usage costs and capabilities.
Authentication
Use your API key to authenticate requests to this endpoint. You can find or create your API key in the Promptrun dashboard.Example Conversation Flow
To maintain context across multiple messages, pass the full conversation history in themessages array.