sandbase-ai/magi-distilled-extend-video
Magi Distilled Extend Video is sandbase-ai's video-to-video AI model. Transform, enhance, and edit video content using text prompts - from style changes to object manipulation and scene modification.
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runsandbase-ai/magi-distilled-extend-videoInput Schema
7 parameters · 1 required · 6 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The text prompt to guide video generation. |
seed | integer | Optional | Random seed for reproducibility. If None, a random seed is chosen. |
video | string | Optional | URL of the input video to represent the beginning of the video. If the input video does not match the chosen aspect ratio, it is resized and center cropped. |
resolution | string | Optional | Resolution of the generated video (480p or 720p). 480p is 0.5 billing units, and 720p is 1 billing unit. · Options: 480p, 720p · Default: "720p" 480p720p |
start_frame | integer | Optional | The frame to begin the generation from, with the remaining frames will be treated as the prefix video. The final video will contain the frames up until this number unchanged, followed by the generated frames. The default start frame is 32 frames before the end of the video, which gives optimal results. · Min: 0 |
aspect_ratio | string | Optional | The aspect ratio of the generated image. · Options: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 21:916:93:24:35:41:14:53:42:39:16 |
num_inference_steps | integer | Optional | Options: 4, 8, 16, 32 · Default: 16 481632 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "sandbase-ai/magi-distilled-extend-video",
"video": "https://static.sandbase.ai/examples/bytedance/upscaler/video/input_video_0.mp4",
"prompt": "a beautiful sunset over mountains",
"resolution": "720p",
"num_inference_steps": 16
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
MAGI-1 (Distilled)
MAGI-1 (Distilled) occupies the video-transformation role in the model catalog for design-system owners. Its practical value is to turn a one-off creative request into a repeatable catalog operation: an upstream service can confirm that it has prompt, submit one well-scoped job, and receive a transformed video asset for downstream approval. This positioning explains when the exact sandbase-ai/magi-distilled-extend-video route belongs in an architecture without borrowing promises from another version, tier, or task variant.
A useful acceptance workflow begins by checking the source ownership, expected result, and release checklist. The caller records required values separately from optional choices such as seed, video, resolution, start_frame, aspect_ratio, num_inference_steps, runs a small representative sample, and stores the route name with the resulting artifact. Reviewers then compare that artifact with the agreed acceptance criteria, document any rejected setup, and promote only a successful request shape into larger batches. This workflow gives sandbase-ai/magi-distilled-extend-video measurable business context while leaving the Highlights section to explain model behavior.
Highlights
- Distilled clip continuation. A source video and
start_frameestablish where the lighter extension path begins. - Continuation-specific prompting. The written instruction covers action after the supplied boundary instead of redescribing an opening frame.
- Dual-axis billing. Both seconds beyond four and inference steps beyond sixteen contribute documented incremental charges.
- Resolution and framing control. The extension keeps explicit canvas choices while using the distilled generation profile.
Pricing
| Billing option | Price |
|---|---|
| Billing formula | 0.32 + Math.max(0, params.duration - 4) * 0.08 + Math.max(0, params.inference_steps - 16) * (0.32 / 16) |
| Catalog base price | $0.320000 |
When to Use
| Scenario | Why it fits |
|---|---|
| Choose MAGI-1 (Distilled) | Use it when the job specifically calls for magi distilled extend video and the route’s documented input contract matches assets already available in your workflow. |
| Keep the request reproducible | Use the required prompt explicitly, then record optional choices alongside the prompt for repeatable reruns. |
| Build controlled creative variations | Change one declared control at a time when comparing framing, format, duration, resolution, style, or other route-supported output decisions. |
| Integrate asynchronous delivery | Use this endpoint when an application can submit work, track completion, and collect the returned media URL instead of requiring an immediate inline artifact. |
| Validate before a large batch | Run representative prompts and source assets first, confirm the visual or audio behavior, then lock the successful request shape for scaled production. |
Prompt Guide
Lead with the subject or transformation, then add the composition, environment, style, lighting, motion, voice, or fidelity details relevant to this route. Keep every parameter inside the documented schema; the example below uses only fields declared for sandbase-ai/magi-distilled-extend-video.
{
"prompt": "",
"resolution": "720p",
"aspect_ratio": "21:9",
"num_inference_steps": 16
}
Technical Specs
| Specification | Details |
|---|---|
| Model ID | sandbase-ai/magi-distilled-extend-video |
| Execution mode | async |
| Task type | video |
seed | integer · optional |
video | string · optional |
prompt | string · required |
resolution | string · optional · choices: 480p, 720p |
start_frame | integer · optional · min 0 |
aspect_ratio | string · optional · choices: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 |
num_inference_steps | integer · optional · choices: 4, 8, 16, 32 |

