GeminiOmniFlashWorkflowInputAPI
API input for the Gemini Omni Flash video workflow. Two mutually-exclusive input styles are accepted: 1. **Parts**: an interleaved ``parts`` list (``TextPart`` / ``ImagePart`` / ``VideoPart``), identical to our other multimodal endpoints. Image parts carry a ``role``: ``first_frame`` (image-to-video), an optional ``last_frame`` next to it (the clip ends on that image; ``duration`` 3-10 when set), or ``reference_image`` (reference-to-video, up to 6). A video part is the source clip of an edit, or with role ``reference_video`` a reference clip (up to 3, or 1 when ``duration`` is above 10; each is cut to its first 3 s). Reference images and videos combine. Authoring order is preserved. 2. **Discrete**: ``prompt`` plus optional ``starting_image_key`` (first frame) and ``ending_image_key`` (last frame), ``reference_image_keys`` (up to 6) and ``reference_video_keys``, or ``input_video_key`` (the source clip). Normalized to the parts form at the API edge. ``task`` names the intent: ``generate`` (text-, image- or reference-to-video, picked by the part roles), ``edit`` (restyle or modify the source clip), ``extend`` (continue the source clip by ``duration`` seconds, 3-10, required; source + continuation at most 30 s; the result is the whole clip) or ``upscale`` (raise the source clip to ``resolution``, required; source at most 15 s and 720p-class; a 360p source goes to 720p/1080p, a 720p source to 1080p/4k; the prompt is optional). Omitted, a request with a source video is an edit and anything else is a generation. ``previous_interaction_id`` (the ``interaction_id`` of an earlier result, kept 7 days) makes a follow-up edit of that result: a text prompt and nothing else (no media, ``duration``, ``aspect_ratio`` or ``resolution``); ``task`` omitted or ``edit``. An expired id fails the run with ``invalid_input``. ``aspect_ratio`` (``16:9``/``9:16``) is auto-detected from the first-frame image when omitted. ``resolution`` (``360p``/``720p``/``1080p``/``4k``) sets the output of a generation; omitted, the provider serves 720p. It is the target of an upscale. Video editing: input clips up to 15s (MP4/WebM/MOV...; oversized inputs are transcoded down to 720p-class automatically); a longer clip is rejected. ``aspect_ratio``, ``duration`` and ``resolution`` cannot be set for edits; the output tracks the input clip.
Artificial IntelligenceMarketingEnterpriseContentPlatform
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/rawa-ai/json-schema/rawa-ai-gemini-omni-flash-workflow-input-api-schema.json",
"title": "GeminiOmniFlashWorkflowInputAPI",
"description": "API input for the Gemini Omni Flash video workflow.\n\nTwo mutually-exclusive input styles are accepted:\n\n1. **Parts**: an interleaved ``parts`` list (``TextPart`` / ``ImagePart``\n / ``VideoPart``), identical to our other multimodal endpoints. Image\n parts carry a ``role``: ``first_frame`` (image-to-video), an optional\n ``last_frame`` next to it (the clip ends on that image; ``duration``\n 3-10 when set), or ``reference_image`` (reference-to-video, up to 6).\n A video part is the source clip of an edit, or with role\n ``reference_video`` a reference clip (up to 3, or 1 when ``duration``\n is above 10; each is cut to its first 3 s). Reference images and\n videos combine. Authoring order is preserved.\n\n2. **Discrete**: ``prompt`` plus optional ``starting_image_key`` (first\n frame) and ``ending_image_key`` (last frame), ``reference_image_keys``\n (up to 6) and ``reference_video_keys``, or ``input_video_key`` (the\n source clip). Normalized to the parts form at the API edge.\n\n``task`` names the intent: ``generate`` (text-, image- or\nreference-to-video, picked by the part roles), ``edit`` (restyle or\nmodify the source clip), ``extend`` (continue the source clip by\n``duration`` seconds, 3-10, required; source + continuation at most 30 s;\nthe result is the whole clip) or ``upscale`` (raise the source clip to\n``resolution``, required; source at most 15 s and 720p-class; a 360p\nsource goes to 720p/1080p, a 720p source to 1080p/4k; the prompt is\noptional). Omitted, a request with a source video is an edit and anything\nelse is a generation.\n\n``previous_interaction_id`` (the ``interaction_id`` of an earlier result,\nkept 7 days) makes a follow-up edit of that result: a text prompt and\nnothing else (no media, ``duration``, ``aspect_ratio`` or\n``resolution``); ``task`` omitted or ``edit``. An expired id fails the run\nwith ``invalid_input``.\n\n``aspect_ratio`` (``16:9``/``9:16``) is auto-detected from the first-frame\nimage when omitted. ``resolution`` (``360p``/``720p``/``1080p``/``4k``)\nsets the output of a generation; omitted, the provider serves 720p. It is\nthe target of an upscale.\n\nVideo editing: input clips up to 15s (MP4/WebM/MOV...; oversized inputs\nare transcoded down to 720p-class automatically); a longer clip is\nrejected. ``aspect_ratio``, ``duration`` and ``resolution`` cannot be set\nfor edits; the output tracks the input clip.",
"x-generated": "2026-11-22",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/_original/rawa-ai-api-openapi.json#/components/schemas/GeminiOmniFlashWorkflowInputAPI",
"properties": {
"parts": {
"anyOf": [
{
"items": {
"anyOf": [
{
"$ref": "#/$defs/TextPart"
},
{
"$ref": "#/$defs/ImagePart"
},
{
"$ref": "#/$defs/VideoPart"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Parts"
},
"prompt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Prompt"
},
"starting_image_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starting Image Key"
},
"ending_image_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ending Image Key"
},
"reference_image_keys": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Reference Image Keys"
},
"reference_video_keys": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Reference Video Keys"
},
"input_video_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Input Video Key"
},
"task": {
"anyOf": [
{
"type": "string",
"enum": [
"generate",
"edit",
"extend",
"upscale"
]
},
{
"type": "null"
}
],
"title": "Task"
},
"aspect_ratio": {
"anyOf": [
{
"type": "string",
"enum": [
"16:9",
"9:16"
]
},
{
"type": "null"
}
],
"title": "Aspect Ratio"
},
"duration": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Duration"
},
"resolution": {
"anyOf": [
{
"type": "string",
"enum": [
"360p",
"720p",
"1080p",
"4k"
]
},
{
"type": "null"
}
],
"title": "Resolution"
},
"previous_interaction_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Previous Interaction Id"
},
"output_path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Output Path"
},
"webhook_url": {
"anyOf": [
{
"type": "string",
"maxLength": 2083,
"minLength": 1,
"format": "uri"
},
{
"type": "null"
}
],
"title": "Webhook Url"
}
},
"type": "object",
"$defs": {
"ImagePart": {
"properties": {
"type": {
"type": "string",
"const": "image",
"title": "Type",
"default": "image"
},
"url": {
"anyOf": [
{
"type": "string",
"maxLength": 2083,
"minLength": 1,
"format": "uri"
},
{
"type": "null"
}
],
"title": "Url"
},
"s3_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "S3 Key"
},
"role": {
"anyOf": [
{
"type": "string",
"enum": [
"first_frame",
"last_frame",
"reference_image"
]
},
{
"type": "null"
}
],
"title": "Role"
}
},
"type": "object",
"title": "ImagePart",
"description": "An image content part - provide either url or s3_key.\n\nThe optional ``role`` is used by workflows that need to distinguish\nimages semantically (e.g. Gemini Omni Flash expects ``first_frame``,\n``last_frame`` or ``reference_image``). Workflows that don't care\nabout roles ignore the field."
},
"TextPart": {
"properties": {
"type": {
"type": "string",
"const": "text",
"title": "Type",
"default": "text"
},
"content": {
"type": "string",
"title": "Content"
}
},
"type": "object",
"required": [
"content"
],
"title": "TextPart",
"description": "A text content part."
},
"VideoPart": {
"properties": {
"type": {
"type": "string",
"const": "video",
"title": "Type",
"default": "video"
},
"url": {
"anyOf": [
{
"type": "string",
"maxLength": 2083,
"minLength": 1,
"format": "uri"
},
{
"type": "null"
}
],
"title": "Url"
},
"s3_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "S3 Key"
},
"role": {
"anyOf": [
{
"type": "string",
"enum": [
"source_video",
"reference_video"
]
},
{
"type": "null"
}
],
"title": "Role"
}
},
"type": "object",
"title": "VideoPart",
"description": "A video content part - provide either url or s3_key.\n\nCurrently only used by Gemini Omni Flash. ``role`` omitted or\n``source_video`` is the clip an edit works on; ``reference_video`` is a\nreference clip for reference-to-video (its first 3 s are used)."
}
}
}
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.