# AltTextLab — how to use (mcp.ai)

Connect your AltTextLab account and use 2 tools for AI content generation straight from your AI agent. Connect with your own API key. AltTextLab generates accessible, SEO-aware alt text for images using AI.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_alt_text_lab?ms=1787295960000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `alt_text_lab_generate_alt_text`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/alt_text_lab`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/alt_text_lab/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/alt_text_lab/generate/alt/text` — Generate accessible alt text for a publicly reachable image URL, optionally guided by language, writing style, SEO keywords, product details, and page context. Each generated result consumes one accou
  - body: { style?: string, context?: object, keywords?: string[], language?: string, ecommerce?: object, image_url: string, custom_fields?: object }
- `POST https://api.mcp.ai/api/alt_text_lab/get/account/credits` — Return the connected AltTextLab account's plan, activation state, and current generation credit balance.

## Example prompts
- "What can I do in AltTextLab?"
- "Show me a summary of my AltTextLab account"

## More
- Page: https://mcp.ai/alt_text_lab
- Agent spec (llms.txt): https://mcp.ai/alt_text_lab/llms.txt
- Postman collection: https://mcp.ai/alt_text_lab/postman.json
