Bring your own model (BYOM)
PolyAI supports bring-your-own-model (BYOM) with a simple API integration. If you run your own LLM, expose an endpoint that follows the OpenAI chat/completions schema and PolyAI will treat it like any other provider.
Overview
API endpoint
Request format
Response format
Streaming (SSE)
You might receive extra OpenAI-style fields such as frequency_penalty, presence_penalty, etc.
Authentication
Configure your server to accept one of the above.
Sample implementation (Python / Flask)
Final checklist
Before going live, verify all of the following:
- Endpoint reachable with POST.
- Request/response match OpenAI
chat/completionsschema. - Authentication header configured (API Key or Bearer token).
- (Optional) Streaming supported if needed.
Send the following to your PolyAI representative to complete setup:
- Endpoint URL
- Model ID
- Auth method & credential

