LTX 2.3 Outpaint
LTX · Video · Video → Video
Expand a video past its original frame — the source stays put inside a wider canvas and the surrounding region is generated to match.
Model ID:
ltx-v2.3-outpaintWorkflow: ltx-2.3-quality/outpaintVideo InputOutpaintAudioUp to 1080p
Install the SDK
The SDK targets Node 20+ and ships with TypeScript types.
npm
npm install @picsart/ai-sdkAuthenticate
Create a client once with your API key — it's sent as a bearer token on every request.
TypeScript
import { createClient } from '@picsart/ai-sdk';
const ai = createClient({
apiKey: process.env.PICSART_API_KEY, // sent as: Authorization: Bearer <key>
apiUrl: 'https://api.green-salad-4efd.toolsminati.workers.dev',
});Run the model
Call the model with its parameters. This example uses the required ones.
TypeScript
import { createClient } from '@picsart/ai-sdk';
const ai = createClient({
apiKey: process.env.PICSART_API_KEY,
apiUrl: 'https://api.green-salad-4efd.toolsminati.workers.dev',
});
const result = await ai.generate('ltx-v2.3-outpaint', {
prompt: "A serene mountain lake at golden hour, ultra detailed",
videoUrl: "https://cdn.example.com/input.mp4",
aspectRatio: "21:9",
resolution: "720p"
});
console.log(result.url); // video URLParameters
17 parameters. Required ones must be supplied; the rest fall back to their defaults. The API takes these same names over HTTP.
| Parameter | Type | Required | Default | Details |
|---|---|---|---|---|
promptPrompt | text | yes | — | max 5000 chars |
videoUrlSource Video | file (video) | yes | — | — |
negativePromptNegative Prompt | text | no | — | — |
aspectRatio | enum | no | 21:9 | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, 9:21 |
resolution | enum | no | 720p | 480p, 720p, 1080p |
numFramesFrames | range | no | 121 | 9–481 |
fpsFPS | range | no | 24 | 1–60 |
sourceScaleSource Scale | range | no | 1 | 0.25–1 (step 0.05) |
videoStrengthSource Strength | range | no | 1 | 0–1 (step 0.05) |
cfgScaleCFG Scale | range | no | 1 | 1–20 |
numInferenceStepsInference Steps | range | no | 15 | 8–30 |
videoQualityVideo Quality | enum | no | high | low, medium, high, maximum |
videoWriteModeWrite Mode | enum | no | balanced | fast, balanced, small |
enhancePrompt | boolean | no | true | — |
generateAudio | boolean | no | true | — |
enableSafetyCheckerSafety Checker | boolean | no | true | — |
seedSeed | range | no | — | 0–2147483647 (step 1) |
Output
generate() resolves once the job completes. A video URL.
Result
{
"items": [
{
"url": "https://cdn.green-salad-4efd.toolsminati.workers.dev/…/result"
}
],
"model": "ltx-v2.3-outpaint"
}