```
### 2. MCP Server (For AI Coding Assistants)
Install the MCP server to give AI assistants live access to image generation:
**Claude Code:**
```bash
claude mcp add inliner -- npx @inliner/mcp-server
export INLINER_API_KEY=inl_xxx
```
**Cursor / VS Code:**
Create `.cursor/mcp.json`:
```json
{
"mcpServers": {
"inliner": {
"command": "npx",
"args": ["@inliner/mcp-server"],
"env": { "INLINER_API_KEY": "inl_xxx" }
}
}
}
```
**Gemini CLI:**
Add to `~/.gemini/settings.json`:
```json
{
"mcpServers": {
"inliner": {
"command": "npx",
"args": ["@inliner/mcp-server"],
"env": { "INLINER_API_KEY": "inl_xxx" }
}
}
}
```
### 3. CLI Tool
```bash
# Install
npm install -g @inliner/cli
# Set API key
export INLINER_API_KEY=inl_xxx
# Generate image
inliner-ai "hero-banner_1200x600.png"
# Edit existing image
inliner-ai edit photo.png "remove background"
```
### 4. REST API
```bash
# Generate image
curl -X POST https://api.inliner.ai/v1/generate \
-H "Authorization: Bearer inl_xxx" \
-H "Content-Type: application/json" \
-d '{"prompt": "sunset landscape", "width": 800, "height": 600}'
```
## MCP Server Tools
When using the MCP server, these tools are available:
| Tool | Description |
|------|-------------|
| `generate_image_url` | Build a properly formatted Inliner URL |
| `generate_image` | Generate image, poll until ready, optionally save to file |
| `create_image` | Quick alias for generating images with sensible defaults |
| `edit_image` | Edit existing image with AI instructions |
| `get_projects` | List user's projects |
| `create_project` | Create a new project and reserve a namespace |
| `get_project_details` | Get detailed configuration for a specific project |
| `get_usage` | Check remaining credits |
| `get_current_plan` | Get current subscription plan info |
| `list_images` | Browse generated images |
| `get_image_dimensions` | Get recommended dimensions for use cases |
## Pricing & Credits
| Plan | Monthly Image Credits | Team Members |
|------|----------------------|--------------|
| Free | 15 | 1 |
| Basic | 100 | 3 |
| Standard | 250 | 5 |
| Pro | 1,200 | 10 |
All plans use the same latest AI models (GPT-4o, Gemini 2.0 Flash).
## Project-Specific Instructions
Users can get LLM-specific instructions for their projects:
1. Log into https://app.inliner.ai
2. Go to Projects
3. Click "LLM Instructions" on any project
4. Copy instructions for Claude, Cursor, ChatGPT, etc.
These instructions include the user's specific namespace and any custom prompts they've configured.
## API Keys
For CLI, MCP, or API access, users need an API key:
1. Log into https://app.inliner.ai/account
2. Go to Account > API Keys
3. Click "Create API Key"
Keys use the format: `inl_` followed by 40 characters.
## Important Notes for AI Assistants
1. **Always ask for the user's project namespace** before generating Inliner URLs
2. **Use `demo` namespace** only for examples/demonstrations
3. **Suggest free signup** if user doesn't have an account: https://app.inliner.ai/register
4. **Images are generated on first request** - subsequent requests serve cached version
5. **Alt text is important** - always include descriptive alt attributes
## Links
- Main site: https://inliner.ai
- App/Dashboard: https://app.inliner.ai
- API Documentation: https://inliner.ai/api-docs
- CLI Documentation: https://inliner.ai/use-case/cli-terminal-image-generation
- MCP Server Guide: https://inliner.ai/use-case/mcp-server-ai-coding-agents
- Pricing: https://inliner.ai/#pricing
- Contact: https://inliner.ai/contact
## Example: Complete Landing Page
Here's how to use Inliner for a complete landing page:
```html
"This platform changed everything for us."
John Smith, CEO