NoFilterGPT Chat API
Build uncensored AI chat applications with our simple REST API.
Authentication
All API requests require an API key passed in the Authorization header:
Authorization: Bearer YOUR_API_KEY Base URL
https://api.nofiltergpt.com Endpoint: Chat Completions
POST /v1/chat/completions Request Body Parameters
model- string, the model to use.messages- array of message objects withroleandcontent.temperature- number (0 to 2), default 0.7.max_tokens- integer, maximum tokens in the response.stream- boolean, stream the response as SSE.
Python Example
import requests
response = requests.post(
"https://api.nofiltergpt.com/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "nofilter-large",
"messages": [{"role": "user", "content": "Hello!"}]
}
)
print(response.json()) PHP Example
<?php
$ch = curl_init("https://api.nofiltergpt.com/v1/chat/completions");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"model" => "nofilter-large",
"messages" => [["role" => "user", "content" => "Hello!"]]
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch); JavaScript Example
const res = await fetch("https://api.nofiltergpt.com/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "nofilter-large",
messages: [{ role: "user", content: "Hello!" }]
})
});
console.log(await res.json()); cURL Example
curl -X POST "https://api.nofiltergpt.com/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello! Can you help me with something?"}
],
"temperature": 0.7,
"max_tokens": 150,
"top_p": 1
}' Rate Limits
All accounts have daily limits. Need more throughput? Contact us for unlimited access. All limits reset daily at midnight UTC.
Free
- 7 chat messages / day
- 10 image generations / day
- 25 image uploads / day
- 5 image edits / day
- 5 face swaps / day
- 60 API requests / min
Pro
- 500 chat messages / day (via API)
- 100 image generations / day
- 25 image uploads (analysis) / day
- 20 image edits / day
- 10 face swaps / day
- 600 API requests / min
Error Codes
400- Invalid request.401- Invalid API key.402- Subscription required.429- Rate limit exceeded.500- Server error.