Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/express-api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import express from "express";
import { createDecartClient, models } from "@decartai/sdk";

const app = express();
app.use(express.json());
app.use(express.json({ limit: "50mb" }));

const client = createDecartClient({
apiKey: process.env.DECART_API_KEY!,
Expand Down
11 changes: 4 additions & 7 deletions examples/sdk-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pnpm build

```sh
cd examples/sdk-core
pnpm tsx video/text-to-video.ts
pnpm tsx image/text-to-image.ts
pnpm tsx video/video-to-video.ts
pnpm tsx image/image-to-image.ts
```

## Examples
Expand All @@ -31,16 +31,13 @@ pnpm tsx image/text-to-image.ts

Image models use the synchronous Process API - they return immediately with a Blob.

- `image/text-to-image.ts` - Edit image with a prompt (`lucy-pro-i2i`)
- `image/image-to-image.ts` - Transform existing image
- `image/image-to-image.ts` - Transform existing image with a prompt (`lucy-pro-i2i`)

### Video Generation

Video models use the asynchronous Queue API - jobs are submitted and polled for completion.

- `video/text-to-video.ts` - Edit video with a prompt (`lucy-pro-v2v`)
- `video/image-to-video.ts` - Edit video with a prompt (`lucy-pro-v2v`)
- `video/video-to-video.ts` - Transform existing video
- `video/video-to-video.ts` - Transform existing video with a prompt (`lucy-pro-v2v`)
- `video/video-editing.ts` - Edit video with prompt, reference image, or both (`lucy-2-v2v`)
- `video/long-form-video-restyle.ts` - Transform existing video with `lucy-restyle-v2v`
- `video/manual-polling.ts` - Manual job status polling
Expand Down
24 changes: 0 additions & 24 deletions examples/sdk-core/image/text-to-image.ts

This file was deleted.

30 changes: 0 additions & 30 deletions examples/sdk-core/video/image-to-video.ts

This file was deleted.

30 changes: 0 additions & 30 deletions examples/sdk-core/video/text-to-video.ts

This file was deleted.

Loading