You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flash/apps/deploy-apps.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ This command performs the following steps:
20
20
3.**Provision**: Creates or updates Serverless endpoints.
21
21
4.**Configure**: Sets up environment variables and service discovery.
22
22
23
+
When you deploy updates to an existing application, Flash automatically triggers a rolling release if your source code has changed. Flash computes a fingerprint of your source files during build, so code-only changes (without resource configuration changes) still result in updated endpoints.
24
+
23
25
### Deployment architecture
24
26
25
27
Flash deploys your application as multiple independent Serverless endpoints. Each endpoint configuration in your worker files becomes a separate endpoint.
Copy file name to clipboardExpand all lines: flash/cli/deploy.mdx
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,14 @@ Target Python version for worker images (3.10, 3.11, 3.12, or 3.13). Overrides p
73
73
4.**Provisioning**: Creates or updates Serverless endpoints.
74
74
5.**Configuration**: Sets up environment variables and service discovery.
75
75
76
+
## Rolling releases for code changes
77
+
78
+
When you run `flash deploy` on an already-deployed application, Flash compares your current build against the previous deployment to determine what needs updating.
79
+
80
+
Flash triggers a rolling release when your source code changes, even if your resource configuration stays the same. During the build phase, Flash computes a fingerprint of your source files. If this fingerprint differs from the previous deployment, Flash treats it as a configuration change and initiates a rolling update to your endpoints.
81
+
82
+
This means you can iterate on your code without modifying resource configurations like GPU types or worker counts. Run `flash deploy` after making code changes, and Flash rolls out the updated code to your endpoints.
83
+
76
84
## Architecture
77
85
78
86
After deployment, your Flash app runs as independent Serverless endpoints on Runpod:
Copy file name to clipboardExpand all lines: public-endpoints/ai-sdk.mdx
+109-2Lines changed: 109 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ description: "Use the @runpod/ai-sdk-provider package to integrate Public Endpoi
5
5
tag: "NEW"
6
6
---
7
7
8
-
The `@runpod/ai-sdk-provider` package integrates Runpod Public Endpoints with the [Vercel AI SDK](https://ai-sdk.dev/docs/introduction). This gives you a streamlined, type-safe interface for text generation, streaming, and image generation in JavaScript and TypeScript projects.
8
+
The `@runpod/ai-sdk-provider` package integrates Runpod Public Endpoints with the [Vercel AI SDK](https://ai-sdk.dev/docs/introduction). This gives you a streamlined, type-safe interface for text generation, streaming, image generation, and video generation in JavaScript and TypeScript projects.
9
9
10
10
The Vercel AI SDK is a popular open-source library for building AI applications. By using the Runpod provider, you can access Runpod's Public Endpoints using the same patterns and APIs you'd use with other AI providers like OpenAI or Anthropic.
11
11
12
12
## Why use the Vercel AI SDK?
13
13
14
-
-**Unified interface**: Use the same `generateText`, `streamText`, and `generateImage` functions regardless of which AI provider you're using.
14
+
-**Unified interface**: Use the same `generateText`, `streamText`, `generateImage`, and `generateVideo` functions regardless of which AI provider you're using.
15
15
-**Type safety**: Full TypeScript support with typed responses and parameters.
16
16
-**Streaming built-in**: First-class support for streaming text responses.
17
17
-**Framework integrations**: Works seamlessly with Next.js, React, Svelte, and other frameworks.
|`maxPollAttempts`| Max polling attempts for async generation |
305
305
|`pollIntervalMillis`| Milliseconds between status polls |
306
306
307
+
## Video generation
308
+
309
+
Use `experimental_generateVideo` to generate videos from text prompts or images. The Runpod provider supports 15 video models, including Sora, Wan, Seedance, and Kling.
310
+
311
+
Video generation is asynchronous—the SDK submits a job, polls for completion, and returns the video URL when ready.
0 commit comments