duck.ai Chat API
Send a prompt to a Duck.ai model and return its full reply together with the stream it arrived in.
https://api.maviapi.com/v1/sites/duck/chat5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
promptstring in query | Optional | Say hello in five words. | the user message to send (up to 16000 characters). |
modelstring in query | Optional | gpt-6-luna | which model answers: gpt-6-luna (GPT-6 Luna), gpt-5.4-mini, claude-haiku-5-5, mistral-small-2603 (Mistral Small 4), tinfoil/gpt-oss-120b, tinfoil/gemma4-31b. See /models.One of gpt-6-luna, gpt-5.4-mini, claude-haiku-5-5, mistral-small-2603, tinfoil/gpt-oss-120b, tinfoil/gemma4-31b |
reasoning_effortstring in query | Optional | none | how hard a reasoning model thinks; "none", "low" or "medium" (falls back to the closest level the model supports).One of none, low, medium |
historystring in query | Optional | None | optional earlier turns of the conversation as a JSON list, e.g. [{"role":"user","content":"My name is Ana"},{"role":"assistant","content":"Hi Ana!"}]. |
Response fields
modele.g."gpt-6-luna"reasoning_efforte.g."none"replye.g."Hello there, hope you’re well today."titlee.g."Five-word greeting"message_ide.g."msg_0f8e6cc9a8dd4647016b0da061c9d087d283ef136858cf5f65"chunks
texte.g."Hello"createde.g.1796055137846chunk_counte.g.9total_mse.g.2311pagination
counte.g.9has_moree.g.falsenext_cursorfetched_ate.g."2026-11-30T16:12:18.056Z"agee.g.0Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/duck/chat' \
-H "Authorization: Bearer $MAVI_KEY"duck.ai Chat API questions
What you get, what it costs and how to call it.
What does the duck.ai Chat API return?
Send a prompt to a Duck.ai model and return its full reply together with the stream it arrived in. The response has model, reasoning_effort, reply, title, message_id, chunks, chunk_count, total_ms and 3 more.
Which parameters does the duck.ai Chat API take?
Every parameter of GET /chat is optional. You can pass prompt, model, reasoning_effort and history.
How much does one duck.ai Chat API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the duck.ai Chat API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/duck/chat with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the duck.ai Chat API official?
No. It is an independent, hosted API from maviapi for the public data on duck.ai, and it is not made, endorsed or supported by duck.ai. Its parameters and response fields are documented on this page.