create_generation
Generate videos from text, images, or existing videos using customizable parameters like resolution, duration, and aspect ratio, powered by the MCP Luma Dream Machine server.
Instructions
Creates a new video generation from text, image, or existing video
Input Schema
Name | Required | Description | Default |
---|---|---|---|
aspect_ratio | No | ||
callback_url | No | ||
duration | No | ||
keyframes | No | ||
loop | No | ||
model | No | ray-2 | |
prompt | Yes | ||
resolution | No |
Input Schema (JSON Schema)
{
"$defs": {
"AspectRatio": {
"description": "Supported aspect ratios for video and image generations.",
"enum": [
"1:1",
"16:9",
"9:16",
"4:3",
"3:4",
"21:9",
"9:21"
],
"title": "AspectRatio",
"type": "string"
},
"Duration": {
"description": "Duration options for Luma API video generations.\nAs of the current API version, only \"5s\" and \"9s\" are supported.",
"enum": [
"5s",
"9s"
],
"title": "Duration",
"type": "string"
},
"Resolution": {
"enum": [
"540p",
"720p",
"1080p",
"4k"
],
"title": "Resolution",
"type": "string"
},
"VideoModel": {
"description": "Video generation models supported by the Luma API.",
"enum": [
"ray-1-6",
"ray-2",
"ray-flash-2"
],
"title": "VideoModel",
"type": "string"
}
},
"description": "Input parameters for video generation.",
"properties": {
"aspect_ratio": {
"anyOf": [
{
"$ref": "#/$defs/AspectRatio"
},
{
"type": "null"
}
],
"default": null
},
"callback_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Callback Url"
},
"duration": {
"anyOf": [
{
"$ref": "#/$defs/Duration"
},
{
"type": "null"
}
],
"default": null
},
"keyframes": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Keyframes"
},
"loop": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Loop"
},
"model": {
"$ref": "#/$defs/VideoModel",
"default": "ray-2"
},
"prompt": {
"title": "Prompt",
"type": "string"
},
"resolution": {
"anyOf": [
{
"$ref": "#/$defs/Resolution"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"prompt"
],
"title": "CreateGenerationInput",
"type": "object"
}