zf-kbot/md-me-video-editor-v2-1
Run zf-kbot/md-me-video-editor-v2-1 with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| apikey |
string
|
API access key.
|
|
| prompt |
string
|
Describe the scene, motion and speech; references follow image list order.
|
|
| reference_images |
array
|
One to nine ordered reference images.
|
|
| duration |
number
|
8
Min: 1 Max: 15 |
Seconds at 24fps; frame count rounds up to the model alignment.
|
| aspect_ratio |
None
|
9:16
|
Output aspect ratio.
|
| megapixels |
number
|
0.4
Min: 0.2 Max: 2 |
First-pass megapixels (1024² pixels per MP), aligned to 32 pixels; learned upscale increases each dimension by 1.5x before refinement. Larger/longer outputs need more memory.
|
| seed |
integer
|
42
Min: -1 Max: 9223372036854776000 |
Random seed; -1 selects a random seed.
|
{
"type": "object",
"title": "Input",
"required": [
"apikey",
"prompt",
"reference_images"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": 42,
"maximum": 9223372036854776000,
"minimum": -1,
"x-order": 6,
"description": "Random seed; -1 selects a random seed."
},
"apikey": {
"type": "string",
"title": "Apikey",
"format": "password",
"x-order": 0,
"writeOnly": true,
"description": "API access key.",
"x-cog-secret": true
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 1,
"description": "Describe the scene, motion and speech; references follow image list order."
},
"duration": {
"type": "number",
"title": "Duration",
"default": 8,
"maximum": 15,
"minimum": 1,
"x-order": 3,
"description": "Seconds at 24fps; frame count rounds up to the model alignment."
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 0.4,
"maximum": 2,
"minimum": 0.2,
"x-order": 5,
"description": "First-pass megapixels (1024\u00b2 pixels per MP), aligned to 32 pixels; learned upscale increases each dimension by 1.5x before refinement. Larger/longer outputs need more memory."
},
"aspect_ratio": {
"enum": [
"1:1",
"2:3",
"3:2",
"3:4",
"4:3",
"9:16",
"16:9",
"21:9"
],
"type": "string",
"title": "aspect_ratio",
"description": "Output aspect ratio.",
"default": "9:16",
"x-order": 4
},
"reference_images": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Reference Images",
"x-order": 2,
"description": "One to nine ordered reference images."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}