Use a model
Your library
List everything your account owns with client.library.list(), and the models you may download with client.models.list().
Everything your account owns
python
from intura_ai import Intura
client = Intura()
for item in client.library.list():
print(item.code, item.kind, item.current_version, item.versions)This is the same list as the library page on the website: models, templates, courses and apps. Each entry is a LibraryItem:
| Field | What it is |
|---|---|
code | For a model, the slug you pass to load |
kind | What it is, e.g. "model", "template", "course" or "app" |
title | The product's name, in English when it has both languages |
language | The language of the build, when there is one |
current_version | The version downloaded when you name none |
versions | Every version you can pin, newest first |
purchased_at | When it was added to your library |
data | Everything the service sent, as a dict |
New fields appear in item.data before the package types them, so read from there rather than waiting for a release.
client.library.list() needs a download key, and it is the simplest way to check that a key works.
The models you may download
python
for info in client.models.list():
print(info.slug, info.version, info.language, info.name)client.models.list() lists the downloadable models, one per model and language, as ModelInfo entries with slug, name, language, version (the recommended version), tree, endpoint and files.
From a shell
bash
intura-ai library # what your account owns
intura-ai library --json # the same, as JSON
intura-ai models # what you may downloadDon't own a model yet? Browse the model catalogue.