---
updatedAt: 2025-06-17T21:08:39.000Z
agentTools:
  projectIndex: https://documentation.picsellia.com/llms.txt
---

# Export & publish an AI model

```python Python
from picsellia import Client


client = Client(
  api_token="YOUR API TOKEN",   # Can be retrieved from your profile on the platform
	organization_name="YOUR ORGANIZATION NAME" # Default to your organization,
)


my_project = client.get_project(project_name="your-project-name")


my_best_experiment = my_project.get_experiment(name="best-experiment-name")

# The name will be the model name which will be stored in the model registry. 
my_best_experiment.publish(name="model-name")
```

```json Response Example
{"success":true}
```

# Initialize Picsellia Client

<!-- python@1-7 -->

Initialize the Client with your API Token, available on your profile page. Check out the organization you want to work with.

# Get project

<!-- python@10 -->

Get the project where you created your experiments.

# Get experiment

<!-- python@13 -->

After comparing the different experiments through the Picsellia platform UI, choose the one that performs the best, and later you will export it as a model.

# Export and publish experiment as model

<!-- python@13-16 -->

Your experiment's model will be published in the model registry under your organization.