πŸ‘©β€πŸ’»Snippets

Customizable code snippets for our endpoints

Find more in the Postman Workspace

Python - Create Render (from Image URL)

import requests
import json

url = "https://api.virtualstagingai.app/v1/render/create"
VSAI_API_KEY = "..."

payload = json.dumps({
  "image_url": "https://firebasestorage.googleapis.com/v0/b/furniture-ai.appspot.com/o/users%2FX5AvCT5OUcaflJkXefQofEkDcW42%2Ffootage%2F6aec0ecf-8a52-4b49-a81d-031e91ce33e5-0001-022_181_HDR_4143.jpg?alt=media&token=28136001-ad8e-4c97-afe7-5f5b68054a1c",
  "room_type": "bed",
  "style": "modern",
  "wait_for_completion": False
})
headers = {
  'Authorization': 'Api-key ' + VSAI_API_KEY,
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Python - Create Render (from file, using multipart form-data)

Node JS w/ Axios - Create Render

Last updated