> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lululab.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

## Quick start: generate an image

1. **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](https://www.lululab.ai/keys)
2. **Check credits.** Generation uses credits. Estimate the cost before submission.
3. **Submit a job.** Run the command below and save the id in its response.
4. **Fetch the result.** Poll the job id until status is Succeeded, then read output.

> [!NOTE]
>
> 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.

```bash Submit an image job theme={null}
curl -X POST https://customer.lululab.ai/tasks \
  -H "Authorization: $LULULAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflowId": "ImageGenV2",
    "input": {
      "model": "gpt-image-2-5-flare",
      "prompt": "Studio product photo of a ceramic cup on a clean table",
      "aspectRatio": "1:1",
      "resolution": "1K"
    },
    "attributes": { "saveGeneratedAssets": true, "creationSource": "api" }
  }'
```

* [Upload reference assets](https://docs.lululab.ai/uploads.md)
* [Get task results and troubleshoot](https://docs.lululab.ai/task-results.md)
* [API reference](https://docs.lululab.ai/reference.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.