An OpenAI-compatible API for DuckDuckGo's AI chat functionality. Seamlessly integrate multiple AI models into your applications.
Generate chat completions using various AI models.
{
"model": "gpt-4o-mini",
"messages": [
{"role": "user", "content": "Hello, how are you?"}
],
"stream": false
}
Retrieve a list of available AI models.
import requests
response = requests.post(
'https://your-api-url.com/v1/chat/completions',
json={
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "Tell me a joke"}]
}
)
print(response.json())
Created by: Your Name
Powered by:
DuckDuckGo |
duckduckgo_search