Skip to content

Last updated

Changelog

duck.ai API

HealthyRead-only

Structured data from duck.ai. Generated from duck.ai.

Base URL
https://api.maviapi.com/v1/sites/duck
3
Endpoints
1 h ago
Last verified
100%
Uptime / 7d
3143ms
p50 latency
GET/chat5 credits per call

Chat

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

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

the user message to send (up to 16000 characters).

stringOptionalin query

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.

stringOptionalin query

how hard a reasoning model thinks; "none", "low" or "medium" (falls back to the closest level the model supports).

stringOptionalin query

optional earlier turns of the conversation as a JSON list, e.g. [{"role":"user","content":"My name is Ana"},{"role":"assistant","content":"Hi Ana!"}].

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
Try itLive
GET
https://api.maviapi.com/v1/sites/duck/chat?prompt=Say%20hello%20in%20five%20words.&model=gpt-6-luna&reasoning_effort=none
Request
curl "https://api.maviapi.com/v1/sites/duck/chat?prompt=Say%20hello%20in%20five%20words.&model=gpt-6-luna&reasoning_effort=none" \
-H "Authorization: Bearer $MAVI_KEY"
Example484 B
{
  "model": "gpt-6-luna",
  "reasoning_effort": "none",
  "reply": "Hello there, hope you’re well today.",
  "title": "Five-word greeting",
  "message_id": "msg_0f8e6cc9a8dd4647016b0da061c9d087d283ef136858cf5f65",
  "chunks": [
    {
      "text": "Hello",
      "created": 1796055137846
    }
  ],
  "chunk_count": 9,
  "total_ms": 2311,
  "pagination": {
    "count": 9,
    "has_more": false,
    "next_cursor": null
  },
  "fetched_at": "2026-11-30T16:12:18.056Z",
  "age": 0
}

Get all the data, no code

Collect every page of GET /chat into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.

Use duck.ai API from Claude, ChatGPT and your coding tools

Add this URL as a custom connector and sign in to maviapi. Nothing to install.

How to connect
https://mcp.maviapi.com/mcp

Or run it locally, with each endpoint of duck.ai API as its own tool:

claude mcp add maviapi -e MAVIAPI_TOOLS=duck -- npx -y '@maviapi/mcp'

Import duck.ai API into Postman and other tools

How to import

Paste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.

  • OpenAPI 3.1
    https://api.maviapi.com/v1/apis/duck/openapi.json
  • Postman
    https://api.maviapi.com/v1/apis/duck/postman.json

The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.

Build with the duck.ai API

