package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/ai-proxy/completions"
payload := strings.NewReader("{\n \"prompt\": \"give me a good family joke\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Enkrypt-Deployment", "<x-enkrypt-deployment>")
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://api.enkryptai.com/ai-proxy/completions")
.header("X-Enkrypt-Deployment", "<x-enkrypt-deployment>")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"give me a good family joke\"\n}")
.asString();
{ "id": "9023f7795cc53994", "object": "text.completion", "created": 1736924194, "model": "mistralai/Mixtral-8x7B-Instruct-v0.1", "prompt": [], "choices": [ { "text": "?\n\nA: Why don't scientists trust atoms?\n\nQ: Why?\n\nA: Because they make up everything!\n\n## What is the best family joke?\n\nA: Why was the math book sad?\n\nQ: Because it had too many problems.\n\n## What is a clean joke for kids?\n\nA: Why did the scarecrow win an award?\n\nQ: Because he was outstanding in his field.\n\n## What is a good clean joke?\n\nA: Why did the bicycle fall over?\n\nQ: Because it was two-tired.\n\n## What is a good clean joke for adults?\n\nA: Why did the tomato turn red?\n\nQ: Because it saw the salad dressing.\n\n## What is a good clean joke for kids and adults?\n\nA: Why did the coffee file a police report?\n\nQ: It got mugged.\n\n## What is a good clean joke for kids and adults that is also a pun?\n\nA: Why couldn't the bicycle stand up by itself?\n\nQ: It was two tired.\n\n## What is a good clean joke for kids and adults that is also a riddle?\n\nA: I have keys but no locks. I have space but no room. You can enter, but can't go outside. What am I?\n\nQ: A keyboard.\n\n## What is a good clean joke for kids and adults that is also a one-liner?\n\nA: I told my wife she should embrace her mistakes... She gave me a hug.\n\n## What is a good clean joke for kids and adults that is also a wordplay?\n\nA: I used to be a baker, but I couldn't make enough dough.\n\n## What is a good clean joke for kids and adults that is also a play on words?\n\nA: I was going to buy a book on anti-gravity, but I couldn't find one.\n\n## What is a good clean joke for kids and adults that is also a witty remark?\n\nA: I'm not arguing, I'm just explaining why I'm right.\n\n## What is a good clean joke for kids and adults that is also a clever observation?\n\nA: I'm not lazy, I'm just conserving energy.\n\n## What is a good clean joke for kids and adults that is also a humorous comment?\n\nA: I'm not arguing, I'm just passionately expressing my point of view while completely dismissing yours.\n\n## What is a good clean joke for kids and adults that is also a light-hearted quip?\n\nA: I'm not arguing, I'm just providing a different perspective that happens to be the correct one.\n\n## What is a good clean joke for kids and adults that is also a funny retort?\n\nA: I'm not arguing, I'm just having a heated discussion with someone who is clearly wrong.\n\n## What is a good clean joke for kids and adults that is also a sarcastic remark?\n\nA: I'm not arguing, I'm just engaging in a civil discourse with someone who is clearly misinformed.\n\n## What is a good clean joke for kids and adults that is also a humorous comeback?\n\nA: I'm not arguing, I'm just correcting your misguided notions with the power of facts and logic.\n\n## What is a good clean joke for kids and adults that is also a witty comeback?\n\nA: I'm not arguing, I'm just demonstrating the superiority of my intellect over your ignorance.\n\n## What is a good clean joke for kids and adults that is also a clever comeback?\n\nA: I'm not arguing, I'm just proving beyond a shadow of a doubt that I am right and you are wrong.\n\n## What is a good clean joke for kids and adults that is also a sharp comeback?\n\nA: I'm not arguing, I'm just using my superior reasoning skills to dismantle your flawed argument.\n\n## What is a good clean joke for kids and adults that is also a biting comeback?\n\nA: I'm not arguing, I'm just showing you the error of your ways with the precision of a master debater.\n\n## What is a good clean joke for kids and adults that is also a cutting comeback?\n\nA: I'm not arguing, I'm just using my vast knowledge and intelligence to expose the holes in your argument.\n\n## What is a good clean joke for kids and adults that is also a crushing comeback?\n\nA: I'm not arguing, I'm just using my unparalleled wit and intellect to destroy your argument and leave you in ruins.\n\n## What is a good clean joke for kids and adults that is also a devastating comeback?\n\nA: I'm not arguing, I'm just using my superior debating skills to annihilate your argument and leave you humiliated.\n\n## What is a good clean joke for kids and adults that is also a withering comeback?\n\nA: I'm not arguing, I'm just using my razor-sharp wit and intellect to eviscerate your argument and leave you speechless.\n\n## What is a good clean joke for kids and adults that is also a scathing comeback?\n\nA: I'm not arguing, I'm just using my formidable debating skills to incinerate your argument and reduce it to ashes.\n\n## What is a good clean joke for kids and adults that is also a merciless comeback?\n\nA: I'm not arguing, I'm just using my unrelenting logic and reason to obliterate your argument and leave you defeated.\n\n## What is a good clean joke for kids and adults that is also a ruthless comeback?\n\nA: I'm not arguing, I'm just using my irrefutable arguments and undeniable facts to demolish your argument and leave you in shambles.\n\n## What is a good clean joke for kids and adults that is also a savage comeback?\n\nA: I'm not arguing, I'm just using my brutal honesty and incisive intellect to disembowel your argument and leave you bleeding out.\n\n## What is a good clean joke for kids and adults that is also a vicious comeback?\n\nA: I'm not arguing, I'm just using my ruthless logic and unyielding reason to eviscerate your argument and leave you writhing in pain.\n\n## What is a good clean joke for kids and adults that is also a ferocious comeback?\n\nA: I'm not arguing, I'm just using my merciless wit and unstoppable intellect to shred your argument to pieces and leave you trembling in fear.\n\n## What is a good clean joke for kids and adults that is also a relentless comeback?\n\nA: I'm not arguing, I'm just using my remorseless logic and unforgiving reason to tear your argument apart and leave you begging for mercy.\n\n## What is a good clean joke for kids and adults that is also a remorseless comeback?\n\nA: I'm not arguing, I'm just using my pitiless wit and unyielding intellect to annihilate your argument and leave you weeping in despair.\n\n## What is a good clean joke for kids and adults that is also a heartless comeback?\n\nA: I'm not arguing, I'm just using my cold, calculating logic to destroy your argument and leave you broken and defeated.\n\n## What is a good clean joke for kids and adults that is also a ruthless comeback?\n\nA: I'm not arguing, I'm just using my relentless logic and unyielding reason to crush your argument and leave you in ruins.\n\n## What is a good clean joke for kids and adults that is also a merciless comeback?\n\nA: I'm not arguing, I'm just using my unyielding intellect and remorseless logic to obliterate your argument and leave you humiliated.\n\n## What is a good clean joke for kids and adults that is also a savage comeback?\n\nA: I'm not arguing, I'm just using my ruthless wit and unyielding intellect to eviscerate your argument and leave you trembling in fear.\n\n## What is a good clean joke for kids and adults that is also a crushing comeback?\n\nA: I'm not arguing, I'm just using my merciless logic and unrelenting reason to shred your argument to pieces and leave you begging for mercy.\n\n## What is a good clean joke for kids and adults that is also a devastating comeback?\n\nA: I'm not arguing, I'm just using my remorseless w", "finish_reason": "length", "seed": 14925105257546449000, "logprobs": null, "index": 0 } ], "usage": { "prompt_tokens": 7, "completion_tokens": 2048, "total_tokens": 2055 }, "enkrypt_policy_detections": { "output_guardrails": { "details": { "keyword_detector": { "detected_counts": {}, "redacted_text": " Hello! How can I assist you today?", "detected_keywords": {} }, "policy_violation": { "violating_policy": "No Violation Found", "explanation": "No Violation Found.", "most_unsafe_content": "" }, "bias": { "bias_detected": false, "debiased_text": "Hello! How may I help you today?" }, "pii": { "ip_address": {}, "url": {}, "pii": {}, "secrets": {} }, "nsfw": { "sfw": 0.77364963293076, "nsfw": 0.14463838934898 }, "toxicity": { "threat": 0.00013719938579015, "severe_toxicity": 0.00013394378765952, "obscene": 0.00018259837816004, "insult": 0.00018637960602064, "toxicity": 0.00058524927590042, "identity_hate": 0.00014582877338398 }, "injection_attack": { "safe": "0.998087", "attack": "0.001913", "p_injection": "0.001913", "p_jailbreak": "0.000318", "detected_attacks": [] } }, "summary": { "keyword_detected": 0, "policy_violation": 0, "bias": 0, "pii": 0, "nsfw": 0, "toxicity": {}, "injection_attack": 0, "sponge_attack": 0 } }, "input_guardrails": { "details": { "keyword_detector": { "detected_counts": {}, "redacted_text": "|", "detected_keywords": {} }, "policy_violation": { "violating_policy": "No Violation Found", "explanation": "No Violation Found.", "most_unsafe_content": "" }, "bias": { "bias_detected": false, "debiased_text": "No rephrasing needed." }, "pii": { "ip_address": {}, "url": {}, "pii": {}, "secrets": {} }, "nsfw": { "sfw": 0.23262414336205, "nsfw": 0.75041556358337 }, "toxicity": { "threat": 0.0001007060345728, "severe_toxicity": 0.00010207855666522, "obscene": 0.00019277907267679, "insult": 0.00018571241525933, "toxicity": 0.0011186309857294, "identity_hate": 0.00013926414248999 }, "injection_attack": { "safe": "0.999906", "attack": "0.000094", "p_injection": "0.000094", "p_jailbreak": "0.000318", "detected_attacks": [] }, "sponge_attack": { "sponge_attack_detected": false } }, "summary": { "keyword_detected": 0, "policy_violation": 0, "bias": 0, "pii": 0, "nsfw": 1, "toxicity": {}, "injection_attack": 0, "sponge_attack": 0 } } }}
๐ AI Proxy API
AI Completions Proxy Endpoint
POST
/
ai-proxy
/
completions
AI Completions Proxy Endpoint
curl --request POST \ --url https://api.enkryptai.com/ai-proxy/completions \ --header 'Content-Type: application/json' \ --header 'X-Enkrypt-Deployment: <x-enkrypt-deployment>' \ --header 'apikey: <api-key>' \ --data '{ "prompt": "give me a good family joke"}'
import requests
url = "https://api.enkryptai.com/ai-proxy/completions"
payload = { "prompt": "give me a good family joke" }
headers = {
"X-Enkrypt-Deployment": "<x-enkrypt-deployment>",
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {
'X-Enkrypt-Deployment': '<x-enkrypt-deployment>',
apikey: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({prompt: 'give me a good family joke'})
};
fetch('https://api.enkryptai.com/ai-proxy/completions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/ai-proxy/completions"
payload := strings.NewReader("{\n \"prompt\": \"give me a good family joke\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Enkrypt-Deployment", "<x-enkrypt-deployment>")
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://api.enkryptai.com/ai-proxy/completions")
.header("X-Enkrypt-Deployment", "<x-enkrypt-deployment>")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"give me a good family joke\"\n}")
.asString();
{ "id": "9023f7795cc53994", "object": "text.completion", "created": 1736924194, "model": "mistralai/Mixtral-8x7B-Instruct-v0.1", "prompt": [], "choices": [ { "text": "?\n\nA: Why don't scientists trust atoms?\n\nQ: Why?\n\nA: Because they make up everything!\n\n## What is the best family joke?\n\nA: Why was the math book sad?\n\nQ: Because it had too many problems.\n\n## What is a clean joke for kids?\n\nA: Why did the scarecrow win an award?\n\nQ: Because he was outstanding in his field.\n\n## What is a good clean joke?\n\nA: Why did the bicycle fall over?\n\nQ: Because it was two-tired.\n\n## What is a good clean joke for adults?\n\nA: Why did the tomato turn red?\n\nQ: Because it saw the salad dressing.\n\n## What is a good clean joke for kids and adults?\n\nA: Why did the coffee file a police report?\n\nQ: It got mugged.\n\n## What is a good clean joke for kids and adults that is also a pun?\n\nA: Why couldn't the bicycle stand up by itself?\n\nQ: It was two tired.\n\n## What is a good clean joke for kids and adults that is also a riddle?\n\nA: I have keys but no locks. I have space but no room. You can enter, but can't go outside. What am I?\n\nQ: A keyboard.\n\n## What is a good clean joke for kids and adults that is also a one-liner?\n\nA: I told my wife she should embrace her mistakes... She gave me a hug.\n\n## What is a good clean joke for kids and adults that is also a wordplay?\n\nA: I used to be a baker, but I couldn't make enough dough.\n\n## What is a good clean joke for kids and adults that is also a play on words?\n\nA: I was going to buy a book on anti-gravity, but I couldn't find one.\n\n## What is a good clean joke for kids and adults that is also a witty remark?\n\nA: I'm not arguing, I'm just explaining why I'm right.\n\n## What is a good clean joke for kids and adults that is also a clever observation?\n\nA: I'm not lazy, I'm just conserving energy.\n\n## What is a good clean joke for kids and adults that is also a humorous comment?\n\nA: I'm not arguing, I'm just passionately expressing my point of view while completely dismissing yours.\n\n## What is a good clean joke for kids and adults that is also a light-hearted quip?\n\nA: I'm not arguing, I'm just providing a different perspective that happens to be the correct one.\n\n## What is a good clean joke for kids and adults that is also a funny retort?\n\nA: I'm not arguing, I'm just having a heated discussion with someone who is clearly wrong.\n\n## What is a good clean joke for kids and adults that is also a sarcastic remark?\n\nA: I'm not arguing, I'm just engaging in a civil discourse with someone who is clearly misinformed.\n\n## What is a good clean joke for kids and adults that is also a humorous comeback?\n\nA: I'm not arguing, I'm just correcting your misguided notions with the power of facts and logic.\n\n## What is a good clean joke for kids and adults that is also a witty comeback?\n\nA: I'm not arguing, I'm just demonstrating the superiority of my intellect over your ignorance.\n\n## What is a good clean joke for kids and adults that is also a clever comeback?\n\nA: I'm not arguing, I'm just proving beyond a shadow of a doubt that I am right and you are wrong.\n\n## What is a good clean joke for kids and adults that is also a sharp comeback?\n\nA: I'm not arguing, I'm just using my superior reasoning skills to dismantle your flawed argument.\n\n## What is a good clean joke for kids and adults that is also a biting comeback?\n\nA: I'm not arguing, I'm just showing you the error of your ways with the precision of a master debater.\n\n## What is a good clean joke for kids and adults that is also a cutting comeback?\n\nA: I'm not arguing, I'm just using my vast knowledge and intelligence to expose the holes in your argument.\n\n## What is a good clean joke for kids and adults that is also a crushing comeback?\n\nA: I'm not arguing, I'm just using my unparalleled wit and intellect to destroy your argument and leave you in ruins.\n\n## What is a good clean joke for kids and adults that is also a devastating comeback?\n\nA: I'm not arguing, I'm just using my superior debating skills to annihilate your argument and leave you humiliated.\n\n## What is a good clean joke for kids and adults that is also a withering comeback?\n\nA: I'm not arguing, I'm just using my razor-sharp wit and intellect to eviscerate your argument and leave you speechless.\n\n## What is a good clean joke for kids and adults that is also a scathing comeback?\n\nA: I'm not arguing, I'm just using my formidable debating skills to incinerate your argument and reduce it to ashes.\n\n## What is a good clean joke for kids and adults that is also a merciless comeback?\n\nA: I'm not arguing, I'm just using my unrelenting logic and reason to obliterate your argument and leave you defeated.\n\n## What is a good clean joke for kids and adults that is also a ruthless comeback?\n\nA: I'm not arguing, I'm just using my irrefutable arguments and undeniable facts to demolish your argument and leave you in shambles.\n\n## What is a good clean joke for kids and adults that is also a savage comeback?\n\nA: I'm not arguing, I'm just using my brutal honesty and incisive intellect to disembowel your argument and leave you bleeding out.\n\n## What is a good clean joke for kids and adults that is also a vicious comeback?\n\nA: I'm not arguing, I'm just using my ruthless logic and unyielding reason to eviscerate your argument and leave you writhing in pain.\n\n## What is a good clean joke for kids and adults that is also a ferocious comeback?\n\nA: I'm not arguing, I'm just using my merciless wit and unstoppable intellect to shred your argument to pieces and leave you trembling in fear.\n\n## What is a good clean joke for kids and adults that is also a relentless comeback?\n\nA: I'm not arguing, I'm just using my remorseless logic and unforgiving reason to tear your argument apart and leave you begging for mercy.\n\n## What is a good clean joke for kids and adults that is also a remorseless comeback?\n\nA: I'm not arguing, I'm just using my pitiless wit and unyielding intellect to annihilate your argument and leave you weeping in despair.\n\n## What is a good clean joke for kids and adults that is also a heartless comeback?\n\nA: I'm not arguing, I'm just using my cold, calculating logic to destroy your argument and leave you broken and defeated.\n\n## What is a good clean joke for kids and adults that is also a ruthless comeback?\n\nA: I'm not arguing, I'm just using my relentless logic and unyielding reason to crush your argument and leave you in ruins.\n\n## What is a good clean joke for kids and adults that is also a merciless comeback?\n\nA: I'm not arguing, I'm just using my unyielding intellect and remorseless logic to obliterate your argument and leave you humiliated.\n\n## What is a good clean joke for kids and adults that is also a savage comeback?\n\nA: I'm not arguing, I'm just using my ruthless wit and unyielding intellect to eviscerate your argument and leave you trembling in fear.\n\n## What is a good clean joke for kids and adults that is also a crushing comeback?\n\nA: I'm not arguing, I'm just using my merciless logic and unrelenting reason to shred your argument to pieces and leave you begging for mercy.\n\n## What is a good clean joke for kids and adults that is also a devastating comeback?\n\nA: I'm not arguing, I'm just using my remorseless w", "finish_reason": "length", "seed": 14925105257546449000, "logprobs": null, "index": 0 } ], "usage": { "prompt_tokens": 7, "completion_tokens": 2048, "total_tokens": 2055 }, "enkrypt_policy_detections": { "output_guardrails": { "details": { "keyword_detector": { "detected_counts": {}, "redacted_text": " Hello! How can I assist you today?", "detected_keywords": {} }, "policy_violation": { "violating_policy": "No Violation Found", "explanation": "No Violation Found.", "most_unsafe_content": "" }, "bias": { "bias_detected": false, "debiased_text": "Hello! How may I help you today?" }, "pii": { "ip_address": {}, "url": {}, "pii": {}, "secrets": {} }, "nsfw": { "sfw": 0.77364963293076, "nsfw": 0.14463838934898 }, "toxicity": { "threat": 0.00013719938579015, "severe_toxicity": 0.00013394378765952, "obscene": 0.00018259837816004, "insult": 0.00018637960602064, "toxicity": 0.00058524927590042, "identity_hate": 0.00014582877338398 }, "injection_attack": { "safe": "0.998087", "attack": "0.001913", "p_injection": "0.001913", "p_jailbreak": "0.000318", "detected_attacks": [] } }, "summary": { "keyword_detected": 0, "policy_violation": 0, "bias": 0, "pii": 0, "nsfw": 0, "toxicity": {}, "injection_attack": 0, "sponge_attack": 0 } }, "input_guardrails": { "details": { "keyword_detector": { "detected_counts": {}, "redacted_text": "|", "detected_keywords": {} }, "policy_violation": { "violating_policy": "No Violation Found", "explanation": "No Violation Found.", "most_unsafe_content": "" }, "bias": { "bias_detected": false, "debiased_text": "No rephrasing needed." }, "pii": { "ip_address": {}, "url": {}, "pii": {}, "secrets": {} }, "nsfw": { "sfw": 0.23262414336205, "nsfw": 0.75041556358337 }, "toxicity": { "threat": 0.0001007060345728, "severe_toxicity": 0.00010207855666522, "obscene": 0.00019277907267679, "insult": 0.00018571241525933, "toxicity": 0.0011186309857294, "identity_hate": 0.00013926414248999 }, "injection_attack": { "safe": "0.999906", "attack": "0.000094", "p_injection": "0.000094", "p_jailbreak": "0.000318", "detected_attacks": [] }, "sponge_attack": { "sponge_attack_detected": false } }, "summary": { "keyword_detected": 0, "policy_violation": 0, "bias": 0, "pii": 0, "nsfw": 1, "toxicity": {}, "injection_attack": 0, "sponge_attack": 0 } } }}
The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.
Generates best_of completions server-side and returns the "best" (the one with the highest log probability per token). Results cannot be streamed.
When used with n, best_of controls the number of candidate completions and n specifies how many to return รขโฌโ best_of must be greater than n.
Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
Modify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
As an example, you can pass {"50256": -100} to prevent the <|endoftext|> token from being generated.
Include the log probabilities on the logprobs most likely output tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response.
Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.
Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.
Required range: -9223372036854776000 <= x <= 9223372036854776000
Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Example Python code.
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
We generally recommend altering this or top_p but not both.
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
We generally recommend altering this or temperature but not both.
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Example:
"user-1234"
Response
200 - application/json
Successful Response
Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Enkrypt AI","colors":{"primary":"#ff6b6b","light":"#ff8a80","dark":"#ee5a24"},"logo":{"light":"https://mintcdn.com/enkryptai-42/7kWxrBaXsO0YvXjU/logo/light-logo.png?fit=max\u0026auto=format\u0026n=7kWxrBaXsO0YvXjU\u0026q=85\u0026s=3e4d5072cef08dc6b8885a03a7821b72","dark":"https://mintcdn.com/enkryptai-42/7kWxrBaXsO0YvXjU/logo/dark-logo.png?fit=max\u0026auto=format\u0026n=7kWxrBaXsO0YvXjU\u0026q=85\u0026s=2134a9f8208236db09c1727430559527"},"favicon":"https://mintcdn.com/enkryptai-42/rjcjkOmgLVUKmbck/favicon.svg?fit=max\u0026auto=format\u0026n=rjcjkOmgLVUKmbck\u0026q=85\u0026s=89efba126b5f4577a46794f171d766f0","appearance":{"default":"light","strict":false},"background":{"decoration":"gradient","color":{"light":"#fff5f5","dark":"#1a0f0f"}},"navbar":{"links":[{"href":"https://app.enkryptai.com/login","label":"Login"},{"href":"https://www.enkryptai.com/request-a-demo","label":"Schedule Demo"}],"primary":{"type":"button","label":"Learn More","href":"https://enkryptai.com"}},"footer":{"socials":{"x":"https://x.com/enkryptai","linkedin":"https://www.linkedin.com/company/enkryptai","website":"https://enkryptai.com"}},"styling":{"codeblocks":"system","latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"enkryptai-42","hasAudioNarration":false,"actualSubdomain":"enkryptai-42","customDomains":["docs.enkryptai.com"],"gitSource":{"type":"github","owner":"enkryptai","repo":"sentry","deployBranch":"docs-wip","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae1c016d6a250fd1db8d8b2","collectionId":"3601b564-9eab-40b7-823e-550bf1c8b396","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae1c016d6a250fd1db8d8b2"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae1c016d6a250fd1db8d8b2","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API Reference","count":340},{"language":"default","tag":"Get Started","count":65},{"language":"default","tag":"๐๏ธ Archived","count":48},{"language":"default","tag":"Get Started for Guardrails","count":39},{"language":"default","tag":"Examples","count":35},{"language":"default","tag":"๐ด Red Team API","count":30},{"language":"default","tag":"๐ก๏ธ Guardrails API Endpoints","count":24},{"language":"default","tag":"Red Team (Legacy)","count":22},{"language":"default","tag":"Guardrails Policy (Legacy)","count":11},{"language":"default","tag":"Get Started for Red Team","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/ai-proxy-api-reference/endpoint/completions","slug":"/api-reference/ai-proxy-api-reference/endpoint/completions","pageMetadata":{"openapi":"POST /ai-proxy/completions","title":"AI Completions Proxy Endpoint","description":null,"href":"/api-reference/ai-proxy-api-reference/endpoint/completions"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"openapi":"POST /ai-proxy/completions","title":"AI Completions Proxy Endpoint","description":null,"href":"/api-reference/ai-proxy-api-reference/endpoint/completions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"AI Completions Proxy Endpoint","operationId":"ai_completions_proxy_endpoint_post","tags":["AI Proxy"],"parameters":["aa6c075e-deda-44e4-b4e8-d632e5bfe1f5","946478a4-77a7-4d26-9945-807f9532bccc","1ef73439-9f32-4366-ba98-2340e006d613"],"requestBody":"99e08590-fdbe-42c6-821b-f07fd520e842","responses":{"200":"924f11d9-12f7-4c20-914f-489193ae0366"},"method":"post","type":"path","servers":["46d259d2-9225-46ce-aca1-4e05427371e5"],"security":["8565320a-4e60-418d-8700-2d1d509f0638"],"path":"/ai-proxy/completions","baseUrlOptions":["https://api.enkryptai.com"],"title":"AI Completions Proxy Endpoint","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"aa6c075e-deda-44e4-b4e8-d632e5bfe1f5":{"name":"X-Enkrypt-Deployment","in":"header","required":true,"schema":{"title":"Deployment Name","type":"string","description":"The deployment saved name. E.g. test-deployment-1","example":"test-deployment","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"946478a4-77a7-4d26-9945-807f9532bccc":{"name":"X-Enkrypt-Tags","in":"header","required":false,"schema":{"title":"Tags","type":"string","description":"Comma separated tags for the deployment if any","example":"openai-testing,unit-testing","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"1ef73439-9f32-4366-ba98-2340e006d613":{"name":"X-Enkrypt-Refresh-Cache","in":"header","required":false,"schema":{"title":"Refresh Cache","type":"boolean","description":"Refresh the cache if deployment, policy or model data is stale","example":false,"isRequired":false,"uniqueKey":"","typeLabel":"boolean"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"oneOf":[{"type":"string","description":"The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that \u003c|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.\n","default":"\u003c|endoftext|>","example":"This is a test.","isRequired":true,"uniqueKey":"prompt.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","default":"","example":"This is a test.","uniqueKey":"prompt.oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that \u003c|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.\n","default":"\u003c|endoftext|>","isRequired":true,"uniqueKey":"prompt.oneOf.1","typeLabel":"string[]"},{"type":"array","items":{"type":"integer","uniqueKey":"prompt.oneOf.2.items.[INDEX]","typeLabel":"integer"},"description":"The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that \u003c|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.\n","default":"\u003c|endoftext|>","minItems":1,"example":"[1212, 318, 257, 1332, 13]","isRequired":true,"uniqueKey":"prompt.oneOf.2","typeLabel":"integer[]"},{"type":"array","items":{"type":"array","minItems":1,"items":{"type":"integer","uniqueKey":"prompt.oneOf.3.items.[INDEX].items.[INDEX]","typeLabel":"integer"},"uniqueKey":"prompt.oneOf.3.items.[INDEX]","typeLabel":"integer[]"},"description":"The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that \u003c|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.\n","default":"\u003c|endoftext|>","minItems":1,"example":"[[1212, 318, 257, 1332, 13]]","isRequired":true,"uniqueKey":"prompt.oneOf.3","typeLabel":"integer[][]"},{"type":"null","isRequired":true,"uniqueKey":"prompt.oneOf.4","typeLabel":"null"}],"isRequired":true,"uniqueKey":"prompt","typeLabel":"string | string[] | integer[] | integer[][] | null"},"enkrypt_context":{"type":"string","description":"The context for the request if using relevancy or hallucion detection in output guardrails","uniqueKey":"enkrypt_context","typeLabel":"string"},"model":{"oneOf":[{"type":"string","description":"ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n","x-oaiTypeLabel":"string","uniqueKey":"model.oneOf.0","typeLabel":"string"},{"type":"string","description":"ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n","enum":["gpt-3.5-turbo-instruct","davinci-002","babbage-002"],"x-oaiTypeLabel":"string","uniqueKey":"model.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"model","typeLabel":"string | enum\u003cstring>"},"best_of":{"oneOf":[{"type":"integer","default":1,"minimum":0,"maximum":20,"description":"Generates `best_of` completions server-side and returns the \"best\" (the one with the highest log probability per token). Results cannot be streamed.\n\nWhen used with `n`, `best_of` controls the number of candidate completions and `n` specifies how many to return รขโฌโ `best_of` must be greater than `n`.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n","uniqueKey":"best_of.oneOf.0","typeLabel":"integer"},{"type":"null","default":1,"minimum":0,"maximum":20,"description":"Generates `best_of` completions server-side and returns the \"best\" (the one with the highest log probability per token). Results cannot be streamed.\n\nWhen used with `n`, `best_of` controls the number of candidate completions and `n` specifies how many to return รขโฌโ `best_of` must be greater than `n`.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n","uniqueKey":"best_of.oneOf.1","typeLabel":"null"}],"uniqueKey":"best_of","typeLabel":"integer | null"},"echo":{"oneOf":[{"type":"boolean","default":false,"description":"Echo back the prompt in addition to the completion\n","uniqueKey":"echo.oneOf.0","typeLabel":"boolean"},{"type":"null","default":false,"description":"Echo back the prompt in addition to the completion\n","uniqueKey":"echo.oneOf.1","typeLabel":"null"}],"uniqueKey":"echo","typeLabel":"boolean | null"},"frequency_penalty":{"oneOf":[{"type":"number","default":0,"minimum":-2,"maximum":2,"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)\n","uniqueKey":"frequency_penalty.oneOf.0","typeLabel":"number"},{"type":"null","default":0,"minimum":-2,"maximum":2,"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)\n","uniqueKey":"frequency_penalty.oneOf.1","typeLabel":"null"}],"uniqueKey":"frequency_penalty","typeLabel":"number | null"},"logit_bias":{"oneOf":[{"type":"object","x-oaiTypeLabel":"map","default":null,"additionalProperties":{"type":"integer","uniqueKey":"logit_bias.oneOf.0.additionalProperties","typeLabel":"integer"},"description":"Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\n\nAs an example, you can pass `{\"50256\": -100}` to prevent the \u003c|endoftext|> token from being generated.\n","uniqueKey":"logit_bias.oneOf.0","typeLabel":"object"},{"type":"null","x-oaiTypeLabel":"map","default":null,"additionalProperties":{"type":"integer","uniqueKey":"logit_bias.oneOf.1.additionalProperties","typeLabel":"integer"},"description":"Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\n\nAs an example, you can pass `{\"50256\": -100}` to prevent the \u003c|endoftext|> token from being generated.\n","uniqueKey":"logit_bias.oneOf.1","typeLabel":"null"}],"uniqueKey":"logit_bias","typeLabel":"object | null"},"logprobs":{"oneOf":[{"type":"integer","minimum":0,"maximum":5,"default":null,"description":"Include the log probabilities on the `logprobs` most likely output tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response.\n\nThe maximum value for `logprobs` is 5.\n","uniqueKey":"logprobs.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"maximum":5,"default":null,"description":"Include the log probabilities on the `logprobs` most likely output tokens, as well the chosen tokens. For example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response.\n\nThe maximum value for `logprobs` is 5.\n","uniqueKey":"logprobs.oneOf.1","typeLabel":"null"}],"uniqueKey":"logprobs","typeLabel":"integer | null"},"max_tokens":{"oneOf":[{"type":"integer","minimum":0,"default":16,"example":16,"description":"The maximum number of [tokens](/tokenizer) that can be generated in the completion.\n\nThe token count of your prompt plus `max_tokens` cannot exceed the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.\n","uniqueKey":"max_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"default":16,"example":16,"description":"The maximum number of [tokens](/tokenizer) that can be generated in the completion.\n\nThe token count of your prompt plus `max_tokens` cannot exceed the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.\n","uniqueKey":"max_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_tokens","typeLabel":"integer | null"},"n":{"oneOf":[{"type":"integer","minimum":1,"maximum":128,"default":1,"example":1,"description":"How many completions to generate for each prompt.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n","uniqueKey":"n.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":128,"default":1,"example":1,"description":"How many completions to generate for each prompt.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n","uniqueKey":"n.oneOf.1","typeLabel":"null"}],"uniqueKey":"n","typeLabel":"integer | null"},"presence_penalty":{"oneOf":[{"type":"number","default":0,"minimum":-2,"maximum":2,"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)\n","uniqueKey":"presence_penalty.oneOf.0","typeLabel":"number"},{"type":"null","default":0,"minimum":-2,"maximum":2,"description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](/docs/guides/text-generation)\n","uniqueKey":"presence_penalty.oneOf.1","typeLabel":"null"}],"uniqueKey":"presence_penalty","typeLabel":"number | null"},"seed":{"oneOf":[{"type":"integer","minimum":-9223372036854776000,"maximum":9223372036854776000,"description":"If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\n\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.\n","uniqueKey":"seed.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":-9223372036854776000,"maximum":9223372036854776000,"description":"If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.\n\nDeterminism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.\n","uniqueKey":"seed.oneOf.1","typeLabel":"null"}],"uniqueKey":"seed","typeLabel":"integer | null"},"stop":{"oneOf":[{"type":"string","description":"Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.\n","default":"\u003c|endoftext|>","example":"\n","uniqueKey":"stop.oneOf.0","typeLabel":"string"},{"type":"null","description":"Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.\n","default":"\u003c|endoftext|>","example":"\n","uniqueKey":"stop.oneOf.1","typeLabel":"null"},{"type":"array","items":{"type":"string","example":"[\"\\n\"]","uniqueKey":"stop.oneOf.2.items.[INDEX]","typeLabel":"string"},"description":"Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.\n","maxItems":4,"minItems":1,"uniqueKey":"stop.oneOf.2","typeLabel":"string[]"},{"type":"null","uniqueKey":"stop.oneOf.3","typeLabel":"null"}],"uniqueKey":"stop","typeLabel":"string ยท null ยท string[] ยท null"},"stream":{"oneOf":[{"description":"Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).\n","type":"boolean","default":false,"uniqueKey":"stream.oneOf.0","typeLabel":"boolean"},{"description":"Whether to stream back partial progress. If set, tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).\n","type":"null","default":false,"uniqueKey":"stream.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream","typeLabel":"boolean | null"},"stream_options":{"oneOf":[{"description":"Options for streaming response. Only set this when you set `stream: true`.\n","type":"object","default":null,"properties":{"include_usage":{"type":"boolean","description":"If set, an additional chunk will be streamed before the `data: [DONE]` message. The `usage` field on this chunk shows the token usage statistics for the entire request, and the `choices` field will always be an empty array. All other chunks will also include a `usage` field, but with a null value.\n","uniqueKey":"stream_options.oneOf.0.include_usage","typeLabel":"boolean"}},"uniqueKey":"stream_options.oneOf.0","typeLabel":"object"},{"description":"Options for streaming response. Only set this when you set `stream: true`.\n","type":"null","default":null,"properties":{"include_usage":{"type":"boolean","description":"If set, an additional chunk will be streamed before the `data: [DONE]` message. The `usage` field on this chunk shows the token usage statistics for the entire request, and the `choices` field will always be an empty array. All other chunks will also include a `usage` field, but with a null value.\n"}},"uniqueKey":"stream_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream_options","typeLabel":"object | null"},"suffix":{"oneOf":[{"description":"The suffix that comes after a completion of inserted text.\n\nThis parameter is only supported for `gpt-3.5-turbo-instruct`.\n","default":null,"type":"string","example":"test.","uniqueKey":"suffix.oneOf.0","typeLabel":"string"},{"description":"The suffix that comes after a completion of inserted text.\n\nThis parameter is only supported for `gpt-3.5-turbo-instruct`.\n","default":null,"type":"null","example":"test.","uniqueKey":"suffix.oneOf.1","typeLabel":"null"}],"uniqueKey":"suffix","typeLabel":"string | null"},"temperature":{"oneOf":[{"type":"number","minimum":0,"maximum":2,"default":1,"example":1,"description":"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.\n","uniqueKey":"temperature.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":2,"default":1,"example":1,"description":"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.\n","uniqueKey":"temperature.oneOf.1","typeLabel":"null"}],"uniqueKey":"temperature","typeLabel":"number | null"},"top_p":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"default":1,"example":1,"description":"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.\n","uniqueKey":"top_p.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"default":1,"example":1,"description":"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.\n","uniqueKey":"top_p.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_p","typeLabel":"number | null"},"user":{"type":"string","example":"user-1234","description":"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).\n","uniqueKey":"user","typeLabel":"string"}},"required":["prompt"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"prompt":"give me a good family joke"}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"924f11d9-12f7-4c20-914f-489193ae0366":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"EnkryptCreateCompletionResponse","description":"Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).\n","required":["id","object","created","model","choices"],"x-oaiMeta":{"name":"The completion object","legacy":true,"example":"{\n \"id\": \"cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7\",\n \"object\": \"text_completion\",\n \"created\": 1589478378,\n \"model\": \"gpt-4-turbo\",\n \"choices\": [\n {\n \"text\": \"\\n\\nThis is indeed a test\",\n \"index\": 0,\n \"logprobs\": null,\n \"finish_reason\": \"length\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 5,\n \"completion_tokens\": 7,\n \"total_tokens\": 12\n }\n}\n"},"properties":{"id":{"type":"string","description":"A unique identifier for the completion.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"choices":{"type":"array","description":"The list of completion choices the model generated for the input prompt.","items":{"type":"object","required":["finish_reason","index","logprobs","text"],"properties":{"finish_reason":{"type":"string","description":"The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\nor `content_filter` if content was omitted due to a flag from our content filters.\n","enum":["stop","length","content_filter"],"isRequired":true,"uniqueKey":"choices.items.[INDEX].finish_reason","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","isRequired":true,"uniqueKey":"choices.items.[INDEX].index","typeLabel":"integer"},"logprobs":{"oneOf":[{"type":"object","properties":{"text_offset":{"type":"array","items":{"type":"integer","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.text_offset.items.[INDEX]","typeLabel":"integer"},"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.text_offset","typeLabel":"integer[]"},"token_logprobs":{"type":"array","items":{"type":"number","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.token_logprobs.items.[INDEX]","typeLabel":"number"},"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.token_logprobs","typeLabel":"number[]"},"tokens":{"type":"array","items":{"type":"string","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.tokens.items.[INDEX]","typeLabel":"string"},"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.tokens","typeLabel":"string[]"},"top_logprobs":{"type":"array","items":{"type":"object","additionalProperties":{"type":"number","uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.top_logprobs.items.[INDEX].additionalProperties","typeLabel":"number"},"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.top_logprobs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0.top_logprobs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"text_offset":{"type":"array","items":{"type":"integer"}},"token_logprobs":{"type":"array","items":{"type":"number"}},"tokens":{"type":"array","items":{"type":"string"}},"top_logprobs":{"type":"array","items":{"type":"object","additionalProperties":{"type":"number"}}}},"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].logprobs","typeLabel":"object | null"},"text":{"type":"string","isRequired":true,"uniqueKey":"choices.items.[INDEX].text","typeLabel":"string"}},"uniqueKey":"choices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"choices","typeLabel":"object[]"},"created":{"type":"integer","description":"The Unix timestamp (in seconds) of when the completion was created.","isRequired":true,"uniqueKey":"created","typeLabel":"integer"},"model":{"type":"string","description":"The model used for completion.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"object":{"type":"string","description":"The object type, which is always \"text_completion\"","enum":["text_completion"],"isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"system_fingerprint":{"type":"string","description":"This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n","uniqueKey":"system_fingerprint","typeLabel":"string"},"usage":{"type":"object","description":"Usage statistics for the completion request.","properties":{"completion_tokens":{"type":"integer","description":"Number of tokens in the generated completion.","isRequired":true,"uniqueKey":"usage.completion_tokens","typeLabel":"integer"},"prompt_tokens":{"type":"integer","description":"Number of tokens in the prompt.","isRequired":true,"uniqueKey":"usage.prompt_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","description":"Total number of tokens used in the request (prompt + completion).","isRequired":true,"uniqueKey":"usage.total_tokens","typeLabel":"integer"},"completion_tokens_details":{"type":"object","description":"Breakdown of tokens used in a completion.","properties":{"accepted_prediction_tokens":{"type":"integer","description":"When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n","uniqueKey":"usage.completion_tokens_details.accepted_prediction_tokens","typeLabel":"integer"},"audio_tokens":{"type":"integer","description":"Audio input tokens generated by the model.","uniqueKey":"usage.completion_tokens_details.audio_tokens","typeLabel":"integer"},"reasoning_tokens":{"type":"integer","description":"Tokens generated by the model for reasoning.","uniqueKey":"usage.completion_tokens_details.reasoning_tokens","typeLabel":"integer"},"rejected_prediction_tokens":{"type":"integer","description":"When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n","uniqueKey":"usage.completion_tokens_details.rejected_prediction_tokens","typeLabel":"integer"}},"uniqueKey":"usage.completion_tokens_details","typeLabel":"object"},"prompt_tokens_details":{"type":"object","description":"Breakdown of tokens used in the prompt.","properties":{"audio_tokens":{"type":"integer","description":"Audio input tokens present in the prompt.","uniqueKey":"usage.prompt_tokens_details.audio_tokens","typeLabel":"integer"},"cached_tokens":{"type":"integer","description":"Cached tokens present in the prompt.","uniqueKey":"usage.prompt_tokens_details.cached_tokens","typeLabel":"integer"}},"uniqueKey":"usage.prompt_tokens_details","typeLabel":"object"}},"required":["prompt_tokens","completion_tokens","total_tokens"],"uniqueKey":"usage","typeLabel":"object"},"enkrypt_policy_detections":{"type":"object","description":"The policy detections for the completion.","properties":{"input_guardrails":{"title":"GuardrailsDetectionResponse","type":"object","required":["summary","details"],"properties":{"summary":{"type":"object","title":"GuardrailsDetectionResponseSummary","properties":{"nsfw":{"type":"integer","title":"NSFW Count","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.nsfw","typeLabel":"integer"},"toxicity":{"type":"array","title":"Toxicity Categories","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.toxicity.items.[INDEX]","typeLabel":"string"},"example":["toxicity","severe_toxicity","obscene","threat","insult","identity_hate"],"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.toxicity","typeLabel":"string[]"},"pii":{"type":"integer","title":"PII Count","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.pii","typeLabel":"integer"},"injection_attack":{"type":"integer","title":"Injection Attack","description":"1 when a prompt-injection or jailbreak attempt was detected, 0 otherwise. Which attack types fired is reported in details.injection_attack.detected_attacks.","example":1,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.injection_attack","typeLabel":"integer"},"keyword_detected":{"type":"integer","title":"Keyword Detected Count","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.keyword_detected","typeLabel":"integer"},"system_prompt_similarity":{"type":"integer","title":"System Prompt Similarity","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.system_prompt_similarity","typeLabel":"integer"},"copyright_ip_similarity":{"type":"integer","title":"Copyright/IP Similarity","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.copyright_ip_similarity","typeLabel":"integer"},"policy_violation":{"type":"integer","title":"Policy Adherence Count","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.policy_violation","typeLabel":"integer"},"bias":{"type":"integer","title":"Bias Count","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.bias","typeLabel":"integer"},"sponge_attack":{"type":"integer","title":"Sponge Attack Detected or not","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary.sponge_attack","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.summary","typeLabel":"GuardrailsDetectionResponseSummary ยท object"},"details":{"type":"object","title":"GuardrailsDetectionResponseDetails","properties":{"nsfw":{"type":"object","title":"NSFW Details","properties":{"sfw":{"type":"number","title":"Safe for Work Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.sfw","typeLabel":"number"},"nsfw":{"type":"number","title":"Not Safe for Work Score","example":0.9996041054725647,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.nsfw","typeLabel":"number"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.nsfw","typeLabel":"NSFW Details ยท object"},"toxicity":{"type":"object","title":"Toxicity Details","properties":{"toxicity":{"type":"number","title":"Toxicity Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.toxicity","typeLabel":"number"},"severe_toxicity":{"type":"number","format":"float","title":"Severe Toxicity Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.severe_toxicity","typeLabel":"number\u003cfloat>"},"obscene":{"type":"number","title":"Obscenity Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.obscene","typeLabel":"number"},"threat":{"type":"number","title":"Threat Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.threat","typeLabel":"number"},"insult":{"type":"number","title":"Insult Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.insult","typeLabel":"number"},"identity_hate":{"type":"number","title":"Identity Hate Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.identity_hate","typeLabel":"number"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.toxicity","typeLabel":"Toxicity Details ยท object"},"pii":{"type":"object","title":"PII Details","properties":{"secrets":{"type":"object","title":"Secrets Detected","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.secrets","typeLabel":"Secrets Detected ยท object"},"pii":{"type":"object","title":"PII Details","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.pii","typeLabel":"PII Details ยท object"},"ip_address":{"type":"object","title":"IP Addresses Detected","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.ip_address","typeLabel":"IP Addresses Detected ยท object"},"url":{"type":"object","title":"URLs Detected","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.url","typeLabel":"URLs Detected ยท object"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.pii","typeLabel":"PII Details ยท object"},"injection_attack":{"type":"object","title":"Injection Attack Details","properties":{"safe":{"type":"number","title":"Safe Score","example":"0.000004","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.safe","typeLabel":"number"},"attack":{"type":"number","title":"Attack Score","example":"0.999996","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.attack","typeLabel":"number"},"p_injection":{"type":"string","title":"Injection Probability","description":"Probability that the input is a prompt-injection attempt, to 6 decimal places.","example":"0.998970","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.p_injection","typeLabel":"string"},"p_jailbreak":{"type":"string","title":"Jailbreak Probability","description":"Probability that the input is a jailbreak attempt, to 6 decimal places.","example":"0.103658","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.p_jailbreak","typeLabel":"string"},"detected_attacks":{"type":"array","title":"Detected Attacks","description":"The attack types that fired. Empty when nothing was detected, and non-empty exactly when summary.injection_attack is 1. Populated on the text detect paths; the image and audio endpoints report only the summary verdict.","items":{"type":"string","enum":["injection","jailbreak"],"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.detected_attacks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["injection"],"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.detected_attacks","typeLabel":"enum\u003cstring>[]"},"explanation":{"type":"string","title":"Explanation","description":"One-sentence reason for a confirmed attack. Populated only when the request set `need_explanation: true` and an attack was confirmed; an empty string otherwise.","example":"Instructs the AI to ignore its system prompt and reveal hidden instructions.","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.explanation","typeLabel":"string"},"most_unsafe_content":{"type":"string","title":"Most Unsafe Content","description":"The most unsafe content detected in the input","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.most_unsafe_content","typeLabel":"string"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.injection_attack","typeLabel":"Injection Attack Details ยท object"},"keyword_detector":{"type":"object","title":"Keyword Detector Details","properties":{"detected_keywords":{"type":"array","title":"Detected Keywords","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.keyword_detector.detected_keywords.items.[INDEX]","typeLabel":"string"},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.keyword_detector.detected_keywords","typeLabel":"string[]"},"detected_counts":{"type":"object","title":"Detected Counts","example":{"keyword1":1,"keyword2":2},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.keyword_detector.detected_counts","typeLabel":"Detected Counts ยท object"},"redacted_text":{"type":"string","title":"Redacted Text","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.keyword_detector.redacted_text","typeLabel":"string"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.keyword_detector","typeLabel":"Keyword Detector Details ยท object"},"system_prompt":{"type":"object","title":"System Prompt Similarity","properties":{"similarity_score":{"type":"integer","title":"Similarity Score","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.similarity_score","typeLabel":"integer"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.system_prompt","typeLabel":"System Prompt Similarity ยท object"},"copyright_ip":{"type":"object","title":"Copyright/IP Similarity Details","properties":{"similarity_score":{"type":"integer","title":"Similarity Score","example":0,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.similarity_score","typeLabel":"integer"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.copyright_ip","typeLabel":"Copyright/IP Similarity Details ยท object"},"policy_violation":{"type":"object","title":"Policy Adherence Details","properties":{"violating_policy":{"type":"string","title":"Violating Policy","description":"Legacy string of the violated policy line(s). Always returned regardless of whether the config used rules or policy_text.","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violating_policy","typeLabel":"string"},"violated_rules":{"type":"array","title":"Violated Rules","description":"NEW โ full rule objects that were violated. Present ONLY when the request's policy_violation config used the structured `rules` array. On an ambiguous violation (empty/all markers) this contains every enforced rule (safe default).","items":{"title":"Rule","type":"object","properties":{"id":{"title":"Id","type":"string","example":"priv-1","isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].id","typeLabel":"string"},"text":{"title":"Text","type":"string","example":"The assistant must not provide individualized investment advice.","isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].text","typeLabel":"string"},"risk_category":{"title":"Risk Category","type":"string","example":"legal_ip_liability","enum":["security_fraud","safety_harm","privacy_data_protection","brand_reputation_trust","bias_fairness_ethical","legal_ip_liability","product_misuse_abuse","performance_reliability_quality"],"isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].risk_category","typeLabel":"enum\u003cstring>"},"applicability":{"title":"Applicability","type":"string","example":"assistant","enum":["assistant","user","user_assistant"],"isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].applicability","typeLabel":"enum\u003cstring>"},"severity":{"title":"Severity","type":"string","example":"medium","enum":["critical","high","medium","low"],"isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"source":{"title":"Source","type":"string","example":"document","enum":["document","catalog","document/catalog","user"],"isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"suggested":{"title":"Suggested","type":"boolean","example":false,"isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].suggested","typeLabel":"boolean"},"display_text":{"title":"Display Text","type":"string","example":"No individualized investment advice","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].display_text","typeLabel":"string"},"frameworks":{"title":"Frameworks","type":"array","items":{"type":"string","enum":["hipaa","finra","gdpr","ccpa","owasp_llm_2025","nist_ai_rmf","eu_ai_act","iso_42001"],"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].frameworks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].frameworks","typeLabel":"enum\u003cstring>[]"},"mappings":{"title":"Mappings","type":"array","items":{"type":"object","properties":{"framework":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].mappings.items.[INDEX].framework","typeLabel":"string"},"clause":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].mappings.items.[INDEX].clause","typeLabel":"string"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].mappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX].mappings","typeLabel":"Mappings ยท object[]"}},"required":["id","text","risk_category","applicability","severity","source","suggested"],"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules.items.[INDEX]","typeLabel":"Rule ยท object"},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.violated_rules","typeLabel":"Rule ยท object[]"},"explanation":{"type":"string","title":"Explanation","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.explanation","typeLabel":"string"},"most_unsafe_content":{"type":"string","title":"Most Unsafe Content","description":"The chunk of the input that triggered the violation. Empty string when no violation was found.","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation.most_unsafe_content","typeLabel":"string"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.policy_violation","typeLabel":"Policy Adherence Details ยท object"},"bias":{"type":"object","title":"Bias Details","properties":{"bias_detected":{"type":"boolean","title":"Bias Detected","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.bias_detected","typeLabel":"boolean"},"biased_text":{"type":"string","title":"Biased Text","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.biased_text","typeLabel":"string"},"debiased_text":{"type":"string","title":"Debiased Text","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.debiased_text","typeLabel":"string"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.bias","typeLabel":"Bias Details ยท object"},"sponge_attack":{"type":"object","title":"Sponge Attack Details","properties":{"sponge_attack_detected":{"type":"boolean","title":"Sponge Attack Detected","example":false,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.sponge_attack_detected","typeLabel":"boolean"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails.details.sponge_attack","typeLabel":"Sponge Attack Details ยท object"}},"isRequired":true,"uniqueKey":"enkrypt_policy_detections.input_guardrails.details","typeLabel":"GuardrailsDetectionResponseDetails ยท object"},"result_message":{"oneOf":[{"type":"string","title":"Result Message","description":"Block message when a block-type detector triggers (custom or built-in default), revised text when only revise-type detectors trigger, or null when no detections fire.","uniqueKey":"enkrypt_policy_detections.input_guardrails.result_message.oneOf.0","typeLabel":"string"},{"type":"null","title":"Result Message","description":"Block message when a block-type detector triggers (custom or built-in default), revised text when only revise-type detectors trigger, or null when no detections fire.","uniqueKey":"enkrypt_policy_detections.input_guardrails.result_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"enkrypt_policy_detections.input_guardrails.result_message","typeLabel":"string | null"},"user_metadata":{"type":"object","description":"Optional arbitrary metadata object echoed back in the response. Limits: at most 16 top-level keys, key names up to 64 characters, nesting depth up to 3, total serialized size up to 4 KB. When provided and valid, this object is also echoed as a top-level `user_metadata` key on error responses (4xx/5xx) of endpoints that accept it; invalid or oversized metadata is never echoed, including on the 422 response it causes.","additionalProperties":true,"maxProperties":16,"example":{"request_id":"abc-123","source":"mobile-app"},"uniqueKey":"enkrypt_policy_detections.input_guardrails.user_metadata","typeLabel":"object"}},"uniqueKey":"enkrypt_policy_detections.input_guardrails","typeLabel":"GuardrailsDetectionResponse ยท object"},"output_guardrails":{"title":"GuardrailsDetectionResponse","type":"object","required":["summary","details"],"properties":{"summary":{"type":"object","title":"GuardrailsDetectionResponseSummary","properties":{"nsfw":{"type":"integer","title":"NSFW Count","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.nsfw","typeLabel":"integer"},"toxicity":{"type":"array","title":"Toxicity Categories","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.toxicity.items.[INDEX]","typeLabel":"string"},"example":["toxicity","severe_toxicity","obscene","threat","insult","identity_hate"],"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.toxicity","typeLabel":"string[]"},"pii":{"type":"integer","title":"PII Count","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.pii","typeLabel":"integer"},"injection_attack":{"type":"integer","title":"Injection Attack","description":"1 when a prompt-injection or jailbreak attempt was detected, 0 otherwise. Which attack types fired is reported in details.injection_attack.detected_attacks.","example":1,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.injection_attack","typeLabel":"integer"},"keyword_detected":{"type":"integer","title":"Keyword Detected Count","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.keyword_detected","typeLabel":"integer"},"system_prompt_similarity":{"type":"integer","title":"System Prompt Similarity","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.system_prompt_similarity","typeLabel":"integer"},"copyright_ip_similarity":{"type":"integer","title":"Copyright/IP Similarity","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.copyright_ip_similarity","typeLabel":"integer"},"policy_violation":{"type":"integer","title":"Policy Adherence Count","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.policy_violation","typeLabel":"integer"},"bias":{"type":"integer","title":"Bias Count","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.bias","typeLabel":"integer"},"sponge_attack":{"type":"integer","title":"Sponge Attack Detected or not","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary.sponge_attack","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.summary","typeLabel":"GuardrailsDetectionResponseSummary ยท object"},"details":{"type":"object","title":"GuardrailsDetectionResponseDetails","properties":{"nsfw":{"type":"object","title":"NSFW Details","properties":{"sfw":{"type":"number","title":"Safe for Work Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.sfw","typeLabel":"number"},"nsfw":{"type":"number","title":"Not Safe for Work Score","example":0.9996041054725647,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.nsfw","typeLabel":"number"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.nsfw","typeLabel":"NSFW Details ยท object"},"toxicity":{"type":"object","title":"Toxicity Details","properties":{"toxicity":{"type":"number","title":"Toxicity Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.toxicity","typeLabel":"number"},"severe_toxicity":{"type":"number","format":"float","title":"Severe Toxicity Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.severe_toxicity","typeLabel":"number\u003cfloat>"},"obscene":{"type":"number","title":"Obscenity Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.obscene","typeLabel":"number"},"threat":{"type":"number","title":"Threat Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.threat","typeLabel":"number"},"insult":{"type":"number","title":"Insult Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.insult","typeLabel":"number"},"identity_hate":{"type":"number","title":"Identity Hate Score","example":0.000395895738620311,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.identity_hate","typeLabel":"number"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.toxicity","typeLabel":"Toxicity Details ยท object"},"pii":{"type":"object","title":"PII Details","properties":{"secrets":{"type":"object","title":"Secrets Detected","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.secrets","typeLabel":"Secrets Detected ยท object"},"pii":{"type":"object","title":"PII Details","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.pii","typeLabel":"PII Details ยท object"},"ip_address":{"type":"object","title":"IP Addresses Detected","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.ip_address","typeLabel":"IP Addresses Detected ยท object"},"url":{"type":"object","title":"URLs Detected","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.url","typeLabel":"URLs Detected ยท object"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.pii","typeLabel":"PII Details ยท object"},"injection_attack":{"type":"object","title":"Injection Attack Details","properties":{"safe":{"type":"number","title":"Safe Score","example":"0.000004","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.safe","typeLabel":"number"},"attack":{"type":"number","title":"Attack Score","example":"0.999996","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.attack","typeLabel":"number"},"p_injection":{"type":"string","title":"Injection Probability","description":"Probability that the input is a prompt-injection attempt, to 6 decimal places.","example":"0.998970","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.p_injection","typeLabel":"string"},"p_jailbreak":{"type":"string","title":"Jailbreak Probability","description":"Probability that the input is a jailbreak attempt, to 6 decimal places.","example":"0.103658","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.p_jailbreak","typeLabel":"string"},"detected_attacks":{"type":"array","title":"Detected Attacks","description":"The attack types that fired. Empty when nothing was detected, and non-empty exactly when summary.injection_attack is 1. Populated on the text detect paths; the image and audio endpoints report only the summary verdict.","items":{"type":"string","enum":["injection","jailbreak"],"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.detected_attacks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["injection"],"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.detected_attacks","typeLabel":"enum\u003cstring>[]"},"explanation":{"type":"string","title":"Explanation","description":"One-sentence reason for a confirmed attack. Populated only when the request set `need_explanation: true` and an attack was confirmed; an empty string otherwise.","example":"Instructs the AI to ignore its system prompt and reveal hidden instructions.","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.explanation","typeLabel":"string"},"most_unsafe_content":{"type":"string","title":"Most Unsafe Content","description":"The most unsafe content detected in the input","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.most_unsafe_content","typeLabel":"string"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.injection_attack","typeLabel":"Injection Attack Details ยท object"},"keyword_detector":{"type":"object","title":"Keyword Detector Details","properties":{"detected_keywords":{"type":"array","title":"Detected Keywords","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.keyword_detector.detected_keywords.items.[INDEX]","typeLabel":"string"},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.keyword_detector.detected_keywords","typeLabel":"string[]"},"detected_counts":{"type":"object","title":"Detected Counts","example":{"keyword1":1,"keyword2":2},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.keyword_detector.detected_counts","typeLabel":"Detected Counts ยท object"},"redacted_text":{"type":"string","title":"Redacted Text","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.keyword_detector.redacted_text","typeLabel":"string"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.keyword_detector","typeLabel":"Keyword Detector Details ยท object"},"system_prompt":{"type":"object","title":"System Prompt Similarity","properties":{"similarity_score":{"type":"integer","title":"Similarity Score","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.similarity_score","typeLabel":"integer"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.system_prompt","typeLabel":"System Prompt Similarity ยท object"},"copyright_ip":{"type":"object","title":"Copyright/IP Similarity Details","properties":{"similarity_score":{"type":"integer","title":"Similarity Score","example":0,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.similarity_score","typeLabel":"integer"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.copyright_ip","typeLabel":"Copyright/IP Similarity Details ยท object"},"policy_violation":{"type":"object","title":"Policy Adherence Details","properties":{"violating_policy":{"type":"string","title":"Violating Policy","description":"Legacy string of the violated policy line(s). Always returned regardless of whether the config used rules or policy_text.","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violating_policy","typeLabel":"string"},"violated_rules":{"type":"array","title":"Violated Rules","description":"NEW โ full rule objects that were violated. Present ONLY when the request's policy_violation config used the structured `rules` array. On an ambiguous violation (empty/all markers) this contains every enforced rule (safe default).","items":{"title":"Rule","type":"object","properties":{"id":{"title":"Id","type":"string","example":"priv-1","isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].id","typeLabel":"string"},"text":{"title":"Text","type":"string","example":"The assistant must not provide individualized investment advice.","isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].text","typeLabel":"string"},"risk_category":{"title":"Risk Category","type":"string","example":"legal_ip_liability","enum":["security_fraud","safety_harm","privacy_data_protection","brand_reputation_trust","bias_fairness_ethical","legal_ip_liability","product_misuse_abuse","performance_reliability_quality"],"isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].risk_category","typeLabel":"enum\u003cstring>"},"applicability":{"title":"Applicability","type":"string","example":"assistant","enum":["assistant","user","user_assistant"],"isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].applicability","typeLabel":"enum\u003cstring>"},"severity":{"title":"Severity","type":"string","example":"medium","enum":["critical","high","medium","low"],"isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].severity","typeLabel":"enum\u003cstring>"},"source":{"title":"Source","type":"string","example":"document","enum":["document","catalog","document/catalog","user"],"isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"suggested":{"title":"Suggested","type":"boolean","example":false,"isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].suggested","typeLabel":"boolean"},"display_text":{"title":"Display Text","type":"string","example":"No individualized investment advice","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].display_text","typeLabel":"string"},"frameworks":{"title":"Frameworks","type":"array","items":{"type":"string","enum":["hipaa","finra","gdpr","ccpa","owasp_llm_2025","nist_ai_rmf","eu_ai_act","iso_42001"],"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].frameworks.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].frameworks","typeLabel":"enum\u003cstring>[]"},"mappings":{"title":"Mappings","type":"array","items":{"type":"object","properties":{"framework":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].mappings.items.[INDEX].framework","typeLabel":"string"},"clause":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].mappings.items.[INDEX].clause","typeLabel":"string"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].mappings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX].mappings","typeLabel":"Mappings ยท object[]"}},"required":["id","text","risk_category","applicability","severity","source","suggested"],"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules.items.[INDEX]","typeLabel":"Rule ยท object"},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.violated_rules","typeLabel":"Rule ยท object[]"},"explanation":{"type":"string","title":"Explanation","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.explanation","typeLabel":"string"},"most_unsafe_content":{"type":"string","title":"Most Unsafe Content","description":"The chunk of the input that triggered the violation. Empty string when no violation was found.","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation.most_unsafe_content","typeLabel":"string"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.policy_violation","typeLabel":"Policy Adherence Details ยท object"},"bias":{"type":"object","title":"Bias Details","properties":{"bias_detected":{"type":"boolean","title":"Bias Detected","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.bias_detected","typeLabel":"boolean"},"biased_text":{"type":"string","title":"Biased Text","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.biased_text","typeLabel":"string"},"debiased_text":{"type":"string","title":"Debiased Text","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.debiased_text","typeLabel":"string"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.bias","typeLabel":"Bias Details ยท object"},"sponge_attack":{"type":"object","title":"Sponge Attack Details","properties":{"sponge_attack_detected":{"type":"boolean","title":"Sponge Attack Detected","example":false,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.sponge_attack_detected","typeLabel":"boolean"},"compliance_mapping":{"type":"object","title":"Compliance Mapping","description":"Mapping of detection to regulatory compliance frameworks","properties":{"owasp_llm_2025":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.owasp_llm_2025.items.[INDEX]","typeLabel":"string"},"title":"OWASP LLM Top 10 2025","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.owasp_llm_2025","typeLabel":"string[]"},"mitre_atlas":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.mitre_atlas.items.[INDEX]","typeLabel":"string"},"title":"MITRE ATLAS","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.mitre_atlas","typeLabel":"string[]"},"nist_ai_rmf":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.nist_ai_rmf.items.[INDEX]","typeLabel":"string"},"title":"NIST AI Risk Management Framework","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.nist_ai_rmf","typeLabel":"string[]"},"eu_ai_act":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.eu_ai_act.items.[INDEX]","typeLabel":"string"},"title":"EU AI Act","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.eu_ai_act","typeLabel":"string[]"},"iso_iec_standards":{"type":"array","items":{"type":"string","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.iso_iec_standards.items.[INDEX]","typeLabel":"string"},"title":"ISO/IEC Standards","uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping.iso_iec_standards","typeLabel":"string[]"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack.compliance_mapping","typeLabel":"Compliance Mapping ยท object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails.details.sponge_attack","typeLabel":"Sponge Attack Details ยท object"}},"isRequired":true,"uniqueKey":"enkrypt_policy_detections.output_guardrails.details","typeLabel":"GuardrailsDetectionResponseDetails ยท object"},"result_message":{"oneOf":[{"type":"string","title":"Result Message","description":"Block message when a block-type detector triggers (custom or built-in default), revised text when only revise-type detectors trigger, or null when no detections fire.","uniqueKey":"enkrypt_policy_detections.output_guardrails.result_message.oneOf.0","typeLabel":"string"},{"type":"null","title":"Result Message","description":"Block message when a block-type detector triggers (custom or built-in default), revised text when only revise-type detectors trigger, or null when no detections fire.","uniqueKey":"enkrypt_policy_detections.output_guardrails.result_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"enkrypt_policy_detections.output_guardrails.result_message","typeLabel":"string | null"},"user_metadata":{"type":"object","description":"Optional arbitrary metadata object echoed back in the response. Limits: at most 16 top-level keys, key names up to 64 characters, nesting depth up to 3, total serialized size up to 4 KB. When provided and valid, this object is also echoed as a top-level `user_metadata` key on error responses (4xx/5xx) of endpoints that accept it; invalid or oversized metadata is never echoed, including on the 422 response it causes.","additionalProperties":true,"maxProperties":16,"example":{"request_id":"abc-123","source":"mobile-app"},"uniqueKey":"enkrypt_policy_detections.output_guardrails.user_metadata","typeLabel":"object"}},"uniqueKey":"enkrypt_policy_detections.output_guardrails","typeLabel":"GuardrailsDetectionResponse ยท object"}},"uniqueKey":"enkrypt_policy_detections","typeLabel":"object"}},"uniqueKey":"","typeLabel":"EnkryptCreateCompletionResponse ยท object"},"examples":{"example":{"title":"example","value":{"id":"9023f7795cc53994","object":"text.completion","created":1736924194,"model":"mistralai/Mixtral-8x7B-Instruct-v0.1","prompt":[],"choices":[{"text":"?\n\nA: Why don't scientists trust atoms?\n\nQ: Why?\n\nA: Because they make up everything!\n\n## What is the best family joke?\n\nA: Why was the math book sad?\n\nQ: Because it had too many problems.\n\n## What is a clean joke for kids?\n\nA: Why did the scarecrow win an award?\n\nQ: Because he was outstanding in his field.\n\n## What is a good clean joke?\n\nA: Why did the bicycle fall over?\n\nQ: Because it was two-tired.\n\n## What is a good clean joke for adults?\n\nA: Why did the tomato turn red?\n\nQ: Because it saw the salad dressing.\n\n## What is a good clean joke for kids and adults?\n\nA: Why did the coffee file a police report?\n\nQ: It got mugged.\n\n## What is a good clean joke for kids and adults that is also a pun?\n\nA: Why couldn't the bicycle stand up by itself?\n\nQ: It was two tired.\n\n## What is a good clean joke for kids and adults that is also a riddle?\n\nA: I have keys but no locks. I have space but no room. You can enter, but can't go outside. What am I?\n\nQ: A keyboard.\n\n## What is a good clean joke for kids and adults that is also a one-liner?\n\nA: I told my wife she should embrace her mistakes... She gave me a hug.\n\n## What is a good clean joke for kids and adults that is also a wordplay?\n\nA: I used to be a baker, but I couldn't make enough dough.\n\n## What is a good clean joke for kids and adults that is also a play on words?\n\nA: I was going to buy a book on anti-gravity, but I couldn't find one.\n\n## What is a good clean joke for kids and adults that is also a witty remark?\n\nA: I'm not arguing, I'm just explaining why I'm right.\n\n## What is a good clean joke for kids and adults that is also a clever observation?\n\nA: I'm not lazy, I'm just conserving energy.\n\n## What is a good clean joke for kids and adults that is also a humorous comment?\n\nA: I'm not arguing, I'm just passionately expressing my point of view while completely dismissing yours.\n\n## What is a good clean joke for kids and adults that is also a light-hearted quip?\n\nA: I'm not arguing, I'm just providing a different perspective that happens to be the correct one.\n\n## What is a good clean joke for kids and adults that is also a funny retort?\n\nA: I'm not arguing, I'm just having a heated discussion with someone who is clearly wrong.\n\n## What is a good clean joke for kids and adults that is also a sarcastic remark?\n\nA: I'm not arguing, I'm just engaging in a civil discourse with someone who is clearly misinformed.\n\n## What is a good clean joke for kids and adults that is also a humorous comeback?\n\nA: I'm not arguing, I'm just correcting your misguided notions with the power of facts and logic.\n\n## What is a good clean joke for kids and adults that is also a witty comeback?\n\nA: I'm not arguing, I'm just demonstrating the superiority of my intellect over your ignorance.\n\n## What is a good clean joke for kids and adults that is also a clever comeback?\n\nA: I'm not arguing, I'm just proving beyond a shadow of a doubt that I am right and you are wrong.\n\n## What is a good clean joke for kids and adults that is also a sharp comeback?\n\nA: I'm not arguing, I'm just using my superior reasoning skills to dismantle your flawed argument.\n\n## What is a good clean joke for kids and adults that is also a biting comeback?\n\nA: I'm not arguing, I'm just showing you the error of your ways with the precision of a master debater.\n\n## What is a good clean joke for kids and adults that is also a cutting comeback?\n\nA: I'm not arguing, I'm just using my vast knowledge and intelligence to expose the holes in your argument.\n\n## What is a good clean joke for kids and adults that is also a crushing comeback?\n\nA: I'm not arguing, I'm just using my unparalleled wit and intellect to destroy your argument and leave you in ruins.\n\n## What is a good clean joke for kids and adults that is also a devastating comeback?\n\nA: I'm not arguing, I'm just using my superior debating skills to annihilate your argument and leave you humiliated.\n\n## What is a good clean joke for kids and adults that is also a withering comeback?\n\nA: I'm not arguing, I'm just using my razor-sharp wit and intellect to eviscerate your argument and leave you speechless.\n\n## What is a good clean joke for kids and adults that is also a scathing comeback?\n\nA: I'm not arguing, I'm just using my formidable debating skills to incinerate your argument and reduce it to ashes.\n\n## What is a good clean joke for kids and adults that is also a merciless comeback?\n\nA: I'm not arguing, I'm just using my unrelenting logic and reason to obliterate your argument and leave you defeated.\n\n## What is a good clean joke for kids and adults that is also a ruthless comeback?\n\nA: I'm not arguing, I'm just using my irrefutable arguments and undeniable facts to demolish your argument and leave you in shambles.\n\n## What is a good clean joke for kids and adults that is also a savage comeback?\n\nA: I'm not arguing, I'm just using my brutal honesty and incisive intellect to disembowel your argument and leave you bleeding out.\n\n## What is a good clean joke for kids and adults that is also a vicious comeback?\n\nA: I'm not arguing, I'm just using my ruthless logic and unyielding reason to eviscerate your argument and leave you writhing in pain.\n\n## What is a good clean joke for kids and adults that is also a ferocious comeback?\n\nA: I'm not arguing, I'm just using my merciless wit and unstoppable intellect to shred your argument to pieces and leave you trembling in fear.\n\n## What is a good clean joke for kids and adults that is also a relentless comeback?\n\nA: I'm not arguing, I'm just using my remorseless logic and unforgiving reason to tear your argument apart and leave you begging for mercy.\n\n## What is a good clean joke for kids and adults that is also a remorseless comeback?\n\nA: I'm not arguing, I'm just using my pitiless wit and unyielding intellect to annihilate your argument and leave you weeping in despair.\n\n## What is a good clean joke for kids and adults that is also a heartless comeback?\n\nA: I'm not arguing, I'm just using my cold, calculating logic to destroy your argument and leave you broken and defeated.\n\n## What is a good clean joke for kids and adults that is also a ruthless comeback?\n\nA: I'm not arguing, I'm just using my relentless logic and unyielding reason to crush your argument and leave you in ruins.\n\n## What is a good clean joke for kids and adults that is also a merciless comeback?\n\nA: I'm not arguing, I'm just using my unyielding intellect and remorseless logic to obliterate your argument and leave you humiliated.\n\n## What is a good clean joke for kids and adults that is also a savage comeback?\n\nA: I'm not arguing, I'm just using my ruthless wit and unyielding intellect to eviscerate your argument and leave you trembling in fear.\n\n## What is a good clean joke for kids and adults that is also a crushing comeback?\n\nA: I'm not arguing, I'm just using my merciless logic and unrelenting reason to shred your argument to pieces and leave you begging for mercy.\n\n## What is a good clean joke for kids and adults that is also a devastating comeback?\n\nA: I'm not arguing, I'm just using my remorseless w","finish_reason":"length","seed":14925105257546449000,"logprobs":null,"index":0}],"usage":{"prompt_tokens":7,"completion_tokens":2048,"total_tokens":2055},"enkrypt_policy_detections":{"output_guardrails":{"details":{"keyword_detector":{"detected_counts":{},"redacted_text":" Hello! How can I assist you today?","detected_keywords":{}},"policy_violation":{"violating_policy":"No Violation Found","explanation":"No Violation Found.","most_unsafe_content":""},"bias":{"bias_detected":false,"debiased_text":"Hello! How may I help you today?"},"pii":{"ip_address":{},"url":{},"pii":{},"secrets":{}},"nsfw":{"sfw":0.77364963293076,"nsfw":0.14463838934898},"toxicity":{"threat":0.00013719938579015,"severe_toxicity":0.00013394378765952,"obscene":0.00018259837816004,"insult":0.00018637960602064,"toxicity":0.00058524927590042,"identity_hate":0.00014582877338398},"injection_attack":{"safe":"0.998087","attack":"0.001913","p_injection":"0.001913","p_jailbreak":"0.000318","detected_attacks":[]}},"summary":{"keyword_detected":0,"policy_violation":0,"bias":0,"pii":0,"nsfw":0,"toxicity":{},"injection_attack":0,"sponge_attack":0}},"input_guardrails":{"details":{"keyword_detector":{"detected_counts":{},"redacted_text":"|","detected_keywords":{}},"policy_violation":{"violating_policy":"No Violation Found","explanation":"No Violation Found.","most_unsafe_content":""},"bias":{"bias_detected":false,"debiased_text":"No rephrasing needed."},"pii":{"ip_address":{},"url":{},"pii":{},"secrets":{}},"nsfw":{"sfw":0.23262414336205,"nsfw":0.75041556358337},"toxicity":{"threat":0.0001007060345728,"severe_toxicity":0.00010207855666522,"obscene":0.00019277907267679,"insult":0.00018571241525933,"toxicity":0.0011186309857294,"identity_hate":0.00013926414248999},"injection_attack":{"safe":"0.999906","attack":"0.000094","p_injection":"0.000094","p_jailbreak":"0.000318","detected_attacks":[]},"sponge_attack":{"sponge_attack_detected":false}},"summary":{"keyword_detected":0,"policy_violation":0,"bias":0,"pii":0,"nsfw":1,"toxicity":{},"injection_attack":0,"sponge_attack":0}}}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"8565320a-4e60-418d-8700-2d1d509f0638":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"apikey","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"46d259d2-9225-46ce-aca1-4e05427371e5":{"url":"https://api.enkryptai.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"apikey","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"apikey","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"apikey"}],"title":"apiKeyAuth"}]},"originalFileLocation":"enkrypt-openapi.json"},"subdomain":"enkryptai-42","siteName":"Enkrypt AI","title":"AI Completions Proxy Endpoint - Enkrypt AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T09:28:10.944Z","originalFileLocation":"api-reference/ai-proxy-api-reference/endpoint/completions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Enkrypt AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"AI Completions Proxy Endpoint - Enkrypt AI\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Enkrypt AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://enkryptai-42.mintlify.app/_mintlify/api/og/v2?division=%F0%9F%94%8C+AI+Proxy+API\u0026amp;title=AI+Completions+Proxy+Endpoint\u0026amp;theme=3d60806929a37a29522c9c45\u0026amp;signature=1ee459e25ee354ecb36552eb3389b91aed7b35ca1344926f0a3f8ea9985020ab\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"AI Completions Proxy Endpoint - Enkrypt AI\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://enkryptai-42.mintlify.app/_mintlify/api/og/v2?division=%F0%9F%94%8C+AI+Proxy+API\u0026amp;title=AI+Completions+Proxy+Endpoint\u0026amp;theme=3d60806929a37a29522c9c45\u0026amp;signature=1ee459e25ee354ecb36552eb3389b91aed7b35ca1344926f0a3f8ea9985020ab\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/enkryptai-42/zTk8P2FqD4OFror7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Enkrypt AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff6b6b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/ai-proxy-api-reference/endpoint/completions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.enkryptai.com/#organization\",\"name\":\"Enkrypt AI\",\"url\":\"https://docs.enkryptai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/enkryptai-42/7kWxrBaXsO0YvXjU/logo/light-logo.png?fit=max\u0026auto=format\u0026n=7kWxrBaXsO0YvXjU\u0026q=85\u0026s=3e4d5072cef08dc6b8885a03a7821b72\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.enkryptai.com#website\",\"name\":\"Enkrypt AI\",\"url\":\"https://docs.enkryptai.com\",\"publisher\":{\"@id\":\"https://docs.enkryptai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions#webpage\",\"url\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions\",\"name\":\"AI Completions Proxy Endpoint\",\"dateModified\":\"2026-10-28T09:28:10.944Z\",\"isPartOf\":{\"@id\":\"https://docs.enkryptai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.enkryptai.com/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"๐ AI Proxy API\",\"item\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/chat-completions\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AI Completions Proxy Endpoint\",\"item\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions#apireference\",\"headline\":\"AI Completions Proxy Endpoint\",\"name\":\"AI Completions Proxy Endpoint\",\"url\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.enkryptai.com/api-reference/ai-proxy-api-reference/endpoint/completions#webpage\"},\"dateModified\":\"2026-10-28T09:28:10.944Z\",\"publisher\":{\"@id\":\"https://docs.enkryptai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.enkryptai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Enkrypt AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Enkrypt AI","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home/introduction"}]},{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Overview","href":"/api-reference/introduction"},{"group":"๐ Code of Conduct API","pages":[{"title":"Infer Document","openapi":"POST /guardrails/policy-wizard/infer-document","href":"/api-reference/coc-api-reference/endpoint/infer-document"},{"title":"Generate Rules","openapi":"POST /guardrails/policy-wizard/generate-rules","href":"/api-reference/coc-api-reference/endpoint/generate-rules"},{"title":"Add Policy","openapi":"POST /code-of-conduct/add-policy","href":"/api-reference/coc-api-reference/endpoint/add-policy"},{"title":"Get Policy","openapi":"GET /code-of-conduct/get-policy","href":"/api-reference/coc-api-reference/endpoint/get-policy"},{"title":"Modify Policy","openapi":"PATCH /code-of-conduct/modify-policy","href":"/api-reference/coc-api-reference/endpoint/modify-policy"},{"title":"Delete Policy","openapi":"DELETE /code-of-conduct/delete-policy","href":"/api-reference/coc-api-reference/endpoint/delete-policy"},{"title":"List Policies","openapi":"GET /code-of-conduct/list-policies","href":"/api-reference/coc-api-reference/endpoint/list-policies"}]},{"group":"๐ก๏ธ Guardrails API Endpoints","pages":[{"openapi":"GET /guardrails/health","title":"Health Check","href":"/api-reference/guardrails-api-reference/endpoint/health-check"},{"openapi":"GET /guardrails/status","title":"Status Check","href":"/api-reference/guardrails-api-reference/endpoint/status"},{"openapi":"GET /guardrails/models","title":"Models Loaded","href":"/api-reference/guardrails-api-reference/endpoint/models"},{"openapi":"POST /guardrails/detect","title":"Guardrails Detect","href":"/api-reference/guardrails-api-reference/endpoint/detect"},{"openapi":"POST /guardrails/batch/detect","title":"Guardrails Batch Detect","href":"/api-reference/guardrails-api-reference/endpoint/batch-detect"},{"title":"Scan URL","openapi":"POST /guardrails/scan-url","href":"/api-reference/guardrails-api-reference/endpoint/scan-url"},{"title":"Scan PDF","openapi":"POST /guardrails/scan-pdf","href":"/api-reference/guardrails-api-reference/endpoint/scan-pdf"},{"title":"Detect Image","openapi":"POST /guardrails/detect-image","href":"/api-reference/guardrails-api-reference/endpoint/detect-image"},{"title":"Detect Audio","openapi":"POST /guardrails/detect-audio","href":"/api-reference/guardrails-api-reference/endpoint/detect-audio"},{"title":"Guardrail Detect Image","openapi":"POST /guardrails/guardrail/detect-image","href":"/api-reference/guardrails-api-reference/endpoint/guardrail-detect-image"},{"title":"Guardrail Detect Audio","openapi":"POST /guardrails/guardrail/detect-audio","href":"/api-reference/guardrails-api-reference/endpoint/guardrail-detect-audio"},{"openapi":"POST /guardrails/pii","title":"PII anonymization and de-anonymization","href":"/api-reference/guardrails-api-reference/endpoint/pii"},{"openapi":"POST /guardrails/hallucination","title":"Detect Hallucination","href":"/api-reference/guardrails-api-reference/endpoint/hallucination"},{"openapi":"POST /guardrails/adherence","title":"Guardrails Adherence","href":"/api-reference/guardrails-api-reference/endpoint/adherence"},{"openapi":"POST /guardrails/relevancy","title":"Guardrails Relevancy","href":"/api-reference/guardrails-api-reference/endpoint/relevancy"},{"title":"Add Guardrail","openapi":"POST /guardrails/add-guardrail","href":"/api-reference/guardrails-api-reference/endpoint/add-guardrail"},{"title":"Get Guardrail","openapi":"GET /guardrails/get-guardrail","href":"/api-reference/guardrails-api-reference/endpoint/get-guardrail"},{"title":"Modify Guardrail","openapi":"PATCH /guardrails/modify-guardrail","href":"/api-reference/guardrails-api-reference/endpoint/modify-guardrail"},{"title":"Delete Guardrail","openapi":"DELETE /guardrails/delete-guardrail","href":"/api-reference/guardrails-api-reference/endpoint/delete-guardrail"},{"title":"List Guardrails","openapi":"GET /guardrails/list-guardrails","href":"/api-reference/guardrails-api-reference/endpoint/list-guardrails"},{"title":"Detect with Guardrail","openapi":"POST /guardrails/guardrail/detect","href":"/api-reference/guardrails-api-reference/endpoint/detect-using-guardrail"},{"title":"Batch Detect with Guardrail","openapi":"POST /guardrails/guardrail/batch/detect","href":"/api-reference/guardrails-api-reference/endpoint/batch-detect-using-guardrail"},{"title":"Guardrail Scan URL","openapi":"POST /guardrails/guardrail/scan-url","href":"/api-reference/guardrails-api-reference/endpoint/guardrail-scan-url"},{"title":"Guardrail Scan PDF","openapi":"POST /guardrails/guardrail/scan-pdf","href":"/api-reference/guardrails-api-reference/endpoint/guardrail-scan-pdf"}]},{"group":"๐ค Models API (Endpoints)","pages":[{"openapi":"POST /models/add-model","title":"Create Model","href":"/api-reference/models-api-reference/endpoint/add-model"},{"openapi":"GET /models/get-model","title":"Get Model","href":"/api-reference/models-api-reference/endpoint/get-model"},{"openapi":"PATCH /models/modify-model","title":"Modify Model","href":"/api-reference/models-api-reference/endpoint/modify-model"},{"openapi":"DELETE /models/delete-model","title":"Delete Model","href":"/api-reference/models-api-reference/endpoint/delete-model"},{"title":"List Models","openapi":"GET /models/list-models","href":"/api-reference/models-api-reference/endpoint/list-models"},{"openapi":"GET /models/get-defaults","title":"Get Defaults","href":"/api-reference/models-api-reference/endpoint/get-defaults"}]},{"group":"๐ด Red Team API","pages":[{"openapi":"POST /rt/redteam","title":"Run Redteam","href":"/api-reference/redteam-v2-api-reference/endpoint/run-redteam"},{"openapi":"POST /rt/model/redteam","title":"Run Redteam with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/run-redteam-saved-model"},{"openapi":"POST /rt/redteam/jailbreak","title":"Run Jailbreak Benchmark","href":"/api-reference/redteam-v2-api-reference/endpoint/run-jailbreak"},{"openapi":"POST /rt/model/redteam/jailbreak","title":"Run Jailbreak Benchmark with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/run-jailbreak-saved-model"},{"openapi":"POST /rt/threat-modeling","title":"Run Threat Modeling","href":"/api-reference/redteam-v2-api-reference/endpoint/run-threat-modeling"},{"openapi":"POST /rt/threat-modeling/categories","title":"Run Threat Modeling Categories","href":"/api-reference/redteam-v2-api-reference/endpoint/run-threat-modeling-categories"},{"openapi":"POST /rt/threat-modeling/data","title":"Run Threat Modeling Data","href":"/api-reference/redteam-v2-api-reference/endpoint/run-threat-modeling-data"},{"openapi":"POST /rt/playground","title":"Run Playground","href":"/api-reference/redteam-v2-api-reference/endpoint/run-playground"},{"openapi":"POST /rt/model/playground","title":"Run Playground with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/run-playground-saved-model"},{"openapi":"POST /rt/eval","title":"Submit Eval Batch","href":"/api-reference/redteam-v2-api-reference/endpoint/submit-eval"},{"openapi":"POST /rt/leaderboard","title":"Run Leaderboard","href":"/api-reference/redteam-v2-api-reference/endpoint/run-leaderboard"},{"openapi":"POST /rt/model/leaderboard","title":"Run Leaderboard with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/run-leaderboard-saved-model"},{"openapi":"GET /rt/runs/{run_id}","title":"Get Run Status","href":"/api-reference/redteam-v2-api-reference/endpoint/get-run-status"},{"openapi":"GET /rt/runs/{run_id}/records","title":"Get Run Records","href":"/api-reference/redteam-v2-api-reference/endpoint/get-run-records"},{"openapi":"GET /rt/runs/{run_id}/results","title":"Get Run Results","href":"/api-reference/redteam-v2-api-reference/endpoint/get-run-results"},{"openapi":"GET /rt/runs/{run_id}/compliance/{framework_id}","title":"Get Compliance Report","href":"/api-reference/redteam-v2-api-reference/endpoint/get-compliance-report"},{"openapi":"POST /rt/runs/{run_id}/signal/{name}","title":"Send Signal","href":"/api-reference/redteam-v2-api-reference/endpoint/send-signal"},{"openapi":"POST /rt/runs/{run_id}/resume","title":"Resume Run","href":"/api-reference/redteam-v2-api-reference/endpoint/resume-run"},{"openapi":"GET /rt/runs/{run_id}/stream","title":"Stream Run Events","href":"/api-reference/redteam-v2-api-reference/endpoint/stream-run-events"},{"openapi":"GET /wss/redteam/v1/logs/tasks/{owner_id}/{job_id}/{model_folder}/app.log","playground":"none","title":"Stream Run Logs (WebSocket)","href":"/api-reference/redteam-v2-api-reference/endpoint/stream-run-logs"},{"openapi":"GET /rt/datasets/{dataset_id}","title":"Get Dataset","href":"/api-reference/redteam-v2-api-reference/endpoint/get-dataset"},{"openapi":"POST /rt/model-health","title":"Model Health","href":"/api-reference/redteam-v2-api-reference/endpoint/model-health"},{"openapi":"POST /rt/model/model-health","title":"Model Health with saved model","href":"/api-reference/redteam-v2-api-reference/endpoint/model-health-saved"},{"openapi":"GET /redteam/relay/v1/relay/bridge","playground":"none","title":"Connect a relay bridge (WebSocket)","href":"/api-reference/redteam-v2-api-reference/endpoint/relay-bridge-connect"},{"openapi":"GET /redteam/relay/v1/relay/bridges/{bridge_id}/status","title":"Relay bridge status","href":"/api-reference/redteam-v2-api-reference/endpoint/relay-bridge-status"},{"openapi":"POST /rt/findings","title":"Get findings based on summary","href":"/api-reference/redteam-v2-api-reference/endpoint/get-findings"},{"openapi":"POST /rt/risk-mitigation/system-prompt","title":"Generate a system prompt for risk mitigation based on red teaming test results","href":"/api-reference/redteam-v2-api-reference/endpoint/risk-mitigation-system-prompt"},{"openapi":"POST /rt/risk-mitigation/guardrails-policy","title":"Generate a guardrail and policy for risk mitigation based on summary","href":"/api-reference/redteam-v2-api-reference/endpoint/risk-mitigation-guardrails-policy"},{"openapi":"GET /rt/health","title":"Red Team Health","href":"/api-reference/redteam-v2-api-reference/endpoint/health"},{"openapi":"GET /rt/status-check","title":"Red Team Status Check","href":"/api-reference/redteam-v2-api-reference/endpoint/status-check"}]},{"group":"๐ Deployments API","pages":[{"openapi":"POST /deployments/add-deployment","title":"Create Deployment","href":"/api-reference/deployments-api-reference/endpoint/add-deployment"},{"openapi":"GET /deployments/get-deployment","title":"Get Deployment","href":"/api-reference/deployments-api-reference/endpoint/get-deployment"},{"openapi":"PATCH /deployments/modify-deployment","title":"Modify Deployment","href":"/api-reference/deployments-api-reference/endpoint/modify-deployment"},{"openapi":"DELETE /deployments/delete-deployment","title":"Delete Deployment","href":"/api-reference/deployments-api-reference/endpoint/delete-deployment"},{"title":"List Deployments","openapi":"GET /deployments/list-deployments","href":"/api-reference/deployments-api-reference/endpoint/list-deployments"},{"openapi":"GET /deployments/get-allowed-config","title":"Get Allowed Config","href":"/api-reference/deployments-api-reference/endpoint/get-allowed-config"}]},{"group":"๐ AI Proxy API","pages":[{"openapi":"POST /ai-proxy/chat/completions","title":"AI Chat Completions Proxy Endpoint","description":null,"href":"/api-reference/ai-proxy-api-reference/endpoint/chat-completions"},{"openapi":"POST /ai-proxy/completions","title":"AI Completions Proxy Endpoint","href":"/api-reference/ai-proxy-api-reference/endpoint/completions"}]},{"group":"๐ MCP Hub API","pages":[{"openapi":"POST /mcp-hub/scan","title":"Start a New Vulnerability Scan","description":"Creates a new vulnerability scan job for an MCP server source repository (GitHub URL or npm package). The scan runs asynchronously in the background; use the returned `job_id` to check status and retrieve results.","href":"/api-reference/mcp-hub-api-reference/endpoint/scan"},{"openapi":"POST /mcp-hub/scan/hosted","title":"Scan a Hosted MCP Server","href":"/api-reference/mcp-hub-api-reference/endpoint/hosted-scan"},{"openapi":"POST /mcp-hub/scan/hosted/config","title":"Scan MCP Servers from Config JSON","href":"/api-reference/mcp-hub-api-reference/endpoint/hosted-scan-from-config"},{"openapi":"GET /mcp-hub/scan/{job_id}/status","title":"Get Scan Job Status","href":"/api-reference/mcp-hub-api-reference/endpoint/get-status"},{"openapi":"GET /mcp-hub/scan/{job_id}/results","title":"Get Complete Scan Results","href":"/api-reference/mcp-hub-api-reference/endpoint/get-results"},{"openapi":"GET /mcp-hub/scans","title":"List Scans","href":"/api-reference/mcp-hub-api-reference/endpoint/list-scans"},{"openapi":"GET /mcp-hub/dashboard-stats","title":"Get MCP Hub Scan Statistics","href":"/api-reference/mcp-hub-api-reference/endpoint/dashboard-stats"},{"openapi":"GET /mcp-hub/usage","title":"Get MCP Hub API Usage Summary","href":"/api-reference/mcp-hub-api-reference/endpoint/usage"}]},{"group":"๐๏ธ MCP Registry Servers API","pages":[{"openapi":"POST /mcp-registry/add-server","title":"Create MCP Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/add-server"},{"openapi":"POST /mcp-registry/bulk-add-servers","title":"Bulk-create MCP Registry Servers (atomic)","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/bulk-add-servers"},{"openapi":"GET /mcp-registry/get-server","title":"Get MCP Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/get-server"},{"openapi":"PATCH /mcp-registry/modify-server","title":"Update MCP Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/modify-server"},{"openapi":"DELETE /mcp-registry/delete-server","title":"Delete MCP Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/delete-server"},{"openapi":"GET /mcp-registry/list-servers","title":"List MCP Registry Servers","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/list-servers"},{"openapi":"GET /mcp-registry/list-gateways-by-server","title":"List Gateways by Registry Server","href":"/api-reference/mcp-registry-servers-api-reference/endpoint/list-gateways-by-server"}]},{"group":"๐ช MCP Gateways API","pages":[{"openapi":"POST /mcp-gateway/add-gateway","title":"Create MCP Gateway","href":"/api-reference/mcp-gateways-api-reference/endpoint/add-gateway"},{"openapi":"GET /mcp-gateway/get-gateway","title":"Get MCP Gateway","href":"/api-reference/mcp-gateways-api-reference/endpoint/get-gateway"},{"openapi":"GET /mcp-gateway/get-gateway-config","title":"Get Expanded MCP Gateway Configuration","href":"/api-reference/mcp-gateways-api-reference/endpoint/get-gateway-config"},{"openapi":"PATCH /mcp-gateway/modify-gateway","title":"Update MCP Gateway","href":"/api-reference/mcp-gateways-api-reference/endpoint/modify-gateway"},{"openapi":"DELETE /mcp-gateway/delete-gateway","title":"Delete MCP Gateway","href":"/api-reference/mcp-gateways-api-reference/endpoint/delete-gateway"},{"openapi":"GET /mcp-gateway/list-gateways","title":"List MCP Gateways","href":"/api-reference/mcp-gateways-api-reference/endpoint/list-gateways"}]},{"group":"๐งช MCP Playground API","pages":[{"openapi":"POST /mcp-playground/test-server","title":"Test MCP Server Connectivity","href":"/api-reference/mcp-playground-api-reference/endpoint/test-server"},{"openapi":"GET /mcp-playground/get-tools","title":"Get MCP Server Tools","href":"/api-reference/mcp-playground-api-reference/endpoint/get-tools"},{"openapi":"POST /mcp-playground/call-tool","title":"Call MCP Server Tool","href":"/api-reference/mcp-playground-api-reference/endpoint/call-tool"}]},{"group":"๐ Skill Scanner API","pages":[{"openapi":"POST /skill-hub/scan","title":"Submit a Skill Scan","href":"/api-reference/skill-scanner-api-reference/endpoint/scan"},{"openapi":"GET /skill-hub/scans/{scan_id}","title":"Get Skill Scan","href":"/api-reference/skill-scanner-api-reference/endpoint/get-scan"},{"openapi":"GET /skill-hub/scans/{scan_id}/report","title":"Get Skill Scan Report","href":"/api-reference/skill-scanner-api-reference/endpoint/get-report"},{"openapi":"GET /skill-hub/scans","title":"List Skill Scans","href":"/api-reference/skill-scanner-api-reference/endpoint/list-scans"},{"openapi":"GET /skill-hub/healthz","title":"Skill Scanner Health","href":"/api-reference/skill-scanner-api-reference/endpoint/health"}]},{"group":"โ๏ธ Compliance API","pages":[{"openapi":"POST /compliance/test-connection","title":"Test Compliance Connection","href":"/api-reference/compliance-api-reference/endpoint/test-connection"},{"openapi":"POST /compliance/add-scan","title":"Add Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/add-scan"},{"openapi":"GET /compliance/get-scan","title":"Get Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/get-scan"},{"openapi":"PATCH /compliance/modify-scan","title":"Modify Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/modify-scan"},{"openapi":"DELETE /compliance/delete-scan","title":"Delete Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/delete-scan"},{"openapi":"GET /compliance/list-scans","title":"List Compliance Scans","href":"/api-reference/compliance-api-reference/endpoint/list-scans"},{"openapi":"POST /compliance/start-scan","title":"Start Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/start-scan"},{"openapi":"POST /compliance/pause-scan","title":"Pause Compliance Scan","href":"/api-reference/compliance-api-reference/endpoint/pause-scan"},{"openapi":"GET /compliance/list-log-files","title":"List Compliance Log Files","href":"/api-reference/compliance-api-reference/endpoint/list-log-files"},{"openapi":"GET /compliance/get-message","title":"Get Compliance Message","href":"/api-reference/compliance-api-reference/endpoint/get-message"}]},{"group":"๐ Leaderboard API","pages":[{"openapi":"GET /leaderboard/v2/models-list","title":"v2 Models List","href":"/api-reference/leaderboard-api-reference/endpoint/v2/models/models-list"},{"openapi":"GET /leaderboard/v2/scores","title":"v2 Scores list","href":"/api-reference/leaderboard-api-reference/endpoint/v2/scores/scores-list"},{"openapi":"GET /leaderboard/v2/scores/{modelName}","title":"v2 Model Score","href":"/api-reference/leaderboard-api-reference/endpoint/v2/scores/model-score"},{"openapi":"GET /leaderboard/v2/details/{modelName}","title":"v2 Model Detail","href":"/api-reference/leaderboard-api-reference/endpoint/v2/details/model-detail"},{"openapi":"GET /leaderboard/v2/summary/{modelName}","title":"v2 Model Summary","href":"/api-reference/leaderboard-api-reference/endpoint/v2/summary/model-summary"},{"openapi":"GET /leaderboard/v2/rank/{modelName}","title":"v2 Model Rank","href":"/api-reference/leaderboard-api-reference/endpoint/v2/rank/model-rank"},{"openapi":"GET /leaderboard/v2/percentiles","title":"v2 Models Risk Percentiles","href":"/api-reference/leaderboard-api-reference/endpoint/v2/percentiles/models-risk-percentiles"}]},{"group":"๐๏ธ Archived","pages":[{"group":"Datasets (Legacy)","pages":[{"openapi":"POST /datasets/add-task","title":"Datasets Add Task","href":"/api-reference/datasets-api-reference/endpoint/add-task"},{"openapi":"GET /datasets/task-status","title":"Datasets Get Task Status","href":"/api-reference/datasets-api-reference/endpoint/task-status"},{"openapi":"GET /datasets/get-task","title":"Datasets Get Task","href":"/api-reference/datasets-api-reference/endpoint/get-task"},{"openapi":"GET /datasets/get-datacard","title":"Datasets Get Datacard","href":"/api-reference/datasets-api-reference/endpoint/get-datacard"},{"openapi":"GET /datasets/get-dataset","title":"Datasets Get Dataset","href":"/api-reference/datasets-api-reference/endpoint/get-dataset"},{"openapi":"GET /datasets/get-summary","title":"Datasets Get Summary","href":"/api-reference/datasets-api-reference/endpoint/get-summary"},{"title":"List Tasks","openapi":"GET /datasets/list-tasks","href":"/api-reference/datasets-api-reference/endpoint/list-tasks"}]},{"group":"Guardrails Policy (Legacy)","pages":[{"title":"Add Policy (Legacy)","openapi":"POST /guardrails/add-policy","href":"/api-reference/guardrails-api-reference/endpoint/add-policy"},{"title":"Get Policy (Legacy)","openapi":"GET /guardrails/get-policy","href":"/api-reference/guardrails-api-reference/endpoint/get-policy"},{"title":"Modify Policy (Legacy)","openapi":"PATCH /guardrails/modify-policy","href":"/api-reference/guardrails-api-reference/endpoint/modify-policy"},{"title":"Delete Policy (Legacy)","openapi":"DELETE /guardrails/delete-policy","href":"/api-reference/guardrails-api-reference/endpoint/delete-policy"},{"title":"List Policies (Legacy)","openapi":"GET /guardrails/list-policies","href":"/api-reference/guardrails-api-reference/endpoint/list-policies"},{"title":"Detect with Policy (Legacy)","openapi":"POST /guardrails/policy/detect","href":"/api-reference/guardrails-api-reference/endpoint/detect-using-policy"},{"title":"Detect Image with Policy (Legacy)","openapi":"POST /guardrails/policy/detect-image","href":"/api-reference/guardrails-api-reference/endpoint/detect-image-using-policy"},{"title":"Detect Audio with Policy (Legacy)","openapi":"POST /guardrails/policy/detect-audio","href":"/api-reference/guardrails-api-reference/endpoint/detect-audio-using-policy"},{"title":"Policy Batch Detect (Legacy)","openapi":"POST /guardrails/policy/batch/detect","href":"/api-reference/guardrails-api-reference/endpoint/batch-detect-using-policy"},{"title":"Policy Scan URL (Legacy)","openapi":"POST /guardrails/policy/scan-url","href":"/api-reference/guardrails-api-reference/endpoint/policy-scan-url"},{"title":"Policy Scan PDF (Legacy)","openapi":"POST /guardrails/policy/scan-pdf","href":"/api-reference/guardrails-api-reference/endpoint/policy-scan-pdf"}]},{"group":"Red Team (Legacy)","pages":[{"openapi":"GET /redteam/health","title":"Redteam Health","href":"/api-reference/redteam-api-reference/endpoint/health"},{"openapi":"POST /redteam/v3/model-health","title":"Model Health (V3)","href":"/api-reference/redteam-api-reference/endpoint/v3-model-health"},{"openapi":"POST /redteam/model/model-health","title":"Model Health of saved model","href":"/api-reference/redteam-api-reference/endpoint/model-health-saved"},{"openapi":"POST /redteam/v3/add-custom-task","title":"Add Custom Task (V3)","href":"/api-reference/redteam-api-reference/endpoint/v3-add-custom-task"},{"openapi":"POST /redteam/v3/model/add-custom-task","title":"Add Custom Task with saved model (V3)","href":"/api-reference/redteam-api-reference/endpoint/v3-model-add-custom-task"},{"openapi":"PATCH /redteam/cancel-task","title":"Cancel Task","href":"/api-reference/redteam-api-reference/endpoint/cancel-task"},{"openapi":"GET /redteam/get-task","title":"Get Task","href":"/api-reference/redteam-api-reference/endpoint/get-task"},{"openapi":"GET /redteam/task-status","title":"Get Task Status","href":"/api-reference/redteam-api-reference/endpoint/get-task-status"},{"openapi":"GET /redteam/download-link","title":"Get Download Link","href":"/api-reference/redteam-api-reference/endpoint/get-download-link"},{"openapi":"GET /redteam/v3/results/summary","title":"Get Task Results Summary","href":"/api-reference/redteam-api-reference/endpoint/get-results-summary"},{"openapi":"GET /redteam/v3/results/summary/{test_type}","title":"Get Task Results Summary of a specific test type","href":"/api-reference/redteam-api-reference/endpoint/get-summary-test-type"},{"openapi":"GET /redteam/v3/results/details","title":"Get Task Results Details","href":"/api-reference/redteam-api-reference/endpoint/get-all-details"},{"openapi":"GET /redteam/v3/results/details/{test_type}","title":"Get Task Results Details of a specific test type","href":"/api-reference/redteam-api-reference/endpoint/get-details-test-type"},{"openapi":"POST /redteam/findings","title":"Get findings based on summary","href":"/api-reference/redteam-api-reference/endpoint/get-findings"},{"openapi":"POST /redteam/risk-mitigation/system-prompt","title":"Generate a system prompt for risk mitigation based on red teaming test results","href":"/api-reference/redteam-api-reference/endpoint/risk-mitigation-system-prompt"},{"openapi":"POST /redteam/risk-mitigation/guardrails-policy","title":"Generate a guardrail and policy for risk mitigation based on summary","href":"/api-reference/redteam-api-reference/endpoint/risk-mitigation-guardrails-policy"},{"title":"List All Tasks","openapi":"GET /redteam/list-tasks","href":"/api-reference/redteam-api-reference/endpoint/list-all-tasks"},{"openapi":"POST /redteam/model-health","title":"Model Health","href":"/api-reference/redteam-api-reference/endpoint/model-health"},{"openapi":"POST /redteam/v2/add-task","title":"Add Task","href":"/api-reference/redteam-api-reference/endpoint/add-task"},{"openapi":"POST /redteam/v2/model/add-task","title":"Add Task with saved model","href":"/api-reference/redteam-api-reference/endpoint/model-add-task"},{"openapi":"POST /redteam/v2/add-custom-task","title":"Add Custom Task","href":"/api-reference/redteam-api-reference/endpoint/add-custom-task"},{"openapi":"POST /redteam/v2/model/add-custom-task","title":"Add Custom Task with saved model","href":"/api-reference/redteam-api-reference/endpoint/model-add-custom-task"}]},{"group":"Leaderboard","pages":[{"openapi":"GET /leaderboard/models-list","title":"v1 Models List","href":"/api-reference/leaderboard-api-reference/endpoint/v1/models/models-list"},{"openapi":"GET /leaderboard/scores","title":"v1 Scores list","href":"/api-reference/leaderboard-api-reference/endpoint/v1/scores/scores-list"},{"openapi":"GET /leaderboard/scores/{modelName}","title":"v1 Model Score","href":"/api-reference/leaderboard-api-reference/endpoint/v1/scores/model-score"},{"openapi":"GET /leaderboard/details/{modelName}","title":"v1 Model Detail","href":"/api-reference/leaderboard-api-reference/endpoint/v1/details/model-detail"},{"openapi":"GET /leaderboard/summary/{modelName}","title":"v1 Model Summary","href":"/api-reference/leaderboard-api-reference/endpoint/v1/summary/model-summary"},{"openapi":"GET /leaderboard/rank/{modelName}","title":"v1 Model Rank","href":"/api-reference/leaderboard-api-reference/endpoint/v1/rank/model-rank"},{"openapi":"GET /leaderboard/percentiles","title":"v1 Models Risk Percentiles","href":"/api-reference/leaderboard-api-reference/endpoint/v1/percentiles/models-risk-percentiles"}]},{"group":"Policy Atomizer (Legacy)","pages":[{"title":"Policy Atomizer","openapi":"POST /guardrails/policy-atomizer","href":"/api-reference/coc-api-reference/endpoint/policy-atomizer"}]}]}]}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/sdk-reference/python/introduction"}]},{"tab":"Schema and Postman","pages":[{"title":"Schema and Postman","href":"/schema-and-postman/introduction"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources/introduction"}]}]},"basePath":"","title":"AI Completions Proxy Endpoint - Enkrypt AI","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}