Overview
Repositories are the top-level containers for your AI projects. Each repository has a base model configuration and contains prompts, targets, and bakes.Endpoints
List Repositories
List all repositories visible to your team. Endpoint:GET /v1/repo
SDK Usage:
- TypeScript:
client.repo.list()supportsinclude_metadata,offset, andlimitparameters (check SDK for latest support) - Python:
client.repo.list()supportsinclude_metadata,offset, andlimitparameters (check SDK for latest support)
200 OK
200 OK
Include
base_model metadata for each repository. Default: falseWhen true, returns PaginatedRepoList with metadata. When false, returns simple RepoList (backward compatible).Starting offset for pagination. Only used when
include_metadata=true. Default: 0Page size for pagination. Only used when
include_metadata=true. Default: all repositoriesrepos:Array<string>- List of repository names
repos:Array<RepoItem>- List of repositories with metadatarepo_name:string- Repository namebase_model:string- Base model identifier
offset:number- Starting offsetlimit:number- Page sizehas_more:boolean- Whether more repositories are availabletotal:number | null- Total number of repositories (if available)
Get Repository
Get repository configuration and metadata. Endpoint:GET /v1/repo/{repo_name}
Request:
Repository name to retrieve
200 OK
repo_name:string- Repository namebase_model:string- Base model identifier
Create or Update Repository
Create or update a repository. This operation is idempotent. Endpoint:POST /v1/repo
Request:
Name of the repository
Base model for the repository (e.g., “Qwen/Qwen3-32B”)
200 OK
Create or Update Repository (Deprecated)
Endpoint:PUT /v1/repo
Request:
Examples
Create Repository with Base Model
Check if Repository Exists
List All Repositories
Error Handling
Conflict Error (409)
Attempting to changebase_model of an existing repository:
409 Conflict
Not Found Error (404)
Getting a non-existent repository:404 Not Found
Response Types
RepoResponse
RepoListResponse
PaginatedRepoList
Best Practices
Choose Base Model Carefully
Choose Base Model Carefully
The
base_model cannot be changed after creation. Choose carefully based on your use case and model requirements.Use Descriptive Names
Use Descriptive Names
Repository names should be descriptive and follow a consistent naming convention (e.g.,
project_name, team_experiment_v1).Check Before Creating
Check Before Creating
Use
get() to check if a repository exists before creating it, or rely on POST /v1/repo’s idempotent behavior.