FactoryFactory

Connecting to Factory Hub

Getting Your Credentials

Before connecting to Factory Hub, you'll need to obtain your token and tenant name. Here's how to get these credentials:

Finding Your Credentials

Both your tenant name and API key can be found on the same page shown in the screenshot:

  1. Log in to the Factory platform
  2. In the "Copy your personal API key" section, you'll find:
    • Your tenant name - this will be displayed in the command or connection example
    • Your API key - which you can copy using the blue copy button

The tenant name may be your username, but it could also be different if you're working with multiple tenants or organization accounts.

StartPage

Connecting to Factory Hub

After obtaining your credentials, you can connect to Factory Hub using the FactoryClient class:

from factory_sdk import FactoryClient
 
# Initialize the client
factory = FactoryClient(
    tenant="your_tenant_name",  # The tenant name from the connection page
    project="your_project_name",             # The project you're working on
    token="your_copied_api_key" # The API key you copied
)

Upon successful connection, you should see this confirmation message:

🛸 FactoryClient is successfully connected and starts working on your_project_name demo

Now you're ready to use Factory SDK's functionality for fine-tuning models, running evaluations, or deploying your models.

On this page