# AI Input

> A chat-style AI prompt composer with agent and model chips, a plus-button attachment menu, a settings dropdown, and an animated gradient wave that plays when a message is sent.

- Author: [Edwin Vakayil](https://21st.dev/@edwinvakayil)
- Library: @iconiq
- License: MIT
- Tags: AI Input, Prompt Input, Textarea, AI Chat
- npm dependencies: motion, lucide-react, @base-ui/react
- Live preview: https://21st.dev/@edwinvakayil/components/ai-input

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/edwinvakayil/ai-input?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/ai-input.md
