Uploads images to the Vimmerse platform for use in API requests.
After uploading, you'll receive a URL that can be used with the image_url parameter in other endpoints.
New Image URLs
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}Generates high-quality images from text prompts using advanced AI models.
prompt: Text description of the desired image (required)quantity: Number of images to generate, 1-4 (default: 1)option: AI model to use (default: "Auto")aspect_ratio: Image dimensions (default: "16:9")creativity_strength: Control over creativity, 1-10 (default: 5)enhance_image: Apply super-resolution enhancement (default: false)import requests
url = "https://api.vimmerse.net/image/text-2-image"
headers = {
'X-Api-Key': 'YOUR_API_KEY',
}
payload = {
"quantity": 3, # Number of images to generate (1-4)
"prompt": "A serene landscape with mountains and a lake at sunset",
"option": "Auto", # Image generation model
"aspect_ratio": "16:9" # Image aspect ratio
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
New Image URLs
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}Transforms images using text prompts with various editing modes.
image_file or image_url: Source image (required)prompt: Description of desired changes (required)option: Edit mode (required)aspect_ratio: Desired output ratio (optional)creativity_strength: 1-10 scale for creativity (default: 5)quantity: Number of variations, 1-4 (default: 1)import requests
url = "https://api.vimmerse.net/image/image-2-image"
payload = {
'prompt': 'Make the shoe blue and change the wall to a sky background',
'aspect_ratio': '16:9',
'option': 'Remake', # Redesign the image based on prompt
'creativity_strength': 3, # 1-10 scale
}
files=[
('image_file', ('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/image/image-2-image"
payload = {
'prompt': 'Transform into a well-manicured shrub in an English garden',
'aspect_ratio': '16:9',
'creativity_strength': 3,
'option': "Restructure" # Completely restructures the image
}
files=[
('image_file', ('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/image/image-2-image"
payload = {
'prompt': 'Transform into a majestic portrait style',
'aspect_ratio': '16:9',
'creativity_strength': 3,
'option': "Restyle" # Applies artistic style changes
}
files=[
('image_file', ('image.png', open('/path/to每一個.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/image/image-2-image"
payload = {
'prompt': 'Convert to a medieval castle scene',
'aspect_ratio': '16:9',
'creativity_strength': 3,
'option': "Sketch" # Converts image to sketch style
}
files=[
('image_file', ('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/image/image-2-image"
payload = {
'prompt': 'Replace the shoe with a can of Pepsi',
'aspect_ratio': '16:9',
'creativity_strength': 3,
'option': "ReplaceWith"
}
files=[
('image_file', ('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/image/image-2-image"
payload = {
'prompt': 'Recolor the green shirt to white',
'aspect_ratio': '16:9',
'creativity_strength': 3,
'option': "RecolorTo" # Changes colors in the image
}
files=[
('image_file', ('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
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}Generates images with elements or replaces items based on prompts.
New Image URLs
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}Manipulates the background of images with three modes: remove, replace, or restyle.
bg_image_file or bg_image_url to provide the replacement backgroundbg_image_file or bg_image_url to provide the style referenceimage_file or image_url: Main image (required)bg_image_file or bg_image_url: Background image (required for ReplaceBackground and RestyleBackground)option: "RemoveBackground", "ReplaceBackground", or "RestyleBackground" (required){REMOVE_BG_EXAMPLE}
{REPLACE_BG_EXAMPLE}
{RESTYLE_BG_EXAMPLE}
Modified image url.
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}Performs various image editing operations including text removal, upscaling, expansion, and inpainting.
aspect_ratio: Desired ratio (e.g., "16:9", "9:16", "1:1")mask_file: White areas in the mask indicate regions to fillprompt: Description of what to generate in the masked areaquantity: Number of variations to generate (1-4)image_file or image_url: Source image (required)mask_file: Mask image for inpainting (required for Inpaint option)option: "RemoveText", "Upscale", "ExpandToAspectRatio", or "Inpaint" (required)aspect_ratio: For ExpandToAspectRatio (required for that option)prompt: For Inpaint (required for that option)quantity: Number of variations for Inpaint (optional, default: 1){REMOVE_TEXT_EXAMPLE}
{UPSCALE_IMAGE_EXAMPLE}
{EXPAND_IMAGE_EXAMPLE}
{INPAINT_IMAGE_EXAMPLE}
Modified image url.
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}Swaps faces in an image with faces from other uploaded images.
image_files: List of image files to upload (required if not using URLs)image_urls: List of image URLs (required if not using files)order_indices: Array of face indices to swap (optional, e.g., [0, 1])main_image_url: Deprecated - use image_urls insteadhuman_image_url: Deprecated - use image_urls insteadimport requests
url = "https://api.vimmerse.net/image/face-swap"
files=[
('image_files', ('main_image.png', open('/path/to/main_image.png', 'rb'), 'image/png')),
('image_files', ('human1_image.jpeg', open('/path/to/human_image.jpeg', 'rb'), 'image/jpeg')),
('image_files', ('human2_image.jpeg', open('/path/to/second_face.jpeg', 'rb'), 'image/jpeg'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload = {
'order_indices': [0, 1] # Optional: specify which faces to swap
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "https://api.vimmerse.net/image/face-swap"
payload = {
'image_urls': [
"https://example.com/main_image.png",
"https://example.com/human_image1.png",
"https://example.com/human_image2.png"
],
'order_indices': [0, 1] # Optional
}
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
New Image URLs
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}Generates a virtual try-on image by overlaying clothing onto a human subject.
This API combines a human image and a clothing image to create a realistic visualization of how the clothing looks on the person.
human_image_file or human_image_url: Image of a person (required)clothes_image_file or clothes_image_url: Image of clothing to try on (required)option: Try-on method (default: "Auto")import requests
url = "https://api.vimmerse.net/image/try-on"
files=[
('human_image_file', ('human_image.jpeg', open('/path/to/human_image.jpeg', 'rb'), 'image/jpeg')),
('clothes_image_file', ('clothes_image.jpeg', open('/path/to/clothes_image.jpeg', 'rb'), 'image/jpeg'))
]
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
payload = {} # Optional parameters
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
import requests
url = "https://api.vimmerse.net/image/try-on"
payload = {
"human_image_url": "https://example.com/human_image.png",
"clothes_image_url": "https://example.com/clothes_image.png"
}
headers = {
'X-Api-Key': 'YOUR_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
New Image URLs
Bad Request
Insufficient Credit
Validation Error
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}Transforms images into various artistic styles using AI-powered stylization.
image_file or image_url: Source image (required)style: Artistic style to apply (required)import requests
url = "https://api.vimmerse.net/image/restyle"
payload = {
'style': 'anime_style' # Apply anime style transformation
}
files=[
('image_file', ('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
{- "data": {
- "id": "ASSET_ID",
- "customer_id": "CUSTOMER_ID",
- "primary_user_id": "CUSTOMER_ID",
- "args": { },
- "results": [
- "result_url1",
- "result_url2"
], - "thumbnails": [ ],
- "status": "success",
- "mime_type": "MIMETYPE",
- "app_name": "FUNCTION_NAME",
- "created_at": "2025-05-06 16:35:59.840508+00:00",
- "updated_at": "2025-05-06 16:35:59.840508+00:00",
- "history": [ ]
}
}