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

# Upload

> Upload media to VidJutsu CDN.

## Upload from URL

```typescript theme={null}
const { data, error } = await vj.uploadFromUrl({
  url: "https://example.com/video.mp4",
});
console.log(data.url); // CDN URL
```

## Upload binary file

```typescript theme={null}
const file = await fs.readFile("./video.mp4");
const { data, error } = await vj.uploadFile(file);
console.log(data.url); // CDN URL
```

## Response

```json theme={null}
{
  "id": "upl_...",
  "url": "https://cdn.vidjutsu.ai/uploads/..."
}
```

## Rate limit

Unmetered for billing — subject to a 100/day rate limit on the `upload` group.