Choose a starting endpoint

  • Chat GET /chat

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

    Parameters and response fields for GET /chat
    Request parameters
    NameType / locationRequiredDescription
    promptstring / queryNothe user message to send (up to 16000 characters).
    modelstring / queryNowhich 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. Allowed values: gpt-6-luna, gpt-5.4-mini, claude-haiku-5-5, mistral-small-2603, tinfoil/gpt-oss-120b, tinfoil/gemma4-31b.
    reasoning_effortstring / queryNohow hard a reasoning model thinks; "none", "low" or "medium" (falls back to the closest level the model supports). Allowed values: none, low, medium.
    historystring / queryNooptional 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
    FieldTypeDescription
    modelstring
    reasoning_effortstring
    replystring
    titlestring
    message_idstring
    chunksobject[]
    chunks[].textstring
    chunks[].createdinteger
    chunk_countinteger
    total_msinteger
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Models GET /models

    List the models a free Duck.ai visitor can chat with, with the reasoning efforts each accepts.

    Parameters and response fields for GET /models
    Response fields
    FieldTypeDescription
    defaultstring
    modelsobject[]
    models[].idstring
    models[].namestring
    models[].creatorstring
    models[].reasoning_effortsstring[]
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Chat Completion GET /v1/chat/completions

    Send a prompt to a Duck.ai model and return the answer in OpenAI chat-completions format, plus the stream as OpenAI chunks.

    Parameters and response fields for GET /v1/chat/completions
    Request parameters
    NameType / locationRequiredDescription
    promptstring / queryNothe user message to send (up to 16000 characters).
    modelstring / queryNowhich model answers: gpt-6-luna, gpt-5.4-mini, claude-haiku-5-5, mistral-small-2603, tinfoil/gpt-oss-120b, tinfoil/gemma4-31b. See /models. Allowed values: gpt-6-luna, gpt-5.4-mini, claude-haiku-5-5, mistral-small-2603, tinfoil/gpt-oss-120b, tinfoil/gemma4-31b.
    reasoning_effortstring / queryNohow hard a reasoning model thinks; "none", "low" or "medium" (falls back to the closest level the model supports). Allowed values: none, low, medium.
    historystring / queryNooptional earlier turns as a JSON list, e.g. [{"role":"user","content":"My name is Ana"},{"role":"assistant","content":"Hi Ana!"}].
    Response fields
    FieldTypeDescription
    idstring
    objectstring
    createdinteger
    modelstring
    choicesobject[]
    choices[].indexinteger
    choices[].messageobject
    choices[].message.rolestring
    choices[].message.contentstring
    choices[].finish_reasonstring
    streamobject[]
    stream[].idstring
    stream[].objectstring
    stream[].createdinteger
    stream[].modelstring
    stream[].choicesobject[]
    stream[].choices[].indexinteger
    stream[].choices[].deltaobject
    stream[].choices[].delta.rolestring
    stream[].choices[].delta.contentstring
    stream[].choices[].finish_reasonnull
    fetched_atstring
    ageinteger

Export duck.ai data to CSV

Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.

ListCSV columns
ModelsGET /modelsid, name, creator, reasoning_efforts

A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work

duck.ai API questions

What you get, what it costs and how to call it.

Is there an official duck.ai API?

This duck.ai API is not official. 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. Whether duck.ai offers a developer API of its own is a question for duck.ai. This one is ready to call with a maviapi key, and every endpoint and field it returns is documented on this page.

What data can I get from the duck.ai API?

The duck.ai API has 3 endpoints. Each returns JSON with the parameters and fields documented above:

  • GET /chat: Send a prompt to a Duck.ai model and return its full reply together with the stream it arrived in.
  • GET /models: List the models a free Duck.ai visitor can chat with, with the reasoning efforts each accepts.
  • GET /v1/chat/completions: Send a prompt to a Duck.ai model and return the answer in OpenAI chat-completions format, plus the stream as OpenAI chunks.

How much does the duck.ai API cost?

Calls are paid in credits from your maviapi plan, and only successful calls are charged. Its endpoints cost 1 to 5 credits per call, and each one shows its price above. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.20 to $0.98, depending on the endpoint. Failed calls are free. 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 API?

Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /chat:

cURL
curl 'https://api.maviapi.com/v1/sites/duck/chat' \
  -H "Authorization: Bearer $MAVI_KEY"

Create a key on your API keys page, or try any endpoint first in the console above with the free test key.

What are the ways to get duck.ai data as JSON?

Each way to get duck.ai data as JSON fits a different need:

  • Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on duck.ai are yours. Better for a one-off pull from a page that rarely changes.
  • Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
  • RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
  • maviapi: The duck.ai API on this page: 3 documented endpoints, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.

What happens when duck.ai changes its layout?

Your code does not change. maviapi keeps the duck.ai API working when duck.ai changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.

Will an update break my duck.ai API integration?

No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.

  • Tripadvisor API

    Trip-planning data from Tripadvisor: geo search plus attractions, restaurants and hotels by location (geo_id), with…

  • Songkick Concerts API

    Upcoming concerts and music festivals in any city from Songkick, for a date window, with venues, performers, prices…

  • Google Maps API

    Structured data from maps.google.com.