Skip to content

duck.ai Chat API

Send a prompt to a Duck.ai model and return its full reply together with the stream it arrived in.

GEThttps://api.maviapi.com/v1/sites/duck/chat5 credits per call

Parameters

NameRequiredExampleDescription
promptstring in queryOptionalSay hello in five words.the user message to send (up to 16000 characters).
modelstring in queryOptionalgpt-6-lunawhich 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 queryOptionalnonehow 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 queryOptionalNoneoptional 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

modelstringe.g."gpt-6-luna"
reasoning_effortstringe.g."none"
replystringe.g."Hello there, hope you’re well today."
titlestringe.g."Five-word greeting"
message_idstringe.g."msg_0f8e6cc9a8dd4647016b0da061c9d087d283ef136858cf5f65"
chunksobject[]2 fields
textstringe.g."Hello"
createdintegere.g.1796055137846
chunk_countintegere.g.9
total_msintegere.g.2311
paginationobject3 fields
countintegere.g.9
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-30T16:12:18.056Z"
ageintegere.g.0

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
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.