Skip to main content

Initialize API

This examples shows how to create a new instance of the Voxel Farm client Python API.

# Import the Voxel Farm Client Library

from voxelfarm import voxelfarmclient

# The URL for the Voxel Space API
# https://vf-api.voxelspace.com

vf_api_url = os.getenv('YOUR_VOXELFARM_API_URL')

# Create instance of the Voxel Farm REST API

vf = voxelfarmclient.rest(vf_api_url)