> ## 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.

# API reference

Send requests to `https://customer.lululab.ai`. Use the raw API key in the `Authorization` header. Submit creation jobs through `POST /tasks` and choose the capability with `workflowId`.

| Purpose | Method and path | Notes |
| - | - | - |
| Create upload destination | `POST /uploads` | Returns presignedUrl and file id |
| List uploaded files | `GET /files` | Optional; get asset location and mimeType |
| Estimate credits | `POST /billing/estimates` | Call before submission; final settlement is server-side |
| Create a quote | `POST /billing/quotes` | Optional; returns an id usable as quoteId when submitting |
| Create a job | `POST /tasks` | Returns an id and initial status |
| Get a job | `GET /tasks/{id}` | Returns status, output, and errors |
| List jobs | `GET /tasks` | Supports pagination and workflowId filtering |

Estimate example:

```bash Image credit estimate theme={null}
curl -X POST https://customer.lululab.ai/billing/estimates \
  -H "Content-Type: application/json" \
  -d '{ "items": [{
    "workflowId": "ImageGenV2",
    "input": { "model": "gpt-image-2-5-flare", "resolution": "1K", "imageCount": 1 }
  }] }'
```

For a time-limited quote, submit the same pricing input to /billing/quotes. The returned id can be used as quoteId on the task.

```bash Create an image task quote theme={null}
curl -X POST https://customer.lululab.ai/billing/quotes \
  -H "Authorization: $LULULAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflowId": "ImageGenV2",
    "input": { "model": "gpt-image-2-5-flare", "resolution": "1K", "imageCount": 1 }
  }'
```

### Common task fields

| Field / type | Required | Values and description |
| - | - | - |
| `workflowId` (`string`) | Yes | ImageGenV2 · VideoGenV2 · SalesVideoPromptV3 · VideoCreationV1 · ProductImagePromptV1 · Select the capability. Product workflows require a planning task followed by generation. |
| `input` (`object`) | Yes | Workflow-specific parameters; see the field table for each capability. |
| `attributes.saveGeneratedAssets` (`boolean`) | No | true · false · Set true on generation jobs to save the result. |
| `attributes.creationSource` (`string`) | No | api · Optional source marker; examples use api. |
| `quoteId` (`UUID`) | No | Optional quote ID returned by /billing/quotes. |


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