Quick start: generate an image
- Get an API key. Sign in to LuluLab and copy a key from My Keys. Store it in a server environment variable. Open My Keys
- Check credits. Generation uses credits. Estimate the cost before submission.
- Submit a job. Run the command below and save the id in its response.
- Fetch the result. Poll the job id until status is Succeeded, then read output.
The examples use a macOS / Linux shell. First run export LULULAB_API_KEY=“your luk- key”. Send the raw key in the Authorization header without a Bearer prefix. Never put a real key in browser code or a public repository.
Submit an image job