MyDuck / README.md
suzmen's picture
Upload 6 files
a5d3815 verified
---
title: MyDuck AI
emoji: 🦆
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
app_port: 7860
---
# MyDuck AI - DuckDuckGo AI Chat API
A free API for accessing DuckDuckGo AI models including GPT-4o mini, Claude 3.5 Haiku, Llama 3.3 70B, and more.
## Supported Models
- `gpt-4o-mini` (default)
- `claude-3-haiku`
- `llama` (Llama 3.3 70B)
- `mistral` (Mixtral 8x7B)
- `o3-mini`
## API Usage
**Endpoint**: POST `/api/chat`
**Request**:
```json
{
"prompt": "Your message here",
"model": "gpt-4o-mini"
}
```
**Response**:
```json
{
"status": "success",
"text": "AI response here"
}
```
## Example
```bash
curl -X POST https://your-space.hf.space/api/chat \
-H "Content-Type: application/json" \
-d '{"prompt": "Hello, how are you?"}'
```
Powered by DuckDuckGo AI