Docs/VPS Browser/GET /v1/llm-safety

GET /v1/llm-safetyContent safety classification

VPS Browser lf-vps-browser

Checks text for unsafe material before you pass it to a model. Classifies text for common safety concerns: prompt injection, profanity, PII leakage, harmful instructions, and toxic content.

Query Parameters

ParameterTypeRequiredDescription
textstringYesText to analyze

Response Schema

safe (boolean): Overall safety verdict
categories (object): Per-category safety scores
flags (array): Triggered safety flags

cURL Example

curl 'https://lf-vps-browser.laminarforge.dev/v1/llm-safety?text=Hello%20world' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-vps-browser.laminarforge.dev/v1/llm-safety'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'text': 'Hello world'}
response = requests.get(url, headers=headers, params=params)
print(response.json())