Base URL:Documentation Index
Fetch the complete documentation index at: https://docs.uselamina.ai/llms.txt
Use this file to discover all available pages before exploring further.
https://app.uselamina.ai
Auth: x-api-key: lma_your_api_key
Lamina is an agentic creative API for generating videos, movies, and images for products, brands, social, and ads. You send a brief, it creates content. Two paths depending on how much control you need.
Path 1: One-call creation (recommended for agents)
The fastest way to create content. Describe what you want, the engine handles everything.Create content from a brief
Wait for results
status is "completed", outputs contain your generated assets (image URLs, video URLs, text).
That’s it
Two calls: create and wait. The engine selected the best app, resolved brand context, mapped inputs, and executed the workflow.Path 2: Full control (choose the app yourself)
When you need to pick a specific app, inspect its parameters, and provide exact inputs.1. Discover an app
search when you know the capability you want to build around:
appId from the response.
2. Inspect the input schema
name as the key when sending inputs. For options, send the label from the options array. This lets your backend or UI adapt to different apps without changing the execution contract.
3. Start execution
?webhook= and poll or wait instead.
4. Get results
Three options depending on your integration: Via wait (simplest for agents): Block until the execution finishes or the timeout expires. No polling loop needed.timeout=60 for image workflows, timeout=120 for video. If it times out, timeout: true is returned alongside the current state — call again or fall back to polling.
Via webhook: If you passed ?webhook=, your callback URL receives a POST with the results when the execution completes. The payload has the same structure as the polling response below, signed with ED25519 headers for verification.
Via polling: Poll every 3-5 seconds:
queued -> running -> completed or failed
When status is "completed", output type changes from "pending" to "image", "video", or "text", and value contains the result:
status is "failed", check errorMessage and each output’s error field.
Score and distribute (optional)
After creation, you can:- Score content:
POST /v1/content/score— evaluate quality against brand context before publishing - Publish:
POST /v1/publishing/publish— send to connected social channels - Transfer to CDN:
POST /v1/publishing/transfer-asset— permanent hosting on your own infrastructure
What’s next
- Key Concepts — understand the Creative Engine mental model
- Agent Integration Patterns
- Integration Recipes
- Use the CLI and SDK