Secure OpenAI Inference with DeepFellow
Using OpenAI models through DeepFellow is safer than using them directly thanks to our anonymization layer. DeepFellow provides a seamless, OpenAI-compatible API that makes it easy to integrate advanced language models with your existing applications.
You need to have an OpenAI API Key and "openai" service installed - read how to install services in Infra Web Panel guide.
curl -X 'POST' \
'https://deepfellow-server-host/v1/chat/completions' \
-H 'Authorization: Bearer DEEPFELLOW-PROJECT-API-KEY' \
-H 'Content-Type: application/json' \
-d '{
"messages": [
{
"content": "You are a helpful assistant.",
"role": "system"
},
{
"content": "Explain how AI works.",
"role": "user"
}
],
"model": "gpt-4o"
}'from openai import OpenAI
client = OpenAI(
api_key="DEEPFELLOW-PROJECT-API-KEY",
base_url="https://deepfellow-server-host/v1",
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{
"role": "user",
"content": "Explain how AI works."
}
]
)
print(response.choices[0].message.content)import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'DEEPFELLOW-PROJECT-API-KEY',
baseURL: 'https://deepfellow-server-host/v1'
});
const response = await openai.chat.completions.create({
model: 'gpt-4o',
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{
role: 'user',
content: 'Explain how AI works.'
}
]
});
console.log(response.choices[0].message);We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.