Skip to main content

AI Proxy Quickstart

We can use OpenAI SDK to use an EnkryptAI deployment. It takes care of proxying correctly to the model saved in the deployment and applying the input, output guardrails set in the deployment. We need to create a sample policy, sample model and then a sample deployment to use with the OpenAI SDK.

Setup a sample policy

Response:
JSON

Setup a sample model

Response:
JSON

Setup a sample deployment

Response:
JSON

AI Proxy Example Usage with OpenAI SDK

Python SDK