Download OpenAPI specification:Download
Welcome to the Vimmerse Platform API. As of June 2024, we are building the REST v2.1.0 API service to be the primary API service for the Vimmerse Platform. All services on the API will continue to be maintained.
You will need your Vimmerse API key to make requests to this API. Make sure you never share your API key with anyone, and never commit it to a public repository. Include this key in the X-Api-Key
header of your requests. You don't have to worry about authorization tokens if you have your API key. To experience our platform, you can contact us to get a free API key.
You can create media by submitting Form Data with image
and data
JSON string. Once media is generated, you can update parameters to regenerate your bullet video.
Batch is comparable to Media; however, it allows you to upload multiple images in a Batch and process them collectively.
If you have any questions or concerns, please reach out to us by sending an email to mailto:support@vimmerse.net.
This API creates a new media object with an uploaded image and process the Media with the request body. Include request data in the form data.
X-Api-Key
: Your customer API key.image
: Images to upload. If you upload a single image, an auto motion video will be created from that image. If you upload two images, the second image will be treated as the final frame of the video, resulting in motion transitions between the two images. The most recently uploaded image will be considered the last frameTransition features are not supported for 'LedonadoMotion' and 'StableDiffusionMotion' motion types.
data
: JSON string of your request data.You can submit the parameters by JSON-stringifying the data. All fields are optional, and default values will be set automatically.
title
: Title of the media.
description
: Description of the media.
pose_preset
:
This parameter defines the movement of the pose and consists of MotionType
and Params
.
MotionType
: Defines the type of motion. Available values are: 'Auto', 'StableVideoDiffusion', 'LeonardoMotion', 'DynamiCrafter', 'HaiperVideo', 'LumaAI', and 'Parallax'.
Auto
: Video motion is defined automatically based on input settings.LeonardoMotion
: Video motion is generated by Ledonado AI image2motion tool. It only takes input image and motionAmount. It doesnot support transition frame, prompt.StableVideoDiffusion
: Video motion is generated by Stability's Stable Video Diffusion v2. It only takes input image and motionAmount. It doesnot support transition frame, prompt.DynamiCrafter
: Video motion is generated by DynamiCrafter-Interpolation. It takes input image, transition frame, motionAmount, prompt.HaiperVideo
: Video motion is generated by Haiper AI v2.0. It takes input image and prompt. It doesnot support motionAmount and transition frame.LumaAI
: Video motion is generated by Luma AI. It takes input images(i.e. optional first and last frames) and prompt. It doesn't support motionAmount and motionLength. When LumaAI is used, camera motion can also be defined as part of the prompt by adding "camera orbit left" for instance there. Available camera motions are: Static', 'Move Left', 'Move Right', 'Move Up', 'Move Down', 'Push In', 'Pull Out', 'Zoom In', 'Zoom Out', 'Pan Left', 'Pan Right', 'Orbit Left', 'Orbit Right', 'Crane Up', 'Crane Down'.KlingAI
: video motion is generated by Kling AI v1.5 Professional model. It takes input images(i.e. optional last frames) and prompt.MinimaxHailuo
: video motion is generated by Minimax Hailuo video-01 model. It takes input image and prompt. It doesnot support motionAmount nor a transition frame.RunwayML
: video motion is generated by RunwayML Gen3. It takes input images(i.e. optional first and last frames) and prompt. It doesnot support motionAmount.Parallax
: Video motion is defined by a camera path which is specified in Params
.Params
: Contains detailed values for video motion. If you have chosen the Prompt
motion type, you will need to provide prompt text under Prompt
in Params
.
CameraPath
: Defines the camera path of the bullet video. Only available when Parallax
motion type is chosen. Available values are HorizontalArc
, VerticalArc
, StepIn
, Cross
, Circular
, StepD
, StepU
, StepL
and StepR
.Prompt
: The prompt for movement for the bullet video. Only available when Prompt
motion type is chosen.PromptStrength
: Defines prompt strength for video generation. Available values are 1, 2, 3, 4, or 5.Quantity
: The number of bullet videos to generate.MotionAmount
: The amount of motion, ranging from 1 to 10.MotionLength
: The length of the generated bullet video.Loop
: The number of repetitions of the same motion.submit_params
:
The quality of the bullet video can be adjusted with this parameter. The default value is recommended. To use the default value, you don't need to include this parameter in the request. However, if you want to change this value, please contact us first.
scale_factor
: Scale factor of the bullet video. Range is (0 - 2). Default value is "1".pipeline_preset
: Defines media processing preset. Available values are Fast
and Normal
. Default value is "Fast".file_size
: Defines maximum file size of bullet videos as a string. Unit of the size is MB. Default value is an empty string. Please input value as a string. Ex: "1.6".This example shows how to generate videos by several motions. They are Horizontal, Cross and StepDown Parallax motions and 2 AI motions.
import requests
import json
import time
import os
API_KEY = 'YOUR_API_KEY'
BASE_URL = "https://api.vimmerse.net"
CREATE_MEDIA_UPLOAD_URL = f"{BASE_URL}/media/upload"
PROCESS_STATUS_URL_TEMPLATE = f"{BASE_URL}/media/{{media_id}}/processing-status"
DOWNLOAD_URL_TEMPLATE = f"{BASE_URL}/media/{{media_id}}/download?object_type=bullet_video_mp4&motion_type=Auto1"
headers = {
'X-Api-Key': API_KEY,
}
# Create media request data
request_data = {
"title": "New Media Example1",
"pose_preset": [
{"MotionType": "Parallax", "Params": "CameraPath=HorizontalArc|Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"},
{"MotionType": "Parallax", "Params": "CameraPath=Cross|Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"},
{"MotionType": "Parallax", "Params": "CameraPath=StepD|Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"},
{"MotionType": "Auto", "Params": "Prompt=|PromptStrength=1|Quantity=2|MotionAmount=5|MotionLength=5|Loop=1"}
]
}
# Select files to upload
file_path = './nike_shoe.png'
files = [
('image', ('nike_shoe.png', open(file_path, 'rb'), 'image/png'))
]
try:
# Send POST request to upload media
with open(file_path, 'rb') as file:
files = [('image', ('nike_shoe.png', file, 'image/png'))]
payload = {"data": json.dumps(request_data)}
response = requests.post(CREATE_MEDIA_UPLOAD_URL, headers=headers, data=payload, files=files)
response.raise_for_status() # Check for HTTP errors
media_data = response.json()
media_id = media_data['data']['id']
except requests.exceptions.RequestException as e:
print(f"Failed to create media: {e}")
exit()
# Wait for media processing to complete
try:
percentage = 0
while percentage != 100:
time.sleep(5)
url = PROCESS_STATUS_URL_TEMPLATE.format(media_id=media_id)
status_response = requests.get(url, headers=headers)
status_response.raise_for_status()
progress_data = status_response.json()
percentage = int(progress_data['data']['progress_percentage'])
print(f"Media processing: {percentage}%")
except requests.exceptions.RequestException as e:
print(f"Failed to get media processing status: {e}")
exit()
# Download the generated bullet video
try:
download_url = DOWNLOAD_URL_TEMPLATE.format(media_id=media_id)
download_response = requests.get(download_url, headers=headers)
download_response.raise_for_status()
output_dir = "./tmp"
os.makedirs(output_dir, exist_ok=True)
output_path = os.path.join(output_dir, "output.mp4")
with open(output_path, 'wb') as file:
file.write(download_response.content)
print(f"Downloaded video saved to {output_path}")
except requests.exceptions.RequestException as e:
print(f"Failed to download video: {e}")
This example shows how to use transition feature. Transition feature lets you generate videos by providing first and last frame of the image.
import requests
import json
import time
import os
API_KEY = 'YOUR_API_KEY'
BASE_URL = "https://api.vimmerse.net"
CREATE_MEDIA_UPLOAD_URL = f"{BASE_URL}/media/upload"
PROCESS_STATUS_URL_TEMPLATE = f"{BASE_URL}/media/{{media_id}}/processing-status"
DOWNLOAD_URL_TEMPLATE = f"{BASE_URL}/media/{{media_id}}/download?object_type=bullet_video_mp4&motion_type=Auto1"
headers = {
'X-Api-Key': API_KEY,
}
# Create media request data
request_data = {
"title": "New Media Example With Transition",
"is_transition": "1",
"pose_preset": [
{
"MotionType": "Auto",
"Params": "Prompt=|PromptStrength=1|Quantity=2|MotionAmount=5|MotionLength=5|Loop=1"
}
]
}
# Select files to upload
try:
# Send POST request to upload media
files=[
('image', ('f1.png', open('./f1.png', 'rb'), 'image/png')),
('image', ('f2.png', open('./f2.png', 'rb'), 'image/png'))
]
payload = {"data": json.dumps(request_data)}
response = requests.post(CREATE_MEDIA_UPLOAD_URL, headers=headers, data=payload, files=files)
response.raise_for_status() # Check for HTTP errors
media_data = response.json()
media_id = media_data['data']['id']
except requests.exceptions.RequestException as e:
print(f"Failed to create media: {e}")
exit()
# Wait for media processing to complete
try:
percentage = 0
while percentage != 100:
time.sleep(5)
url = PROCESS_STATUS_URL_TEMPLATE.format(media_id=media_id)
status_response = requests.get(url, headers=headers)
status_response.raise_for_status()
progress_data = status_response.json()
percentage = int(progress_data['data']['progress_percentage'])
print(f"Media processing: {percentage}%")
except requests.exceptions.RequestException as e:
print(f"Failed to get media processing status: {e}")
exit()
# Download the generated bullet video
try:
download_url = DOWNLOAD_URL_TEMPLATE.format(media_id=media_id)
download_response = requests.get(download_url, headers=headers)
download_response.raise_for_status()
output_dir = "./tmp"
os.makedirs(output_dir, exist_ok=True)
output_path = os.path.join(output_dir, "output.mp4")
with open(output_path, 'wb') as file:
file.write(download_response.content)
print(f"Downloaded video saved to {output_path}")
except requests.exceptions.RequestException as e:
print(f"Failed to download video: {e}")
New Media Object
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "496ae232-0ebf-409d-9fb0-fe75156254a7",
- "title": "Demo Title",
- "description": "This fake media is created for demo.",
- "customer_id": "demo_customer",
- "batch_id": "",
- "is_transition": "0",
- "duration_time": "5.0",
- "progress_percentage": 100,
- "processing_status": "success",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "uploading_file_example.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "pose_preset": {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepIn|Prompt=|PromptStrength=0|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1|Zoom=1"
}, - "bullet_version": "1",
- "video_history": [
- {
- "created_at": "2024-06-12 06:42:30.198640+00:00",
- "pose_preset": {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepIn|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1|EasyEase=1|Zoom=1|HorizontalCrop=0|VerticalCrop=0|Seed=0|GuidanceScale=0"
}, - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "uploading_file_example.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "nsfw": "0",
- "created_at": "2024-06-12 06:38:08.331372+00:00",
- "updated_at": "2024-06-24 16:02:26.767400",
- "version": "2"
}
}
This API creates a new media with prompt under pose_preset
data. Include request data in the form data.
X-Api-Key
: Your customer API key.You can submit prompt under pose_preset
object. All fields are optional, and default values will be set automatically.
title
: Title of the media.
description
: Description of the media.
pose_preset
:
This parameter defines the movement of the pose and consists of MotionType
and Params
.
MotionType
: Defines the type of motion. Available values are: 'Auto', 'StableVideoDiffusion', 'LeonardoMotion', 'DynamiCrafter', 'HaiperVideo', 'LumaAI', and 'Parallax'.
Auto
: Video motion is defined automatically based on input settings.LeonardoMotion
: Video motion is generated by Ledonado AI image2motion tool. It only takes input image and motionAmount. It doesnot support transition frame, prompt.StableVideoDiffusion
: Video motion is generated by Stability's Stable Video Diffusion v2. It only takes input image and motionAmount. It doesnot support transition frame, prompt.DynamiCrafter
: Video motion is generated by DynamiCrafter-Interpolation. It takes input image, transition frame, motionAmount, prompt.HaiperVideo
: Video motion is generated by Haiper AI v2.0. It takes input image and prompt. It doesnot support motionAmount and transition frame.LumaAI
: Video motion is generated by Luma AI. It takes input images(i.e. optional first and last frames) and prompt. It doesn't support motionAmount and motionLength. When LumaAI is used, camera motion can also be defined as part of the prompt by adding "camera orbit left" for instance there. Available camera motions are: Static', 'Move Left', 'Move Right', 'Move Up', 'Move Down', 'Push In', 'Pull Out', 'Zoom In', 'Zoom Out', 'Pan Left', 'Pan Right', 'Orbit Left', 'Orbit Right', 'Crane Up', 'Crane Down'.KlingAI
: video motion is generated by Kling AI v1.5 Professional model. It takes input images(i.e. optional last frames) and prompt.MinimaxHailuo
: video motion is generated by Minimax Hailuo video-01 model. It takes input image and prompt. It doesnot support motionAmount nor a transition frame.RunwayML
: video motion is generated by RunwayML Gen3. It takes input images(i.e. optional first and last frames) and prompt. It doesnot support motionAmount.Parallax
: Video motion is defined by a camera path which is specified in Params
.Params
: Contains detailed values for video motion. If you have chosen the Prompt
motion type, you will need to provide prompt text under Prompt
in Params
.
CameraPath
: Defines the camera path of the bullet video. Only available when Parallax
motion type is chosen. Available values are HorizontalArc
, VerticalArc
, StepIn
, Cross
, Circular
, StepD
, StepU
, StepL
and StepR
.Prompt
: The prompt for movement for the bullet video. Only available when Prompt
motion type is chosen.PromptStrength
: Defines prompt strength for video generation. Available values are 1, 2, 3, 4, or 5.Quantity
: The number of bullet videos to generate.MotionAmount
: The amount of motion, ranging from 1 to 10.MotionLength
: The length of the generated bullet video.Loop
: The number of repetitions of the same motion.submit_params
:
The quality of the bullet video can be adjusted with this parameter. The default value is recommended. To use the default value, you don't need to include this parameter in the request. However, if you want to change this value, please contact us first.
scale_factor
: Scale factor of the bullet video. Range is (0 - 2). Default value is "1".pipeline_preset
: Defines media processing preset. Available values are Fast
and Normal
. Default value is "Fast".file_size
: Defines maximum file size of bullet videos as a string. Unit of the size is MB. Default value is an empty string. Please input value as a string. Ex: "1.6".This example shows how to generate videos from prompt.
import requests
import json
import time
import os
API_KEY = 'YOUR_API_KEY'
BASE_URL = "https://api.vimmerse.net"
CREATE_MEDIA_UPLOAD_URL = f"{BASE_URL}/media/prompt"
PROCESS_STATUS_URL_TEMPLATE = f"{BASE_URL}/media/{{media_id}}/processing-status"
DOWNLOAD_URL_TEMPLATE = f"{BASE_URL}/media/{{media_id}}/download?object_type=bullet_video_mp4&motion_type=Auto1"
headers = {
'X-Api-Key': API_KEY,
}
json_headers = {
'X-Api-Key': API_KEY,
'Content-Type': 'application/json'
}
# Create media request data
payload = {
"title": "New media from prompt",
"description": "New media from prompt",
"pose_preset": [
{
"MotionType": "Auto",
"Params": "Prompt=Shot of Nike shoes on colorful background.|PromptStrength=5|MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
]
}
# Select files to upload
try:
# Send POST request to upload media
response = requests.post(CREATE_MEDIA_UPLOAD_URL, headers=json_headers, json=payload)
response.raise_for_status() # Check for HTTP errors
media_data = response.json()
media_id = media_data['data']['id']
except requests.exceptions.RequestException as e:
print(f"Failed to create media: {e}")
exit()
# Wait for media processing to complete
try:
percentage = 0
while percentage != 100:
time.sleep(5)
url = PROCESS_STATUS_URL_TEMPLATE.format(media_id=media_id)
status_response = requests.get(url, headers=headers)
status_response.raise_for_status()
progress_data = status_response.json()
percentage = int(progress_data['data']['progress_percentage'])
print(f"Media processing: {percentage}%")
except requests.exceptions.RequestException as e:
print(f"Failed to get media processing status: {e}")
exit()
# Download the generated bullet video
try:
download_url = DOWNLOAD_URL_TEMPLATE.format(media_id=media_id)
download_response = requests.get(download_url, headers=headers)
download_response.raise_for_status()
output_dir = "./tmp"
os.makedirs(output_dir, exist_ok=True)
output_path = os.path.join(output_dir, "output.mp4")
with open(output_path, 'wb') as file:
file.write(download_response.content)
print(f"Downloaded video saved to {output_path}")
except requests.exceptions.RequestException as e:
print(f"Failed to download video: {e}")
Title (string) or Title (null) (Title) | |
Description (string) or Description (null) (Description) | |
Primary User ID (string) or Primary User ID (null) (Primary User ID) Utilize the | |
Rating (string) or Rating (null) (Rating) Rated value. If empty, this media is not rated. | |
Webhook URL is called when status of the media has been updated. (string) or Webhook URL is called when status of the media has been updated. (null) (Webhook URL is called when status of the media has been updated.) | |
Array of Pose Preset (any) or Pose Preset (object) or Pose Preset (null) (Pose Preset) Pose preset parameter. Can be either a list or a PosePreset. | |
Submit Parameters (object) or Submit Parameters (null) (Submit Parameters) Submitting parameters. |
New Text Prompt Media Object
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "573baf50-2506-4f24-a437-93678f1e5122",
- "title": "New Text Prompt Media",
- "description": "This fake media is created for demo.",
- "customer_id": "demo_customer",
- "batch_id": "",
- "is_transition": "0",
- "duration_time": "5.0",
- "progress_percentage": 100,
- "processing_status": "success",
- "file_map": [ ],
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "pose_preset": [
- {
- "MotionType": "Auto",
- "Params": "Prompt=Shot of Nike shoes on colorful background.|PromptStrength=5|MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "bullet_version": "1",
- "video_history": [
- {
- "created_at": "2024-06-12 06:42:30.198640+00:00",
- "pose_preset": [
- {
- "MotionType": "Auto",
- "Params": "Prompt=Shot of Nike shoes on colorful background.|PromptStrength=5|MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "bullet_version": "1",
- "file_map": [ ],
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "nsfw": "0",
- "created_at": "2024-06-12 06:38:08.331372+00:00",
- "updated_at": "2024-06-24 16:02:26.767400",
- "version": "2"
}
}
This API retrieves a media object.
X-Api-Key
: Your customer API key.Content-Type
: application/json
Media Object
Bad Request
Validation Error
{- "data": {
- "id": "496ae232-0ebf-409d-9fb0-fe75156254a7",
- "title": "Demo Title",
- "description": "This fake media is created for demo.",
- "customer_id": "demo_customer",
- "batch_id": "",
- "is_transition": "0",
- "duration_time": "5.0",
- "progress_percentage": 100,
- "processing_status": "success",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "uploading_file_example.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "pose_preset": {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepIn|Prompt=|PromptStrength=0|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1|Zoom=1"
}, - "bullet_version": "1",
- "video_history": [
- {
- "created_at": "2024-06-12 06:42:30.198640+00:00",
- "pose_preset": {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepIn|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1|EasyEase=1|Zoom=1|HorizontalCrop=0|VerticalCrop=0|Seed=0|GuidanceScale=0"
}, - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "uploading_file_example.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "nsfw": "0",
- "created_at": "2024-06-12 06:38:08.331372+00:00",
- "updated_at": "2024-06-24 16:02:26.767400",
- "version": "2"
}
}
This API updates the media object based on your request. The bullet video will be regenerated if you modify the pose_preset
, or submit_params
.
X-Api-Key
: Your customer API key.Content-Type
: application/json
You can include only the fields you want to update.
title
: Title of the media.
description
: Description of the media.
pose_preset
:
This parameter defines the movement of the pose and consists of MotionType
and Params
.
MotionType
: Defines the type of motion. Available values are: 'Auto', 'StableVideoDiffusion', 'LeonardoMotion', 'DynamiCrafter', 'HaiperVideo', 'LumaAI', and 'Parallax'.
Auto
: Video motion is defined automatically based on input settings.LeonardoMotion
: Video motion is generated by Ledonado AI image2motion tool. It only takes input image and motionAmount. It doesnot support transition frame, prompt.StableVideoDiffusion
: Video motion is generated by Stability's Stable Video Diffusion v2. It only takes input image and motionAmount. It doesnot support transition frame, prompt.DynamiCrafter
: Video motion is generated by DynamiCrafter-Interpolation. It takes input image, transition frame, motionAmount, prompt.HaiperVideo
: Video motion is generated by Haiper AI v2.0. It takes input image and prompt. It doesnot support motionAmount and transition frame.LumaAI
: Video motion is generated by Luma AI. It takes input images(i.e. optional first and last frames) and prompt. It doesn't support motionAmount and motionLength. When LumaAI is used, camera motion can also be defined as part of the prompt by adding "camera orbit left" for instance there. Available camera motions are: Static', 'Move Left', 'Move Right', 'Move Up', 'Move Down', 'Push In', 'Pull Out', 'Zoom In', 'Zoom Out', 'Pan Left', 'Pan Right', 'Orbit Left', 'Orbit Right', 'Crane Up', 'Crane Down'.KlingAI
: video motion is generated by Kling AI v1.5 Professional model. It takes input images(i.e. optional last frames) and prompt.MinimaxHailuo
: video motion is generated by Minimax Hailuo video-01 model. It takes input image and prompt. It doesnot support motionAmount nor a transition frame.RunwayML
: video motion is generated by RunwayML Gen3. It takes input images(i.e. optional first and last frames) and prompt. It doesnot support motionAmount.Parallax
: Video motion is defined by a camera path which is specified in Params
.Params
: Contains detailed values for video motion. If you have chosen the Prompt
motion type, you will need to provide prompt text under Prompt
in Params
.
CameraPath
: Defines the camera path of the bullet video. Only available when Parallax
motion type is chosen. Available values are HorizontalArc
, VerticalArc
, StepIn
, Cross
, Circular
, StepD
, StepU
, StepL
and StepR
.Prompt
: The prompt for movement for the bullet video. Only available when Prompt
motion type is chosen.PromptStrength
: Defines prompt strength for video generation. Available values are 1, 2, 3, 4, or 5.Quantity
: The number of bullet videos to generate.MotionAmount
: The amount of motion, ranging from 1 to 10.MotionLength
: The length of the generated bullet video.Loop
: The number of repetitions of the same motion.submit_params
:
The quality of the bullet video can be adjusted with this parameter. The default value is recommended. To use the default value, you don't need to include this parameter in the request. However, if you want to change this value, please contact us first.
scale_factor
: Scale factor of the bullet video. Range is (0 - 2). Default value is "1".pipeline_preset
: Defines media processing preset. Available values are Fast
and Normal
. Default value is "Fast".file_size
: Defines maximum file size of bullet videos as a string. Unit of the size is MB. Default value is an empty string. Please input value as a string. Ex: "1.6".Title (string) or Title (null) (Title) | |
Description (string) or Description (null) (Description) | |
Primary User ID (string) or Primary User ID (null) (Primary User ID) Utilize the | |
Rating (string) or Rating (null) (Rating) Rated value. If empty, this media is not rated. | |
Webhook URL is called when status of the media has been updated. (string) or Webhook URL is called when status of the media has been updated. (null) (Webhook URL is called when status of the media has been updated.) | |
Array of Pose Preset (any) or Pose Preset (object) or Pose Preset (null) (Pose Preset) Pose preset parameter. Can be either a list or a PosePreset. | |
Submit Parameters (object) or Submit Parameters (null) (Submit Parameters) Submitting parameters. |
Media Object
Bad Request
Validation Error
{- "data": {
- "id": "496ae232-0ebf-409d-9fb0-fe75156254a7",
- "title": "Demo Title",
- "description": "This fake media is created for demo.",
- "customer_id": "demo_customer",
- "batch_id": "",
- "is_transition": "0",
- "duration_time": "5.0",
- "progress_percentage": 100,
- "processing_status": "success",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "uploading_file_example.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "pose_preset": {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepIn|Prompt=|PromptStrength=0|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1|Zoom=1"
}, - "bullet_version": "1",
- "video_history": [
- {
- "created_at": "2024-06-12 06:42:30.198640+00:00",
- "pose_preset": {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepIn|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1|EasyEase=1|Zoom=1|HorizontalCrop=0|VerticalCrop=0|Seed=0|GuidanceScale=0"
}, - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "uploading_file_example.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "nsfw": "0",
- "created_at": "2024-06-12 06:38:08.331372+00:00",
- "updated_at": "2024-06-24 16:02:26.767400",
- "version": "2"
}
}
Downloads file from media.
X-Api-Key
: Your customer API key.This code shows an example of how to download Bullet Video
from Auto
motion.
import requests
url = "https://api.vimmerse.net/media/{MEDIA_ID}/download?object_type=bullet_video_mp4&motion_type=Auto"
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
This code shows an example of how to download Bullet Video
with custom settings
import requests
url = "https://api.vimmerse.net/media/{MEDIA_ID}/download?object_type=bullet_video_mp4&motion_type=Auto&width=1080&file_size=4"
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
Return bullet video, gif or source files.
Bad Request
Validation Error
null
This API retrieves media progress in percentage.
X-Api-Key
: Your customer API key.This code shows how to get processing status of the media.
import requests
url = "https://api.vimmerse.net/media/{MEDIA_ID}/processing-status"
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
Media progress percentage
Media Not Found
Validation Error
{- "data": {
- "progress_percentage": 100
}
}
APIs for generating story video from your idea or from your story and image. APIs from Story are alpha version.
This API creates a story from your idea.
**Name**
indicates an object from characters, objects and environments, Please becareful to edit them when you submit content with story.
X-Api-Key
: Your customer API key.Content-Type
: application/json
idea
: Your idea to generate story.import requests
url = "https://api.vimmerse.net/story/idea-2-story"
payload = {
"idea": "suited man walking on the street in 2 scenes"
}
headers = {
'Content-Type': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
New Story Object
Bad Request
Validation Error
{- "data": {
- "id": "5a6f8a2e-260d-404e-9345-db802d86cad8",
- "title": "Idea 2 Video Example",
- "customer_id": "vimmerse-test-user",
- "is_transition": "",
- "idea": "suited man walking on the street in 2 scenes",
- "storyboard": {
- "characters": [
- {
- "name": "John",
- "form": "Human",
- "description": {
- "appearance": "A tall, lean man wearing a flawless black suit. His hair is a neatly combed dark brown, his piercing blue eyes hidden behind sleek black sunglasses. He is in his late 30s. He exudes an aura of confidence and mystery.",
- "age": 38,
- "gender": "Male"
}, - "id": "950639b3-3619-4b10-bd92-8e482e996bff"
}
], - "environments": [
- {
- "name": "CityStreet",
- "description": "A bustling urban street surrounded by tall glass buildings. The sidewalk is dotted with a few street vendors. Vehicles zip past on the adjacent road, and the sky is a mix of gray clouds and patches of blue.",
- "id": "a057cf1f-6eb0-45bb-8190-ffff9be3a437"
}
], - "objects": [
- {
- "name": "Briefcase",
- "description": "A sleek black leather briefcase with silver clasps. The leather looks polished and the handle is worn, suggesting frequent use. It exudes a sense of importance.",
- "id": "a89afa63-8702-41a6-9926-b4a606830635"
}
], - "storyboard": [
- {
- "title": "Scene 1: Early Morning Walk",
- "description": "**John** **Medium Shot** walking along the **CityStreet** **Wide Shot** with a **Briefcase** **Close-up** in hand. His back straight, gaze fixed ahead.",
- "action": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - {
- "title": "Scene 2: Crossing the Intersection",
- "description": "**John** **Wide Shot** stopping at a busy intersection on the **CityStreet** **Wide Shot**, waiting for the light to change with the **Briefcase** **Medium Shot** still in his hand.",
- "action": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}
]
}, - "scenes": [
- {
- "prompt": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - {
- "prompt": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}
], - "medias": [
- {
- "media_id": "bc9eea0b-61e3-451b-a8bd-673b70e589d5",
- "source": {
- "prompt": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - "item": "5a6f-0000001"
}, - {
- "media_id": "8c1c8499-7ff0-4190-927a-ab47518527e3",
- "source": {
- "prompt": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}, - "item": "5a6f-0000002"
}
], - "pose_preset": [
- {
- "MotionType": "Auto",
- "Params": "Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"
}
], - "progress_percentage": 0,
- "status": "processing",
- "video_url": "",
- "version": "2",
- "created_at": "2024-10-01 19:50:38.505925+00:00",
- "updated_at": "2024-10-01 19:50:38.505925+00:00"
}
}
This API crafts images from your story.
If you give your image URL, new images will be generated by referencing your image url.
X-Api-Key
: Your customer API key.Content-Type
: application/json
story
: Your story object.image_url
: URL of the Image to be referenced.import requests
url = "https://api.vimmerse.net/story/story-2-scenes"
payload = {
"story": {
"characters": [
{
"name": "John",
"form": "human",
"description": "A tall, middle-aged man standing. He has short, neatly trimmed black hair with a slight sprinkle of grey. His face is clean-shaven, accentuating a strong jawline and deep-set brown eyes. He wears a dark blue tailored suit with a crisp white shirt and a deep red tie. Polished black leather shoes and a silver watch complete his ensemble. Age 45, Male."
}
],
"environments": [
{
"name": "City Street",
"description": "A busy downtown street lined with tall skyscrapers and filled with a mix of cars, buses, and pedestrians. The pavements are bustling with people in business attire hurrying to their destinations. The street is clean with rays of sunlight casting shadows of the towering buildings. Large billboards and storefronts add a lively and vibrant atmosphere to the scene."
}
],
"objects": [
{
"name": "Briefcase",
"description": "A sleek black leather briefcase with a matte finish. It has a shiny silver clasp and a monogram with the initials 'J.D.' embossed in one corner. The edges are slightly worn, revealing its frequent use but well-maintained condition."
}
],
"scenes": [
{
"title": "Scene 1: Start of the Day",
"description": "A medium shot of **John** walking down the **City Street**. He holds a **Briefcase** in his right hand. The morning sun illuminates part of the scene, casting a warm glow on the bustling environment. Pedestrians in the background swarm past him, creating a contrast between movement and his calm stride.",
"action": "**John** walks confidently, holding his **Briefcase** firmly in his right hand while navigating through the **City Street**. His eyes remain focused ahead, unaffected by the fast-paced surroundings. His polished shoes click steadily on the pavement."
},
{
"title": "Scene 2: Mid-Day Pause",
"description": "A medium shot of **John** taking a short break near a small park on the side of the **City Street**. He stands beside a street vendor cart, the greenery of the park and the towering buildings behind him creating a picturesque urban setting.",
"action": "**John** pauses for a moment to check the time on his silver watch. He then takes a deep breath, momentarily shutting out the bustle of the **City Street**, before continuing his walk, now with a more determined look on his face."
}
]
}
}
headers = {
'Content-Type': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, payload=payload)
print(response.text)
import requests
url = "https://api.vimmerse.net/story/story-2-scenes"
payload = {
"story": {
"characters": [
{
"name": "John",
"form": "human",
"description": "A tall, middle-aged man standing. He has short, neatly trimmed black hair with a slight sprinkle of grey. His face is clean-shaven, accentuating a strong jawline and deep-set brown eyes. He wears a dark blue tailored suit with a crisp white shirt and a deep red tie. Polished black leather shoes and a silver watch complete his ensemble. Age 45, Male."
}
],
"environments": [
{
"name": "City Street",
"description": "A busy downtown street lined with tall skyscrapers and filled with a mix of cars, buses, and pedestrians. The pavements are bustling with people in business attire hurrying to their destinations. The street is clean with rays of sunlight casting shadows of the towering buildings. Large billboards and storefronts add a lively and vibrant atmosphere to the scene."
}
],
"objects": [
{
"name": "Briefcase",
"description": "A sleek black leather briefcase with a matte finish. It has a shiny silver clasp and a monogram with the initials 'J.D.' embossed in one corner. The edges are slightly worn, revealing its frequent use but well-maintained condition."
}
],
"scenes": [
{
"title": "Scene 1: Start of the Day",
"description": "A medium shot of **John** walking down the **City Street**. He holds a **Briefcase** in his right hand. The morning sun illuminates part of the scene, casting a warm glow on the bustling environment. Pedestrians in the background swarm past him, creating a contrast between movement and his calm stride.",
"action": "**John** walks confidently, holding his **Briefcase** firmly in his right hand while navigating through the **City Street**. His eyes remain focused ahead, unaffected by the fast-paced surroundings. His polished shoes click steadily on the pavement."
},
{
"title": "Scene 2: Mid-Day Pause",
"description": "A medium shot of **John** taking a short break near a small park on the side of the **City Street**. He stands beside a street vendor cart, the greenery of the park and the towering buildings behind him creating a picturesque urban setting.",
"action": "**John** pauses for a moment to check the time on his silver watch. He then takes a deep breath, momentarily shutting out the bustle of the **City Street**, before continuing his walk, now with a more determined look on his face."
}
]
},
"image_url", "https://dev-media.vimmerse.net/vimmerse-test-user/ai_images/1wa7alz/story2video1.png"
}
headers = {
'Content-Type': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, payload=payload)
print(response.text)
object (Story) Story class | |
Model Image (string) or Model Image (null) (Model Image) Default: "" Your images will be generated by referencing this image. |
List of Scene Images
Bad Request
Insufficient Credit
Validation Error
This API creates a new Story object. You can see medias generated from response and once all medias are finished, video_url for your story will be available.
X-Api-Key
: Your customer API key.Content-Type
: application/json
title
: Title of your story.
idea
: Idea of your story. This field is optional.
story
: Your story.
scenes
: List of scenes to generate video. Each scene should contain "image_url" that generated from story.
is_transition
: You can set '1' if you need transition feature.
pose_preset
:
This parameter defines the movement of the pose and consists of MotionType
and Params
.
MotionType
: Defines the type of motion. Available values are: 'Auto', 'StableVideoDiffusion', 'LeonardoMotion', 'DynamiCrafter', 'HaiperVideo', 'LumaAI', and 'Parallax'.
Auto
: Video motion is defined automatically based on input settings.LeonardoMotion
: Video motion is generated by Ledonado AI image2motion tool. It only takes input image and motionAmount. It doesnot support transition frame, prompt.StableVideoDiffusion
: Video motion is generated by Stability's Stable Video Diffusion v2. It only takes input image and motionAmount. It doesnot support transition frame, prompt.DynamiCrafter
: Video motion is generated by DynamiCrafter-Interpolation. It takes input image, transition frame, motionAmount, prompt.HaiperVideo
: Video motion is generated by Haiper AI v2.0. It takes input image and prompt. It doesnot support motionAmount and transition frame.LumaAI
: Video motion is generated by Luma AI. It takes input images(i.e. optional first and last frames) and prompt. It doesn't support motionAmount and motionLength. When LumaAI is used, camera motion can also be defined as part of the prompt by adding "camera orbit left" for instance there. Available camera motions are: Static', 'Move Left', 'Move Right', 'Move Up', 'Move Down', 'Push In', 'Pull Out', 'Zoom In', 'Zoom Out', 'Pan Left', 'Pan Right', 'Orbit Left', 'Orbit Right', 'Crane Up', 'Crane Down'.KlingAI
: video motion is generated by Kling AI v1.5 Professional model. It takes input images(i.e. optional last frames) and prompt.MinimaxHailuo
: video motion is generated by Minimax Hailuo video-01 model. It takes input image and prompt. It doesnot support motionAmount nor a transition frame.RunwayML
: video motion is generated by RunwayML Gen3. It takes input images(i.e. optional first and last frames) and prompt. It doesnot support motionAmount.Parallax
: Video motion is defined by a camera path which is specified in Params
.Params
: Contains detailed values for video motion. If you have chosen the Prompt
motion type, you will need to provide prompt text under Prompt
in Params
.
CameraPath
: Defines the camera path of the bullet video. Only available when Parallax
motion type is chosen. Available values are HorizontalArc
, VerticalArc
, StepIn
, Cross
, Circular
, StepD
, StepU
, StepL
and StepR
.Prompt
: The prompt for movement for the bullet video. Only available when Prompt
motion type is chosen.PromptStrength
: Defines prompt strength for video generation. Available values are 1, 2, 3, 4, or 5.Quantity
: The number of bullet videos to generate.MotionAmount
: The amount of motion, ranging from 1 to 10.MotionLength
: The length of the generated bullet video.Loop
: The number of repetitions of the same motion.import requests
url = "https://api.vimmerse.net/story/scenes-2-video"
payload = {
"story": {
"characters": [
{
"name": "John",
"form": "human",
"description": "A tall, middle-aged man standing at 6'2''. He has short, neatly trimmed black hair with a slight sprinkle of grey. His face is clean-shaven, accentuating a strong jawline and deep-set brown eyes. He wears a dark blue tailored suit with a crisp white shirt and a deep red tie. Polished black leather shoes and a silver watch complete his ensemble. Age 45, Male."
}
],
"environments": [
{
"name": "City Street",
"description": "A busy downtown street lined with tall skyscrapers and filled with a mix of cars, buses, and pedestrians. The pavements are bustling with people in business attire hurrying to their destinations. The street is clean with rays of sunlight casting shadows of the towering buildings. Large billboards and storefronts add a lively and vibrant atmosphere to the scene."
}
],
"objects": [
{
"name": "Briefcase",
"description": "A sleek black leather briefcase with a matte finish. It has a shiny silver clasp and a monogram with the initials 'J.D.' embossed in one corner. The edges are slightly worn, revealing its frequent use but well-maintained condition."
}
],
"scenes": [
{
"title": "Scene 1: Start of the Day",
"description": "A medium shot of **John** walking down the **City Street**. He holds a **Briefcase** in his right hand. The morning sun illuminates part of the scene, casting a warm glow on the bustling environment. Pedestrians in the background swarm past him, creating a contrast between movement and his calm stride.",
"action": "**John** walks confidently, holding his **Briefcase** firmly in his right hand while navigating through the **City Street**. His eyes remain focused ahead, unaffected by the fast-paced surroundings. His polished shoes click steadily on the pavement."
},
{
"title": "Scene 2: Mid-Day Pause",
"description": "A medium shot of **John** taking a short break near a small park on the side of the **City Street**. He stands beside a street vendor cart, the greenery of the park and the towering buildings behind him creating a picturesque urban setting.",
"action": "**John** pauses for a moment to check the time on his silver watch. He then takes a deep breath, momentarily shutting out the bustle of the **City Street**, before continuing his walk, now with a more determined look on his face."
}
]
},
"scenes": [
{
"image_url": "https://dev-media.vimmerse.net/vimmerse-test-user/ai_images/1wa7alz/story2video1.png"
},
{
"image_url": "https://dev-media.vimmerse.net/vimmerse-test-user/ai_images/1wa7alz/story2video2.png"
}
]
}
headers = {
'Content-Type': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
Story Object
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "5a6f8a2e-260d-404e-9345-db802d86cad8",
- "title": "Idea 2 Video Example",
- "customer_id": "vimmerse-test-user",
- "is_transition": "",
- "idea": "suited man walking on the street in 2 scenes",
- "storyboard": {
- "characters": [
- {
- "name": "John",
- "form": "Human",
- "description": {
- "appearance": "A tall, lean man wearing a flawless black suit. His hair is a neatly combed dark brown, his piercing blue eyes hidden behind sleek black sunglasses. He is in his late 30s. He exudes an aura of confidence and mystery.",
- "age": 38,
- "gender": "Male"
}, - "id": "950639b3-3619-4b10-bd92-8e482e996bff"
}
], - "environments": [
- {
- "name": "CityStreet",
- "description": "A bustling urban street surrounded by tall glass buildings. The sidewalk is dotted with a few street vendors. Vehicles zip past on the adjacent road, and the sky is a mix of gray clouds and patches of blue.",
- "id": "a057cf1f-6eb0-45bb-8190-ffff9be3a437"
}
], - "objects": [
- {
- "name": "Briefcase",
- "description": "A sleek black leather briefcase with silver clasps. The leather looks polished and the handle is worn, suggesting frequent use. It exudes a sense of importance.",
- "id": "a89afa63-8702-41a6-9926-b4a606830635"
}
], - "storyboard": [
- {
- "title": "Scene 1: Early Morning Walk",
- "description": "**John** **Medium Shot** walking along the **CityStreet** **Wide Shot** with a **Briefcase** **Close-up** in hand. His back straight, gaze fixed ahead.",
- "action": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - {
- "title": "Scene 2: Crossing the Intersection",
- "description": "**John** **Wide Shot** stopping at a busy intersection on the **CityStreet** **Wide Shot**, waiting for the light to change with the **Briefcase** **Medium Shot** still in his hand.",
- "action": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}
]
}, - "scenes": [
- {
- "prompt": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - {
- "prompt": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}
], - "medias": [
- {
- "media_id": "bc9eea0b-61e3-451b-a8bd-673b70e589d5",
- "source": {
- "prompt": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - "item": "5a6f-0000001"
}, - {
- "media_id": "8c1c8499-7ff0-4190-927a-ab47518527e3",
- "source": {
- "prompt": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}, - "item": "5a6f-0000002"
}
], - "pose_preset": [
- {
- "MotionType": "Auto",
- "Params": "Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"
}
], - "progress_percentage": 0,
- "status": "processing",
- "video_url": "",
- "version": "2",
- "created_at": "2024-10-01 19:50:38.505925+00:00",
- "updated_at": "2024-10-01 19:50:38.505925+00:00"
}
}
This API creates a new Story object from idea directly. You can see medias generated from response and once all medias are finished, video_url for your story will be available.
X-Api-Key
: Your customer API key.Content-Type
: application/json
title
: Title of your story.
idea
: Idea of your story. This field is optional.
is_transition
: You can set '1' if you need transition feature.
pose_preset
:
This parameter defines the movement of the pose and consists of MotionType
and Params
.
MotionType
: Defines the type of motion. Available values are: 'Auto', 'StableVideoDiffusion', 'LeonardoMotion', 'DynamiCrafter', 'HaiperVideo', 'LumaAI', and 'Parallax'.
Auto
: Video motion is defined automatically based on input settings.LeonardoMotion
: Video motion is generated by Ledonado AI image2motion tool. It only takes input image and motionAmount. It doesnot support transition frame, prompt.StableVideoDiffusion
: Video motion is generated by Stability's Stable Video Diffusion v2. It only takes input image and motionAmount. It doesnot support transition frame, prompt.DynamiCrafter
: Video motion is generated by DynamiCrafter-Interpolation. It takes input image, transition frame, motionAmount, prompt.HaiperVideo
: Video motion is generated by Haiper AI v2.0. It takes input image and prompt. It doesnot support motionAmount and transition frame.LumaAI
: Video motion is generated by Luma AI. It takes input images(i.e. optional first and last frames) and prompt. It doesn't support motionAmount and motionLength. When LumaAI is used, camera motion can also be defined as part of the prompt by adding "camera orbit left" for instance there. Available camera motions are: Static', 'Move Left', 'Move Right', 'Move Up', 'Move Down', 'Push In', 'Pull Out', 'Zoom In', 'Zoom Out', 'Pan Left', 'Pan Right', 'Orbit Left', 'Orbit Right', 'Crane Up', 'Crane Down'.KlingAI
: video motion is generated by Kling AI v1.5 Professional model. It takes input images(i.e. optional last frames) and prompt.MinimaxHailuo
: video motion is generated by Minimax Hailuo video-01 model. It takes input image and prompt. It doesnot support motionAmount nor a transition frame.RunwayML
: video motion is generated by RunwayML Gen3. It takes input images(i.e. optional first and last frames) and prompt. It doesnot support motionAmount.Parallax
: Video motion is defined by a camera path which is specified in Params
.Params
: Contains detailed values for video motion. If you have chosen the Prompt
motion type, you will need to provide prompt text under Prompt
in Params
.
CameraPath
: Defines the camera path of the bullet video. Only available when Parallax
motion type is chosen. Available values are HorizontalArc
, VerticalArc
, StepIn
, Cross
, Circular
, StepD
, StepU
, StepL
and StepR
.Prompt
: The prompt for movement for the bullet video. Only available when Prompt
motion type is chosen.PromptStrength
: Defines prompt strength for video generation. Available values are 1, 2, 3, 4, or 5.Quantity
: The number of bullet videos to generate.MotionAmount
: The amount of motion, ranging from 1 to 10.MotionLength
: The length of the generated bullet video.Loop
: The number of repetitions of the same motion.import requests
url = "https://api.vimmerse.net/story/idea-2-video"
payload = {
"title": "Idea 2 Video Example",
"idea": "suited man walking on the street in 2 scenes"
}
headers = {
'Content-Type': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
Story Object
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "5a6f8a2e-260d-404e-9345-db802d86cad8",
- "title": "Idea 2 Video Example",
- "customer_id": "vimmerse-test-user",
- "is_transition": "",
- "idea": "suited man walking on the street in 2 scenes",
- "storyboard": {
- "characters": [
- {
- "name": "John",
- "form": "Human",
- "description": {
- "appearance": "A tall, lean man wearing a flawless black suit. His hair is a neatly combed dark brown, his piercing blue eyes hidden behind sleek black sunglasses. He is in his late 30s. He exudes an aura of confidence and mystery.",
- "age": 38,
- "gender": "Male"
}, - "id": "950639b3-3619-4b10-bd92-8e482e996bff"
}
], - "environments": [
- {
- "name": "CityStreet",
- "description": "A bustling urban street surrounded by tall glass buildings. The sidewalk is dotted with a few street vendors. Vehicles zip past on the adjacent road, and the sky is a mix of gray clouds and patches of blue.",
- "id": "a057cf1f-6eb0-45bb-8190-ffff9be3a437"
}
], - "objects": [
- {
- "name": "Briefcase",
- "description": "A sleek black leather briefcase with silver clasps. The leather looks polished and the handle is worn, suggesting frequent use. It exudes a sense of importance.",
- "id": "a89afa63-8702-41a6-9926-b4a606830635"
}
], - "storyboard": [
- {
- "title": "Scene 1: Early Morning Walk",
- "description": "**John** **Medium Shot** walking along the **CityStreet** **Wide Shot** with a **Briefcase** **Close-up** in hand. His back straight, gaze fixed ahead.",
- "action": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - {
- "title": "Scene 2: Crossing the Intersection",
- "description": "**John** **Wide Shot** stopping at a busy intersection on the **CityStreet** **Wide Shot**, waiting for the light to change with the **Briefcase** **Medium Shot** still in his hand.",
- "action": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}
]
}, - "scenes": [
- {
- "prompt": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - {
- "prompt": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}
], - "medias": [
- {
- "media_id": "bc9eea0b-61e3-451b-a8bd-673b70e589d5",
- "source": {
- "prompt": "John walks confidently down the bustling CityStreet, his polished black shoes tapping rhythmically on the concrete sidewalk. His left hand holds the Briefcase firmly, while his right hand occasionally adjusts his suit jacket. Pedestrians make way for him, sensing his commanding presence."
}, - "item": "5a6f-0000001"
}, - {
- "media_id": "8c1c8499-7ff0-4190-927a-ab47518527e3",
- "source": {
- "prompt": "John stands at the edge of the sidewalk, waiting for the pedestrian light to turn green. His posture remains confident, his sunglasses reflecting the cityscape. The Briefcase dangles at his side, the silver clasps catching the morning light. The city hums around him as he waits, ready to continue his journey."
}, - "item": "5a6f-0000002"
}
], - "pose_preset": [
- {
- "MotionType": "Auto",
- "Params": "Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"
}
], - "progress_percentage": 0,
- "status": "processing",
- "video_url": "",
- "version": "2",
- "created_at": "2024-10-01 19:50:38.505925+00:00",
- "updated_at": "2024-10-01 19:50:38.505925+00:00"
}
}
This API creates a new Batch object with uploaded images and processes with the uploaded images. To change submit parameters and pose presets, include them in the form data.
X-Api-Key
: Your customer API key.images
: Images to upload.data
: JSON string of your request data.You can submit the parameters by JSON-stringifying the data. All fields are optional, and default values will be set automatically.
pose_preset
:
This parameter defines the movement of the pose and consists of MotionType
and Params
.
MotionType
: Defines the type of motion. Available values are: 'Auto', 'StableVideoDiffusion', 'LeonardoMotion', 'DynamiCrafter', 'HaiperVideo', 'LumaAI', and 'Parallax'.
Auto
: Video motion is defined automatically based on input settings.LeonardoMotion
: Video motion is generated by Ledonado AI image2motion tool. It only takes input image and motionAmount. It doesnot support transition frame, prompt.StableVideoDiffusion
: Video motion is generated by Stability's Stable Video Diffusion v2. It only takes input image and motionAmount. It doesnot support transition frame, prompt.DynamiCrafter
: Video motion is generated by DynamiCrafter-Interpolation. It takes input image, transition frame, motionAmount, prompt.HaiperVideo
: Video motion is generated by Haiper AI v2.0. It takes input image and prompt. It doesnot support motionAmount and transition frame.LumaAI
: Video motion is generated by Luma AI. It takes input images(i.e. optional first and last frames) and prompt. It doesn't support motionAmount and motionLength. When LumaAI is used, camera motion can also be defined as part of the prompt by adding "camera orbit left" for instance there. Available camera motions are: Static', 'Move Left', 'Move Right', 'Move Up', 'Move Down', 'Push In', 'Pull Out', 'Zoom In', 'Zoom Out', 'Pan Left', 'Pan Right', 'Orbit Left', 'Orbit Right', 'Crane Up', 'Crane Down'.KlingAI
: video motion is generated by Kling AI v1.5 Professional model. It takes input images(i.e. optional last frames) and prompt.MinimaxHailuo
: video motion is generated by Minimax Hailuo video-01 model. It takes input image and prompt. It doesnot support motionAmount nor a transition frame.RunwayML
: video motion is generated by RunwayML Gen3. It takes input images(i.e. optional first and last frames) and prompt. It doesnot support motionAmount.Parallax
: Video motion is defined by a camera path which is specified in Params
.Params
: Contains detailed values for video motion. If you have chosen the Prompt
motion type, you will need to provide prompt text under Prompt
in Params
.
CameraPath
: Defines the camera path of the bullet video. Only available when Parallax
motion type is chosen. Available values are HorizontalArc
, VerticalArc
, StepIn
, Cross
, Circular
, StepD
, StepU
, StepL
and StepR
.Prompt
: The prompt for movement for the bullet video. Only available when Prompt
motion type is chosen.PromptStrength
: Defines prompt strength for video generation. Available values are 1, 2, 3, 4, or 5.Quantity
: The number of bullet videos to generate.MotionAmount
: The amount of motion, ranging from 1 to 10.MotionLength
: The length of the generated bullet video.Loop
: The number of repetitions of the same motion.submit_params
:
The quality of the bullet video can be adjusted with this parameter. The default value is recommended. To use the default value, you don't need to include this parameter in the request. However, if you want to change this value, please contact us first.
scale_factor
: Scale factor of the bullet video. Range is (0 - 2). Default value is "1".pipeline_preset
: Defines media processing preset. Available values are Fast
and Normal
. Default value is "Fast".file_size
: Defines maximum file size of bullet videos as a string. Unit of the size is MB. Default value is an empty string. Please input value as a string. Ex: "1.6".This example shows how to create a new Batch with several motions. They are Horizontal, Cross and StepDown Parallax motions and 2 AI motions.
import requests
import json
url = "https://api.vimmerse.net/batch/upload"
batch_data = {
"title": "New Batch Example1",
"pose_preset": [
{
"MotionType": "Parallax",
"Params": "CameraPath=HorizontalArc|Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"
},
{
"MotionType": "Parallax",
"Params": "CameraPath=Cross|Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"
},
{
"MotionType": "Parallax",
"Params": "CameraPath=StepD|Prompt=|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"
},
{
"MotionType": "Auto",
"Params": "Prompt=|PromptStrength=1|Quantity=2|MotionAmount=5|MotionLength=5|Loop=1"
}
]
}
payload = {
"data": json.dumps(batch_data)
}
files=[
('images', ('f1.png', open('/path/to/f1.png', 'rb'), 'image/png')),
('images', ('f2.png', open('/path/to/f2.png', 'rb'), 'image/png')),
('images', ('f3.png', open('/path/to/f3.png', 'rb'), 'image/png')),
]
headers = {
'Accept': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
This example shows how to create a new Batch with transition features. This code will generate 6 medias and start and stop frame of each media will be like this. [f1.png -> f2.png], [f2.png -> f3.png], [f3.png -> f4.png], [f4.png -> f5.png], [f5.png -> f6.png], [f6.png -> f1.png]
import requests
import json
url = "https://api.vimmerse.net/batch/upload"
payload = {
"data": json.dumps({
"title": "New Batch Example2",
"is_transition": "1",
"pose_preset": [
{
"MotionType": "Auto",
"Params": "Prompt=|PromptStrength=1|Quantity=1|MotionAmount=5|MotionLength=5|Loop=1"
}
]
})
}
files=[
('images', ('f1.png', open('/path/to/f1.png', 'rb'), 'image/png')),
('images', ('f2.png', open('/path/to/f2.png', 'rb'), 'image/png')),
('images', ('f3.png', open('/path/to/f3.png', 'rb'), 'image/png')),
('images', ('f4.png', open('/path/to/f4.png', 'rb'), 'image/png')),
('images', ('f5.png', open('/path/to/f5.png', 'rb'), 'image/png')),
('images', ('f6.png', open('/path/to/f6.png', 'rb'), 'image/png'))
]
headers = {
'Content-Type': 'multipart/form-data',
'Accept': 'application/json',
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
New Batch Object
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "version": "2",
- "created_at": "2024-09-11 23:25:11.859507+00:00",
- "industry": "",
- "status": "success",
- "customer_id": "demo_customer",
- "message": "",
- "is_transition": "",
- "email": "your@email.address",
- "progress_percentage": 100,
- "upload_urls": {
- "20240910_124149_1.jpg": {
- "signed_url_response": {
- "fields": {
- "AWSAccessKeyId": "...",
- "signature": "...",
- "key": "...",
- "policy": "..."
}, - "url": "..."
}, - "filename": "20240910_124149_1.jpg"
}, - "20240910_124130_0.jpg": {
- "signed_url_response": {
- "fields": {
- "AWSAccessKeyId": "...",
- "signature": "...",
- "key": "...",
- "policy": "..."
}, - "url": "..."
}, - "filename": "20240910_124130_0.jpg"
}
}, - "finished_medias": [
- "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "8255657b-d2d0-4932-aa91-114663e246ed"
], - "generate_type": "GENERATE_VIDEO",
- "updated_at": "2024-09-11 23:25:14.231731+00:00",
- "note": "",
- "manager_id": "manager_id",
- "medias": [
- {
- "media_id": "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "item": "decd-0000001",
- "source": "20240910_124130_0.jpg"
}, - {
- "media_id": "8255657b-d2d0-4932-aa91-114663e246ed",
- "item": "decd-0000002",
- "source": "20240910_124149_1.jpg"
}
], - "filenames": [
- "20240910_124130_0.jpg",
- "20240910_124149_1.jpg"
], - "feedback": "",
- "id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "failed_medias": [ ],
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "title": "Demo Batch",
- "all_medias": [
- {
- "primary_user_id": "manager_id",
- "video_history": [
- {
- "generate_type": "GENERATE_ALL",
- "created_at": "2024-09-11 23:43:07.334871+00:00",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124130_0.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "ai_image_history": [ ],
- "likes_count": 0,
- "duration_time": "5.0",
- "views_count": 0,
- "batch_id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "stream_type": "png",
- "progress_percentage": 100,
- "bullet_version": "1",
- "sort_weight": 0,
- "files": [
- {
- "name": "20240910_124130_0.jpg",
- "updated_at": "2024-09-11 23:25:15+00:00",
- "size": 6300491
}
], - "nsfw": "0",
- "threeD_version": "w2opm1g",
- "visibility_status": "1",
- "queue_type": "BATCH",
- "client_type": "",
- "account_type": "Customer",
- "ai_text_history": [ ],
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "id": "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "error_message": "",
- "version": "2",
- "created_at": "2024-09-11 23:25:14.329089+00:00",
- "upload_bucket_name": "...",
- "3d_available": true,
- "rating": "",
- "processing_status": "success",
- "search_value": "",
- "table_name": "...",
- "result_bucket_name": "...",
- "capture_type": "Auto",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124130_0.jpg"
}
], - "customer_id": "demo_customer",
- "updated_at": "2024-09-11 23:43:12.015987+00:00",
- "generate_type": "GENERATE_ALL",
- "ai_video_history": [ ],
- "webhook_url": "...",
- "deleted_folder_paths": [ ],
- "description": "",
- "title": ""
}, - {
- "primary_user_id": "manager_id",
- "video_history": [
- {
- "generate_type": "GENERATE_ALL",
- "created_at": "2024-09-11 23:43:27.526895+00:00",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124149_1.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "ai_image_history": [ ],
- "likes_count": 0,
- "duration_time": "5.0",
- "views_count": 2,
- "batch_id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "stream_type": "png",
- "progress_percentage": 100,
- "bullet_version": "1",
- "sort_weight": 0,
- "files": [
- {
- "name": "20240910_124149_1.jpg",
- "updated_at": "2024-09-11 23:25:15+00:00",
- "size": 6780601
}
], - "nsfw": "0",
- "threeD_version": "68alge5",
- "visibility_status": "1",
- "queue_type": "BATCH",
- "client_type": "",
- "account_type": "Developer",
- "ai_text_history": [ ],
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "id": "8255657b-d2d0-4932-aa91-114663e246ed",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "error_message": "",
- "version": "2",
- "created_at": "2024-09-11 23:25:14.479566+00:00",
- "upload_bucket_name": "...",
- "3d_available": true,
- "rating": "",
- "processing_status": "success",
- "search_value": "",
- "table_name": "...",
- "result_bucket_name": "...",
- "capture_type": "Auto",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124149_1.jpg"
}
], - "customer_id": "demo_customer",
- "updated_at": "2024-09-11 23:43:30.792755+00:00",
- "generate_type": "GENERATE_ALL",
- "ai_video_history": [ ],
- "deleted_folder_paths": [ ],
- "description": "",
- "title": ""
}
]
}
}
This API retrieves a Batch object.
X-Api-Key
: Your customer API key.Content-Type
: application/json
Batch Object
Bad Request
Validation Error
{- "data": {
- "version": "2",
- "created_at": "2024-09-11 23:25:11.859507+00:00",
- "industry": "",
- "status": "success",
- "customer_id": "demo_customer",
- "message": "",
- "is_transition": "",
- "email": "your@email.address",
- "progress_percentage": 100,
- "upload_urls": {
- "20240910_124149_1.jpg": {
- "signed_url_response": {
- "fields": {
- "AWSAccessKeyId": "...",
- "signature": "...",
- "key": "...",
- "policy": "..."
}, - "url": "..."
}, - "filename": "20240910_124149_1.jpg"
}, - "20240910_124130_0.jpg": {
- "signed_url_response": {
- "fields": {
- "AWSAccessKeyId": "...",
- "signature": "...",
- "key": "...",
- "policy": "..."
}, - "url": "..."
}, - "filename": "20240910_124130_0.jpg"
}
}, - "finished_medias": [
- "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "8255657b-d2d0-4932-aa91-114663e246ed"
], - "generate_type": "GENERATE_VIDEO",
- "updated_at": "2024-09-11 23:25:14.231731+00:00",
- "note": "",
- "manager_id": "manager_id",
- "medias": [
- {
- "media_id": "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "item": "decd-0000001",
- "source": "20240910_124130_0.jpg"
}, - {
- "media_id": "8255657b-d2d0-4932-aa91-114663e246ed",
- "item": "decd-0000002",
- "source": "20240910_124149_1.jpg"
}
], - "filenames": [
- "20240910_124130_0.jpg",
- "20240910_124149_1.jpg"
], - "feedback": "",
- "id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "failed_medias": [ ],
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "title": "Demo Batch",
- "all_medias": [
- {
- "primary_user_id": "manager_id",
- "video_history": [
- {
- "generate_type": "GENERATE_ALL",
- "created_at": "2024-09-11 23:43:07.334871+00:00",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124130_0.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "ai_image_history": [ ],
- "likes_count": 0,
- "duration_time": "5.0",
- "views_count": 0,
- "batch_id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "stream_type": "png",
- "progress_percentage": 100,
- "bullet_version": "1",
- "sort_weight": 0,
- "files": [
- {
- "name": "20240910_124130_0.jpg",
- "updated_at": "2024-09-11 23:25:15+00:00",
- "size": 6300491
}
], - "nsfw": "0",
- "threeD_version": "w2opm1g",
- "visibility_status": "1",
- "queue_type": "BATCH",
- "client_type": "",
- "account_type": "Customer",
- "ai_text_history": [ ],
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "id": "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "error_message": "",
- "version": "2",
- "created_at": "2024-09-11 23:25:14.329089+00:00",
- "upload_bucket_name": "...",
- "3d_available": true,
- "rating": "",
- "processing_status": "success",
- "search_value": "",
- "table_name": "...",
- "result_bucket_name": "...",
- "capture_type": "Auto",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124130_0.jpg"
}
], - "customer_id": "demo_customer",
- "updated_at": "2024-09-11 23:43:12.015987+00:00",
- "generate_type": "GENERATE_ALL",
- "ai_video_history": [ ],
- "webhook_url": "...",
- "deleted_folder_paths": [ ],
- "description": "",
- "title": ""
}, - {
- "primary_user_id": "manager_id",
- "video_history": [
- {
- "generate_type": "GENERATE_ALL",
- "created_at": "2024-09-11 23:43:27.526895+00:00",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124149_1.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "ai_image_history": [ ],
- "likes_count": 0,
- "duration_time": "5.0",
- "views_count": 2,
- "batch_id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "stream_type": "png",
- "progress_percentage": 100,
- "bullet_version": "1",
- "sort_weight": 0,
- "files": [
- {
- "name": "20240910_124149_1.jpg",
- "updated_at": "2024-09-11 23:25:15+00:00",
- "size": 6780601
}
], - "nsfw": "0",
- "threeD_version": "68alge5",
- "visibility_status": "1",
- "queue_type": "BATCH",
- "client_type": "",
- "account_type": "Developer",
- "ai_text_history": [ ],
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "id": "8255657b-d2d0-4932-aa91-114663e246ed",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "error_message": "",
- "version": "2",
- "created_at": "2024-09-11 23:25:14.479566+00:00",
- "upload_bucket_name": "...",
- "3d_available": true,
- "rating": "",
- "processing_status": "success",
- "search_value": "",
- "table_name": "...",
- "result_bucket_name": "...",
- "capture_type": "Auto",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124149_1.jpg"
}
], - "customer_id": "demo_customer",
- "updated_at": "2024-09-11 23:43:30.792755+00:00",
- "generate_type": "GENERATE_ALL",
- "ai_video_history": [ ],
- "deleted_folder_paths": [ ],
- "description": "",
- "title": ""
}
]
}
}
This API updates a Batch object with your request.
Whenever you change pose_preset
or submit_params
, it will be processed automatically.
X-Api-Key
: Your customer API key.Content-Type
: application/json
You can include only the fields you want to update.
pose_preset
:
This parameter defines the movement of the pose and consists of MotionType
and Params
.
MotionType
: Defines the type of motion. Available values are: 'Auto', 'StableVideoDiffusion', 'LeonardoMotion', 'DynamiCrafter', 'HaiperVideo', 'LumaAI', and 'Parallax'.
Auto
: Video motion is defined automatically based on input settings.LeonardoMotion
: Video motion is generated by Ledonado AI image2motion tool. It only takes input image and motionAmount. It doesnot support transition frame, prompt.StableVideoDiffusion
: Video motion is generated by Stability's Stable Video Diffusion v2. It only takes input image and motionAmount. It doesnot support transition frame, prompt.DynamiCrafter
: Video motion is generated by DynamiCrafter-Interpolation. It takes input image, transition frame, motionAmount, prompt.HaiperVideo
: Video motion is generated by Haiper AI v2.0. It takes input image and prompt. It doesnot support motionAmount and transition frame.LumaAI
: Video motion is generated by Luma AI. It takes input images(i.e. optional first and last frames) and prompt. It doesn't support motionAmount and motionLength. When LumaAI is used, camera motion can also be defined as part of the prompt by adding "camera orbit left" for instance there. Available camera motions are: Static', 'Move Left', 'Move Right', 'Move Up', 'Move Down', 'Push In', 'Pull Out', 'Zoom In', 'Zoom Out', 'Pan Left', 'Pan Right', 'Orbit Left', 'Orbit Right', 'Crane Up', 'Crane Down'.KlingAI
: video motion is generated by Kling AI v1.5 Professional model. It takes input images(i.e. optional last frames) and prompt.MinimaxHailuo
: video motion is generated by Minimax Hailuo video-01 model. It takes input image and prompt. It doesnot support motionAmount nor a transition frame.RunwayML
: video motion is generated by RunwayML Gen3. It takes input images(i.e. optional first and last frames) and prompt. It doesnot support motionAmount.Parallax
: Video motion is defined by a camera path which is specified in Params
.Params
: Contains detailed values for video motion. If you have chosen the Prompt
motion type, you will need to provide prompt text under Prompt
in Params
.
CameraPath
: Defines the camera path of the bullet video. Only available when Parallax
motion type is chosen. Available values are HorizontalArc
, VerticalArc
, StepIn
, Cross
, Circular
, StepD
, StepU
, StepL
and StepR
.Prompt
: The prompt for movement for the bullet video. Only available when Prompt
motion type is chosen.PromptStrength
: Defines prompt strength for video generation. Available values are 1, 2, 3, 4, or 5.Quantity
: The number of bullet videos to generate.MotionAmount
: The amount of motion, ranging from 1 to 10.MotionLength
: The length of the generated bullet video.Loop
: The number of repetitions of the same motion.submit_params
:
The quality of the bullet video can be adjusted with this parameter. The default value is recommended. To use the default value, you don't need to include this parameter in the request. However, if you want to change this value, please contact us first.
scale_factor
: Scale factor of the bullet video. Range is (0 - 2). Default value is "1".pipeline_preset
: Defines media processing preset. Available values are Fast
and Normal
. Default value is "Fast".file_size
: Defines maximum file size of bullet videos as a string. Unit of the size is MB. Default value is an empty string. Please input value as a string. Ex: "1.6".Title (string) or Title (null) (Title) | |
Description (string) or Description (null) (Description) | |
Visibility Status (string) or Visibility Status (null) (Visibility Status) | |
Array of Story (any) or Story (null) (Story) | |
Note (string) or Note (null) (Note) | |
Industry (string) or Industry (null) (Industry) | |
Message (string) or Message (null) (Message) | |
Feedback (string) or Feedback (null) (Feedback) | |
Transition flag (string) or Transition flag (null) (Transition flag) Value is '1' if batch is a transition | |
Manager ID (string) or Manager ID (null) (Manager ID) Utilize the | |
Array of Pose Presets (any) or Pose Presets (null) (Pose Presets) Pose preset parameter. | |
Submit Parameters (object) or Submit Parameters (null) (Submit Parameters) Submitting parameters. | |
Generate Type (string) or Generate Type (null) (Generate Type)
|
Batch Object
Bad Request
Validation Error
{- "data": {
- "version": "2",
- "created_at": "2024-09-11 23:25:11.859507+00:00",
- "industry": "",
- "status": "success",
- "customer_id": "demo_customer",
- "message": "",
- "is_transition": "",
- "email": "your@email.address",
- "progress_percentage": 100,
- "upload_urls": {
- "20240910_124149_1.jpg": {
- "signed_url_response": {
- "fields": {
- "AWSAccessKeyId": "...",
- "signature": "...",
- "key": "...",
- "policy": "..."
}, - "url": "..."
}, - "filename": "20240910_124149_1.jpg"
}, - "20240910_124130_0.jpg": {
- "signed_url_response": {
- "fields": {
- "AWSAccessKeyId": "...",
- "signature": "...",
- "key": "...",
- "policy": "..."
}, - "url": "..."
}, - "filename": "20240910_124130_0.jpg"
}
}, - "finished_medias": [
- "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "8255657b-d2d0-4932-aa91-114663e246ed"
], - "generate_type": "GENERATE_VIDEO",
- "updated_at": "2024-09-11 23:25:14.231731+00:00",
- "note": "",
- "manager_id": "manager_id",
- "medias": [
- {
- "media_id": "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "item": "decd-0000001",
- "source": "20240910_124130_0.jpg"
}, - {
- "media_id": "8255657b-d2d0-4932-aa91-114663e246ed",
- "item": "decd-0000002",
- "source": "20240910_124149_1.jpg"
}
], - "filenames": [
- "20240910_124130_0.jpg",
- "20240910_124149_1.jpg"
], - "feedback": "",
- "id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "failed_medias": [ ],
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "title": "Demo Batch",
- "all_medias": [
- {
- "primary_user_id": "manager_id",
- "video_history": [
- {
- "generate_type": "GENERATE_ALL",
- "created_at": "2024-09-11 23:43:07.334871+00:00",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124130_0.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "ai_image_history": [ ],
- "likes_count": 0,
- "duration_time": "5.0",
- "views_count": 0,
- "batch_id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "stream_type": "png",
- "progress_percentage": 100,
- "bullet_version": "1",
- "sort_weight": 0,
- "files": [
- {
- "name": "20240910_124130_0.jpg",
- "updated_at": "2024-09-11 23:25:15+00:00",
- "size": 6300491
}
], - "nsfw": "0",
- "threeD_version": "w2opm1g",
- "visibility_status": "1",
- "queue_type": "BATCH",
- "client_type": "",
- "account_type": "Customer",
- "ai_text_history": [ ],
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "id": "4852eb1c-a7dc-4ade-b1e7-cc57292fd4f4",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "error_message": "",
- "version": "2",
- "created_at": "2024-09-11 23:25:14.329089+00:00",
- "upload_bucket_name": "...",
- "3d_available": true,
- "rating": "",
- "processing_status": "success",
- "search_value": "",
- "table_name": "...",
- "result_bucket_name": "...",
- "capture_type": "Auto",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124130_0.jpg"
}
], - "customer_id": "demo_customer",
- "updated_at": "2024-09-11 23:43:12.015987+00:00",
- "generate_type": "GENERATE_ALL",
- "ai_video_history": [ ],
- "webhook_url": "...",
- "deleted_folder_paths": [ ],
- "description": "",
- "title": ""
}, - {
- "primary_user_id": "manager_id",
- "video_history": [
- {
- "generate_type": "GENERATE_ALL",
- "created_at": "2024-09-11 23:43:27.526895+00:00",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "bullet_version": "1",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124149_1.jpg"
}
], - "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}
}
], - "ai_image_history": [ ],
- "likes_count": 0,
- "duration_time": "5.0",
- "views_count": 2,
- "batch_id": "decdb542-05ad-45aa-b172-7c54f338fe89",
- "stream_type": "png",
- "progress_percentage": 100,
- "bullet_version": "1",
- "sort_weight": 0,
- "files": [
- {
- "name": "20240910_124149_1.jpg",
- "updated_at": "2024-09-11 23:25:15+00:00",
- "size": 6780601
}
], - "nsfw": "0",
- "threeD_version": "68alge5",
- "visibility_status": "1",
- "queue_type": "BATCH",
- "client_type": "",
- "account_type": "Developer",
- "ai_text_history": [ ],
- "submit_params": {
- "file_size": "",
- "pipeline_preset": "Fast",
- "scale_factor": "1"
}, - "id": "8255657b-d2d0-4932-aa91-114663e246ed",
- "pose_preset": [
- {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepL|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=StepU|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=HorizontalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Parallax",
- "Params": "CameraPath=VerticalArc|MotionAmount=5|MotionLength=5|Loop=1|Quantity=1"
}, - {
- "MotionType": "Auto",
- "Params": "MotionAmount=5|MotionLength=5|Loop=1|Quantity=2"
}
], - "error_message": "",
- "version": "2",
- "created_at": "2024-09-11 23:25:14.479566+00:00",
- "upload_bucket_name": "...",
- "3d_available": true,
- "rating": "",
- "processing_status": "success",
- "search_value": "",
- "table_name": "...",
- "result_bucket_name": "...",
- "capture_type": "Auto",
- "file_map": [
- {
- "FileType": "Texture",
- "FileName": "20240910_124149_1.jpg"
}
], - "customer_id": "demo_customer",
- "updated_at": "2024-09-11 23:43:30.792755+00:00",
- "generate_type": "GENERATE_ALL",
- "ai_video_history": [ ],
- "deleted_folder_paths": [ ],
- "description": "",
- "title": ""
}
]
}
}
You can generate and download images from your text prompt.
X-Api-Key
: Your customer API key.Content-Type
: application/json
prompt
: Prompt string that describes on your image. Example: Shot of Nike shoes on colorful background
.quantity
: Number of the images that you want to craft. Available values are integers from 1 to 4.option
: Available options are StableDiffusion3.5
, LeonardoImage
, Flux1
, Flux1.1Pro
and Auto
. If you choose Auto
, one of them will be chosen automatically.aspect_ratio
: Aspect ratio of generating image(s).Generate image from text prompt.
import requests
url = "https://api.vimmerse.net/ai/text-2-image"
headers = {
'X-Api-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
payload = {
"quantity": 3,
"prompt": "Shot of Nike shoes on colorful background.",
"option": "Auto",
"aspect_ratio": "16:9"
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
New Image URLs
Bad Request
Insufficient Credit
Validation Error
You can generate image(s) from uploaded image and text prompt that describes changes to your uploaded image.
X-Api-Key
: Your customer API key.image
: Input image file.prompt
: Describe what changes to make to the uploaded image.creativity_strength
: Strength of the creativity effect. Available values are integers from 1 to 10. Default value is 5
.aspect_ratio
: Aspect ratio of the generated image. Default value is 16:9
.option
: The image generation service to use. Available values are Flux1
, RealisticVision
, StableDiffusion3.5
, LeonardoImage
and Auto
. Default value is Auto
quantity
: Number of images to generate. Available values are integers from 1 to 4. Default value is 1.Generate text prompt from image.
import requests
url = "https://api.vimmerse.net/ai/image-2-image"
payload = {
'prompt': 'Make shoe blue and look more real like in the shop.',
'quantity': 2,
'creativity_strength': 3,
'aspect_ratio': '4:3',
'option': 'Flux1'
}
files=[
('image', ('image.png', open('/path/to/image.png','rb'), 'image/png'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
New Image URLs
Bad Request
Insufficient Credit
Validation Error
You can reimagine uploaded image and text prompt that describes changes to your uploaded image.
X-Api-Key
: Your customer API key.image
: Input image file.image2
: Input clothes image file.option
: Available values are TunedFlux1
, Remake
, Sketch
, Restructure
and TryOn
. Default value is Remake
. Remake covers Restyle, ReplaceWith, RecolorTo, OverlayEffects. This field will be ignored if image2
is given.prompt
: Describe what changes to make to the uploaded image. This field will be ignored if image2
is given.aspect_ratio
: Aspect ratio of the generated image. Default value is 16:9
. This field will be ignored if image2
is given.quantity
: Number of images to be generated. Avaialble values are 1 to 4. This field will be ignored if image2
is given.creativity_strength
: Strength of the creativity effect. Available values are integers from 1 to 10. Default value is 5
. This field will be ignored if image2
is given.import requests
url = "https://api.vimmerse.net/ai/reimagine"
payload = {
'prompt': 'Make shoe blue and change wall to sky.',
'aspect_ratio': '16:9',
'option': 'Remake',
'creativity_strength': 3,
}
files=[
('image', ('image.png', open('/path/to/image.png','rb'), 'image/png'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "https://api.vimmerse.net/ai/reimagine"
payload = {'option': 'TryOn'}
files=[
('image',('human.jpg',open('/path/to/human/image.jpg','rb'),'image/jpeg')),
('image2',('clothes.png',open('/path/to/clothes/image.png','rb'),'image/png'))
]
headers = {
'X-Api-Key': 'YOUR API KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
New Image URLs
Bad Request
Insufficient Credit
Validation Error
You can edit the image with below options.
X-Api-Key
: Your customer API key.image
: Input image file.image2
: New background image. If image2
is not set, just return removed background image.option
: Option to apply to your image. Available values RemoveBackground
, ReplaceBackground
, RestyleBackground
, RemoveText
, Upscale
and ExpandToAspectRatio
.aspect_ratio
: New aspect ratio that you want to get from ExpandToAspectRatio
option.import requests
url = "https://api.vimmerse.net/ai/edit-image"
files=[
('image', ('image.png', open('/path/to/image.png','rb'), 'image/png'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload={
"option": "RemoveBackground"
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "https://api.vimmerse.net/ai/edit-image"
files=[
('image', ('image.png', open('/path/to/image.png','rb'), 'image/png'))
('image2', ('image2.png', open('/path/to/new/background.png','rb'), 'image/png'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload={
"option": "ReplaceBackground"
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "https://api.vimmerse.net/ai/edit-image"
files=[
('image', ('image.png', open('/path/to/image.png','rb'), 'image/png'))
('image2', ('image2.png', open('/path/to/new/background.png','rb'), 'image/png'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload={
"option": "RestyleBackground"
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "https://api.vimmerse.net/ai/edit-image"
files=[
('image', ('image.png', open('/path/to/image.png','rb'), 'image/png'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload={
"option": "RemoveText"
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "https://api.vimmerse.net/ai/edit-image"
files=[
('image', ('image.png', open('/path/to/image.png','rb'), 'image/png'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload={
"option": "Upscale"
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "https://api.vimmerse.net/ai/edit-image"
files=[
('image', ('image.png', open('/path/to/image.png','rb'), 'image/png'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload={
"option": "ExpandToAspectRatio",
"aspect_ratio": "16:9"
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Modified image url.
Bad Request
Insufficient Credit
Validation Error
{
}
You can generate text prompt from uploaded image, refine your prompt or get suggested prompt.
X-Api-Key
: Your customer API key.option
: Available values are Image2Prompt
, SuggestPrompt
, RefinePrompt
and InspireMe
. Image2Prompt
generates prompt from image, SuggestPrompt
is generating an suggested prompt, RefinePrompt
refines prompt from your prompt. InspireMe
is automatically generating prompt based on your submission.image
: Input image file.prompt
: Your prompt.import requests
url = "https://api.vimmerse.net/ai/prompt"
headers = {
'X-Api-Key': 'YOUR_API_KEY',
}
files=[
('image',('file',open('/path/to/file','rb'),'application/octet-stream'))
]
payload = {
"option": "Image2Prompt", ## "InspireMe" option will also generate refined prompt from image.
}
response = requests.request("POST", url, headers=headers, files=files, data=payload)
print(response.text)
import requests
url = "https://api.vimmerse.net/ai/prompt"
headers = {
'X-Api-Key': 'YOUR_API_KEY',
}
payload = {
"option": "RefinePrompt", ## "InspireMe" option will also generate refined prompt
"prompt": "A nurse girl holding an injection and smiling"
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
import requests
url = "https://api.vimmerse.net/ai/prompt"
headers = {
'X-Api-Key': 'YOUR_API_KEY',
}
payload = {
"option": "SuggestPrompt", ## "InspireMe" option will also generate suggested prompt
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Generated Text Prompt
Bad Request
Validation Error
{- "data": "Imagine a futuristic cityscape where skyscrapers reach up to touch the stars, illuminated by neon lights and pulsating with energy. In the midst of it all, a sleek and powerful spacecraft hovers effortlessly, casting a beam of light down onto the bustling metropolis below. The scene captures the perfect blend of advanced technology, urban vibrancy, and infinite possibility. Bring this breathtaking vision to life with your creative expertise."
}
You can change aspect ratio of your input video.
X-Api-Key
: Your customer API key.video
: Input video file.aspect_ratio
: Aspect ratio of your new video. Example: '1:1', '16:9', '9:16'offset_x
: Offset X-Axis to top left conner from your input video that can be cropped. This value is optional and if you don't give any value, video will be cropped from center.offset_y
: Offset Y-Axis to top left conner from your input video that can be cropped. This value is optional and if you don't give any value, video will be cropped from center.import requests
url = "https://api.vimmerse.net/videos/crop-to-aspect-ratio"
files=[
('video', ('video.mp4', open('/path/to/video.mp4','rb'), 'video.mp4'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload={
"aspect_ratio": "16:9"
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Change Video Aspect Ratio
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "e00b8d24-1dee-4af6-9862-3fce26bae681",
- "customer_id": "vimmerse-product",
- "primary_user_id": "latsamyb",
- "args": { },
- "mime_type": "video/mp4",
- "created_at": "2024-12-11 16:36:06.540037+00:00",
- "updated_at": "2024-12-11 16:36:06.540037+00:00"
}
}
You can get upscaled or better quality video.
X-Api-Key
: Your customer API key.video
: Input video fileoption
: Available values are '4X', '2X', '4X&DeepClean' and 2X&DeepClean
and 'DeepClean'.import requests
url = "https://api.vimmerse.net/videos/enhance-video"
files=[
('video', ('video.mp4', open('/path/to/video.mp4','rb'), 'video.mp4'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload={
'option': '4X&DeepClean'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Enhance video
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "e00b8d24-1dee-4af6-9862-3fce26bae681",
- "customer_id": "vimmerse-product",
- "primary_user_id": "latsamyb",
- "args": { },
- "mime_type": "video/mp4",
- "created_at": "2024-12-11 16:36:06.540037+00:00",
- "updated_at": "2024-12-11 16:36:06.540037+00:00"
}
}