Skip to main content
Choose one documentation source for your agent. The Legnext Skill is the recommended path; the docs MCP server is the live alternative. You do not need both.

1. Choose a documentation source

Legnext Skill — recommended

Install the integration playbook in Claude Code, Cursor, Codex, and other skill-compatible agents.

Docs MCP server

Give any MCP-capable client live documentation search without installing a project skill.

Use the Legnext Skill

Run this from your project:
The skill teaches the task lifecycle, retries, output persistence, child tasks, credits, and error handling.

Use the docs MCP server

Add this URL as a Streamable HTTP MCP server named legnext-docs:
For Claude Code:
The docs server does not require a Legnext API key. If your agent supports neither Skills nor MCP, tell it to fetch llms-full.txt.

2. Add your API key

Set LEGNEXT_API_KEY in the server-side environment of your project. Never paste the key into the agent conversation, browser code, or a committed file.

3. Paste this prompt

4. Verify the result

The finished integration should:
  • Keep the API key at a server boundary
  • Persist the first returned job_id instead of resubmitting uncertain requests
  • Continue through all non-terminal states and stop at completed or failed
  • Keep the unauthenticated Get Task capability URL private
  • Copy completed output to durable storage
  • Handle moderation, balance, timeout, and provider failures
  • Include a focused test or repeatable verification
Prefer to write the integration yourself? Follow First API request, then read Task lifecycle.

Use a video as a reference

Legnext reads reference images from public image URLs; it does not read video links. When the look you want lives in a YouTube, TikTok, Instagram, or X video, let your agent pull the frames first with VidCrawl, a video context API for AI agents built by the team behind Legnext. Its MCP server returns the video’s timestamped transcript and storyboard, then sharp frames at the timestamps you choose. Save the frames you want to your own storage, then pass their public URLs in the Legnext prompt as image prompts or --sref style references. Each URL must meet the image URL requirements.