> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nunchux.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Authenticate every request with your API key in the `X-API-Key` header or `Authorization: Bearer`. Keys start with `sk-nunchux-`.
> Image generation is synchronous: the image is in the response.
> Video generation is asynchronous: submit the job, poll its task until it reaches a terminal status, then download the output promptly, because output URLs expire.

# Use Nunchux with coding agents

> Connect Claude Code, Cursor and other AI coding tools to the Nunchux docs through MCP, llms.txt, and Markdown versions of every page.

# Use Nunchux with coding agents

### Give your AI coding tool the docs it needs to write working Nunchux code

AI coding tools write better API code when they read the docs directly rather than guessing. Every page of these docs is available in forms they can read, and the menu at the top of each page sends it to them in one click.

## Connect the docs MCP server

The docs MCP server lets your coding tool search these docs and read any page while it works, without you pasting anything in.

* **Server URL:** `https://docs.nunchux.ai/mcp`
* **One click:** choose **Add MCP** in the menu at the top of any page.

<CodeGroup>
  ```bash Claude Code theme={"system"}
  claude mcp add --transport http nunchux https://docs.nunchux.ai/mcp
  ```

  ```json Cursor (~/.cursor/mcp.json) theme={"system"}
  {
    "mcpServers": {
      "nunchux": {
        "url": "https://docs.nunchux.ai/mcp"
      }
    }
  }
  ```
</CodeGroup>

## Read any page as Markdown

Add `.md` to the end of any page URL to get the page as plain Markdown, for example [`/authentication.md`](https://docs.nunchux.ai/authentication.md). The page menu does the same: **Copy page** copies it, and **Open in Claude** or **Open in ChatGPT** starts a chat with the page loaded.

Each Markdown page starts with a short **Agent Instructions** block: how to authenticate, and which calls are synchronous and which you poll.

## Give an agent the whole site

* [`llms.txt`](https://docs.nunchux.ai/llms.txt) is an index of every page with a one-line summary, so an agent can find the page it needs.
* [`llms-full.txt`](https://docs.nunchux.ai/llms-full.txt) is the full text of every page in one file, for tools that load everything up front.

<Note>
  Your API key still goes in your code or environment, never in a chat. Set it as `NUNCHUX_API_KEY` and have the agent read it from there. See [Authentication](/authentication).
</Note>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.