PeumeAPI

Search & SEO · DuckDuckGo

Ask Duck AI

Ask DuckDuckGo's AI chat a question and get a cited answer.

$0.023 per call

Call it

curl https://api.peume.com/v1/call/duckduckgo-ask-duck-ai \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "q": "your q"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: duckduckgo-ask-duck-ai.

Parameters

qRequiredstring

The prompt you want to send to Duck AI, DuckDuckGo's AI chat.

subsequent_request_tokenstring

The token used to continue a Duck AI conversation. Pass this token with a new `q` to send a follow-up prompt that includes the previous prompts and answers as context (multi-turn). The token is returned by from your previous request using our Duck AI API. The token holds the whole conversation, so it grows with each turn. Conversations longer than about 16,000 characters (prompts and answers combined) can't be continued: the request becomes too long and is rejected.

modelstring

The AI model that answers the prompt. It can be set to: `gpt-5.6-luna` - GPT-5.6 Luna `gpt-6-luna` - GPT-6 Luna `gpt-5.4-mini` - GPT-5.4 mini `claude-haiku-4-5` - Claude Haiku 4.5 `mistral-small-2603` - Mistral Small 4 `tinfoil/gpt-oss-120b` - gpt-oss 120B `tinfoil/gemma4-31b` - Gemma 4 31B It defaults to `gpt-5.6-luna`.

json_restrictorstring

The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.