The Layer API gives you programmatic access to the same AI generation capabilities available in the app — images, video, 3D, and audio — so you can integrate them directly into your pipelines, tools, and games.
API documentation
The full API documentation — including all endpoints, request/response schemas, and interactive examples — is located here: docs.layer.ai
It covers:
Quickstart — generate your first asset end-to-end
Key concepts — workspaces, models, inferences, workflows, files, and Creative Units
API reference — full endpoint documentation with live examples
MCP server — use Layer directly from Claude and other AI coding tools
How to generate an API token
All API calls require a Personal Access Token (PAT). To create one:
Log in to app.layer.ai
Go to Settings > Personal Access Tokens
Click Create Token, give it a name, and copy the value
Your token starts with pat_ and acts as your API key. Keep it secure — it has the same permissions as your account.
Base URL and authentication
All API requests go to:
Pass your token in the Authorization header on every request:
Authorization: Bearer YOUR_PAT_TOKEN
What's next
Follow the step-by-step guide → API Quickstart
Understand the building blocks → Layer API: Key concepts
Upload reference images for generation → Uploading files via the API
