# Decart

> Edit images and videos with Lucy and track generation jobs and uploaded files.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/decart

## Actions

### Delete File

Delete File in Decart.

**Inputs**

- File (`file_id`, text, required): File ID.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {}
}
```

### Edit image

Edit image in Decart.

**Inputs**

- Source image (`input_media`, text, required): Use a Decart file ID or the URL of the source media.
- Prompt (`prompt`, text, required): Prompt.
- Seed (`seed`, number): Seed. From 0.0 to 4294967295.0.
- Resolution (`resolution`, text): Resolution. One of: `720p`, `480p`. Default: `720p`.
- Enhance prompt (`enhance_prompt`, true/false): Enhance prompt. Default: `true`.
- Reference image (`reference_image`, text): Use a Decart file ID or the URL of the reference image.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Edit video lucy 21

Edit video lucy 21 in Decart.

**Inputs**

- Source video (`input_media`, text, required): Use a Decart file ID or the URL of the source media.
- Prompt (`prompt`, text): Prompt.
- Seed (`seed`, number): Seed. From 0.0 to 4294967295.0.
- Resolution (`resolution`, text): Resolution. One of: `720p`. Default: `720p`.
- Enhance prompt (`enhance_prompt`, true/false): Enhance prompt. Default: `true`.
- Reference image (`reference_image`, text): Use a Decart file ID or the URL of the reference image.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "status": "example"
  }
}
```

### Edit video lucy 25

Edit video lucy 25 in Decart.

**Inputs**

- Source video (`input_media`, text, required): Use a Decart file ID or the URL of the source media.
- Prompt (`prompt`, text): Prompt.
- Seed (`seed`, number): Seed. From 0.0 to 4294967295.0.
- Resolution (`resolution`, text): Resolution. One of: `720p`. Default: `720p`.
- Enhance prompt (`enhance_prompt`, true/false): Enhance prompt. Default: `true`.
- Self anchor (`self_anchor`, true/false): Self anchor. Default: `true`.
- Reference image (`reference_image`, text): Use a Decart file ID or the URL of the reference image.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "status": "example"
  }
}
```

### Edit video lucy 26

Edit video lucy 26 in Decart.

**Inputs**

- Source video (`input_media`, text, required): Use a Decart file ID or the URL of the source media.
- Prompt (`prompt`, text): Prompt.
- Seed (`seed`, number): Seed. From 0.0 to 4294967295.0.
- Resolution (`resolution`, text): Resolution. One of: `720p`. Default: `720p`.
- Enhance prompt (`enhance_prompt`, true/false): Enhance prompt. Default: `true`.
- Self anchor (`self_anchor`, true/false): Self anchor. Default: `true`.
- Reference image (`reference_image`, text): Use a Decart file ID or the URL of the reference image.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "status": "example"
  }
}
```

### Get Credits

Get Credits in Decart.

**Inputs**: None.

**Outputs**

- `data` (object): CreditsResponse

**Example output**

```json
{
  "data": {
    "credits": 1,
    "key_quota": {
      "limit": 1,
      "remaining": 1,
      "resets_at": "example",
      "used": 1
    }
  }
}
```

### Get File By MD5

Get File By MD5 in Decart.

**Inputs**

- MD5 (`md5`, text, required): MD5.

**Outputs**

- `data` (object): FileReferenceResponse

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "expires_at": "example",
    "filename": "example",
    "id": "example",
    "md5": "example",
    "mime_type": "example",
    "size_bytes": 1
  }
}
```

### Get File Metadata

Get File Metadata in Decart.

**Inputs**

- File (`file_id`, text, required): File ID.

**Outputs**

- `data` (object): FileReferenceResponse

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "expires_at": "example",
    "filename": "example",
    "id": "example",
    "md5": "example",
    "mime_type": "example",
    "size_bytes": 1
  }
}
```

### Get Job

Get Job in Decart.

**Inputs**

- Job ID (`job_id`, text, required): Job ID.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "status": "example"
  }
}
```

### Get Job Content

Get Job Content in Decart.

**Inputs**

- Job ID (`job_id`, text, required): Job ID.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Get Realtime Quota

Get Realtime Quota in Decart.

**Inputs**: None.

**Outputs**

- `data` (object): RealtimeQuotaResponse

**Example output**

```json
{
  "data": {
    "active": 1,
    "limit": 1,
    "remaining": 1
  }
}
```

### List Files

List Files in Decart.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000. Default: `100`.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): FileListResponse

**Example output**

```json
{
  "data": {
    "files": [],
    "next_cursor": "example"
  }
}
```

### Resolve Model Aliases

Resolve Model Aliases in Decart.

**Inputs**

- Model (`model`, text): Model.
- Models (`models`, list): Models.

**Outputs**

- `data` (object): ModelResolveResponse

**Example output**

```json
{
  "data": {
    "model_id": "example",
    "model_ids": {}
  }
}
```

### Restyle video

Restyle video in Decart.

**Inputs**

- Source video (`input_media`, text, required): Use a Decart file ID or the URL of the source media.
- Prompt (`prompt`, text): Prompt.
- Seed (`seed`, number): Seed. From 0.0 to 4294967295.0.
- Resolution (`resolution`, text): Resolution. One of: `720p`. Default: `720p`.
- Enhance prompt (`enhance_prompt`, true/false): Enhance prompt. Default: `true`.
- Reference image (`reference_image`, text): Use a Decart file ID or the URL of the reference image.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "status": "example"
  }
}
```

### Try on clothing

Try on clothing in Decart.

**Inputs**

- Source video (`input_media`, text, required): Use a Decart file ID or the URL of the source media.
- Prompt (`prompt`, text): Prompt.
- Seed (`seed`, number): Seed. From 0.0 to 4294967295.0.
- Resolution (`resolution`, text): Resolution. One of: `720p`. Default: `720p`.
- Enhance prompt (`enhance_prompt`, true/false): Enhance prompt. Default: `true`.
- Reference image (`reference_image`, text, required): Use a Decart file ID or the URL of the reference image.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "status": "example"
  }
}
```

### Try on clothing lucy 35

Try on clothing lucy 35 in Decart.

**Inputs**

- Source video (`input_media`, text, required): Use a Decart file ID or the URL of the source media.
- Prompt (`prompt`, text): Prompt.
- Seed (`seed`, number): Seed. From 0.0 to 4294967295.0.
- Resolution (`resolution`, text): Resolution. One of: `720p`. Default: `720p`.
- Enhance prompt (`enhance_prompt`, true/false): Enhance prompt. Default: `true`.
- Reference image (`reference_image`, text, required): Use a Decart file ID or the URL of the reference image.

**Outputs**

- `data` (object): The Decart response.

**Example output**

```json
{
  "data": {
    "job_id": "example",
    "status": "example"
  }
}
```

### Upload File

Upload File in Decart.

**Inputs**

- File (`file`, text, required): Choose a file from the workflow or enter a public download URL.
- Ttl seconds (`ttl_seconds`, number): Ttl seconds.

**Outputs**

- `data` (object): FileReferenceResponse

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "expires_at": "example",
    "filename": "example",
    "id": "example",
    "md5": "example",
    "mime_type": "example",
    "size_bytes": 1
  }
}
```
