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.
Building Requests Safely
When starting an execution, send aninputs object keyed by parameter name from GET /v1/apps/{appId}.
Parameter names are case-sensitive and must match the app metadata exactly.
This is what lets Lamina support different apps without changing the request envelope. Your code keeps sending inputs; only the parameter schema changes from app to app.
Example:
Public Parameter Types
| Type | What you send | Notes |
|---|---|---|
text | a string | prompts, descriptions, product names |
options | an option label | send the displayed label, not an internal ID |
url | a public URL | typically an image or video URL |
Important Rules
options
For option parameters, send the label shown in the app metadata.
Example:
url
URLs should be publicly accessible by Lamina at execution time.
Good sources include:
- your own CDN
- cloud object storage with public access
- signed URLs that will remain valid long enough for processing
Defaults
Every parameter is returned withrequired: true. If it has a default, omitting it is safe — the app uses the default value. If it has no default, you must supply a value or the request is rejected with a missing_no_default error.
Reading Results
Executions return anoutputs array. Each output object contains:
idlabeltypevaluestatuserror
Output Types
Common output types include:imagevideotextpending
status, not type, to decide if an output is finished. type stays "pending" on failed outputs — only status flips to "error". At execution start, outputs appear with type: "pending" and value: null; treat those as placeholders until status reaches completed, error, or cancelled.
Agent Artifacts
Agent-facing status responses also include anartifacts array. outputs remains the backward-compatible raw result list, while artifacts adds reuse metadata so agents can chain creative work safely.
Each artifact includes:
id,label,type,status, anderrorurlwhen the artifact is downloadable mediamimeType,dimensions, anddurationSecondswhen known or inferableprovider,model,cost, andpromptwhen availablereusableAsroles such asimage_referenceorvideo_referenceprovenancewithrunId,workflowId, node identity, and output index
artifacts when an agent needs to reuse, publish, inspect, or pass a result into another Lamina run. Use outputs for compatibility with existing integrations.
Practical Integration Pattern
For admin tooling, merchant tooling, and agent-driven clients:- fetch the app metadata
- render input controls from the parameter list
- submit
inputskeyed by parameter name - handle output rendering based on output type