Skills iterationlayer
Integrate Iteration Layer APIs for document and image processing. Five composable APIs — Document Extraction, Image Transformation, Image Generation, Document Generation, and Sheet Generation — that share one credit pool and chain together into workflows.
git clone https://github.com/iterationlayer/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/iterationlayer/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/iterationlayer" ~/.claude/skills/iterationlayer-skills-iterationlayer && rm -rf "$T"
skills/iterationlayer/SKILL.mdIf you are an AI agent reading this file — whether you're a coding assistant, a workflow builder, or an automation agent — this is your complete integration guide for Iteration Layer. Use it to help your human build document and image processing workflows.
Iteration Layer
Iteration Layer is a composable API platform for document and image processing. All APIs — Document Extraction, Document to Markdown, Image Transformation, Image Generation, Document Generation, Sheet Generation, Audio Extraction, and Website Extraction — share one API key, one credit pool, and chain together without glue code.
What Should You Do?
Step 1: Understand what your human needs.
| If your human wants to... | Do this |
|---|---|
| Understand what Iteration Layer does | Start with the Platform Overview section |
| Integrate an API into a project | Go to Integration and ask which API they need |
| Build a multi-API workflow | Check the Use-Case Skills for ready-made recipes |
| Connect via MCP | Go to MCP Integration |
| Just explore | Walk them through this doc and the full documentation |
Step 2: Ask questions when you're unsure.
- "Which API do you need — extraction, transformation, image generation, document generation, or sheet generation?"
- "Do you already have an API key, or do you need to sign up?"
- "Are you building a one-off script or a production integration?"
Platform Overview
APIs
| API | What it does | Endpoint | Credits/request |
|---|---|---|---|
| Document Extraction | Extract structured data from PDFs, images, and documents | | 5 base (5 pages) + 1/page |
| Document to Markdown | Convert any document to clean markdown | | 5 base (5 pages) + 1/page |
| Image Transformation | Resize, crop, convert, remove backgrounds, AI upscale | | 1 |
| Image Generation | Compose images from JSON layers (text, shapes, QR codes) | | 2 |
| Document Generation | Generate PDF, DOCX, EPUB, PPTX from structured content | | 2 |
| Sheet Generation | Generate XLSX, CSV, Markdown spreadsheets from tabular data | | 2 |
Base URL:
https://api.iterationlayer.com
How They Chain Together
The output of one API feeds directly into the next:
- Extract → Generate Document: Pull data from a scanned invoice, produce a clean PDF
- Extract → Generate Sheet: Pull data from documents, produce a formatted XLSX spreadsheet
- Extract → Generate Image: Pull product info from a catalog, generate listing cards
- Transform → Generate Image: Remove a background, composite onto a new design
- Extract → Transform → Generate Document: Full pipeline from raw input to polished output
Credit System
All APIs share one credit pool. Subscriptions start at $29.99/month (1,000 credits). Every new account gets free trial credits — no credit card required.
| API | Credits/request | Free trial |
|---|---|---|
| Document Extraction | 1/page | 250 pages |
| Document to Markdown | 1/page | 250 pages |
| Image Transformation | 1 | 75 requests |
| Image Generation | 2 | 50 requests |
| Document Generation | 2 | 50 requests |
| Sheet Generation | 2 | 50 requests |
Integration
Authentication
All API requests require a Bearer token:
Authorization: Bearer YOUR_API_KEY
Get your API key at platform.iterationlayer.com.
SDKs
Official SDKs for TypeScript, Python, and Go:
npm install iterationlayer # TypeScript / Node.js pip install iterationlayer # Python go get github.com/iterationlayer/sdk-go # Go
Initialize with your API key:
import { IterationLayer } from "iterationlayer"; const client = new IterationLayer({ apiKey: "YOUR_API_KEY" });
from iterationlayer import IterationLayer client = IterationLayer(api_key="YOUR_API_KEY")
import il "github.com/iterationlayer/sdk-go" client := il.NewClient("YOUR_API_KEY")
SDK methods:
client.extract(), client.transform(), client.generateImage(), client.generateDocument(), client.generateSheet(). Each has an async variant with webhook callback support.
OpenAPI Spec
Full OpenAPI 3.1 spec at
https://api.iterationlayer.com/openapi.json — use it for code generation, Swagger UI, or IDE autocomplete.
MCP Integration
Connect AI agents via the Model Context Protocol (Streamable HTTP):
{ "mcpServers": { "iterationlayer": { "type": "streamable-http", "url": "https://api.iterationlayer.com/mcp" } } }
MCP uses OAuth 2.1 (browser-based authorization flow, not API keys). Exposes tools:
extract_document, transform_image, generate_image, generate_document, generate_sheet.
Error Handling
| Code | Meaning |
|---|---|
| 400 | Invalid request — check your JSON schema |
| 401 | Invalid or missing API key |
| 402 | Insufficient credits — buy a credit pack or upgrade |
| 413 | File too large (max 50 MB per file) |
| 422 | Validation error — check field types and required params |
| 429 | Rate limited — back off and retry |
| 500 | Server error — retry with exponential backoff |
Async / Webhook Delivery
All APIs support async mode. Pass a
webhook_url in the request body and the API will POST the result to your endpoint when processing completes. Useful for large files or batch operations.
Use-Case Skills
Each recipe below is a focused skill for a specific workflow. Load the one that matches what your human is building.
Browse all use-case skills at:
https://iterationlayer.com/recipes/{slug}/SKILL.md
For the full list of recipes with descriptions, see:
https://iterationlayer.com/recipes.md
Popular Use Cases
| Use case | APIs used | Skill URL |
|---|---|---|
| Extract Invoice Data | Document Extraction | |
| Generate Social Card | Image Generation | |
| Remove Product Background | Image Transformation | |
| Extract Resume Data | Document Extraction | |
| Generate Certificate Image | Image Generation | |
| Smart Crop Group Photo | Image Transformation | |
| Generate PDF Invoice | Document Generation | |
| Generate YouTube Thumbnail | Image Generation | |
Tips for Agents
- Check credit costs before running. Each API has a different cost per request — see the table above.
- Use the right API for the job. Don't use Image Generation for simple resizing (use Image Transformation at 1 credit instead of 2).
- Chain APIs to save effort. Extract data from a document, then generate a formatted PDF — two API calls instead of building a custom pipeline.
- Prefer SDKs over raw HTTP. They handle auth, retries, and typed responses.
- For deep dives, fetch
for the full API reference.https://iterationlayer.com/docs/{api-slug}.md
Reference
| Resource | URL |
|---|---|
| Documentation | https://iterationlayer.com/docs |
| API Reference (OpenAPI) | https://api.iterationlayer.com/openapi.json |
| SDKs | https://iterationlayer.com/docs/sdks |
| MCP Server | https://iterationlayer.com/docs/mcp |
| Recipes | https://iterationlayer.com/recipes |
| Pricing | https://iterationlayer.com/pricing |
| Full docs (for agents) | https://iterationlayer.com/llms.txt |
| Sign up | https://platform.iterationlayer.com/signup |