🦆 DuckDuckGo Chat API

An OpenAI-compatible API for DuckDuckGo's AI chat functionality. Seamlessly integrate multiple AI models into your applications.

🚀 Available Endpoints

POST /v1/chat/completions

Generate chat completions using various AI models.

Request Body Example:

{
    "model": "gpt-4o-mini",
    "messages": [
        {"role": "user", "content": "Hello, how are you?"}
    ],
    "stream": false
}

Supported Models:

GET /v1/models

Retrieve a list of available AI models.

🛠️ Features

📝 Usage Example (Python)

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())

🙌 Credits

Created by: Your Name
Powered by: DuckDuckGo | duckduckgo_search