DreamAuthError
class DreamAuthError(DreamServerError)
Importable as dream.DreamAuthError.
The API key was refused; never retryable: check the key, or the account, before calling again.
From get_action() it is DA-1000, with reason missing (no key sent), unknown_key (mistyped or cut short), disabled (revoked, or the account suspended), over_cap (the account’s spending this month passed its monthly budget cap: raise it on the platform’s Billing page) or not_entitled (the checkpoint is not available to run on this account). From the embodiment, dataset, fine-tuning and model calls it is HTTP 401 or 403, with code invalid_api_key, or forbidden when the account has no username yet: every embodiment, dataset and fine-tuning call needs one, so ask Dream Labs support to set it. Check DREAM_API_KEY (or the api_key argument) against the platform’s API keys page.
Raised by
dream.datasets.add_embodiment()dream.datasets.list_embodiments()dream.datasets.upload_dataset()dream.datasets.get_dataset()dream.datasets.list_datasets()dream.datasets.retry_dataset()dream.datasets.delete_dataset()dream.fine_tuning.create()dream.fine_tuning.check_eef()dream.fine_tuning.list()dream.fine_tuning.get()dream.fine_tuning.cancel()dream.fine_tuning.queue()dream.models.list_models()DreamClient.add_embodiment()DreamClient.get_embodiments()DreamClient.get_models()DreamClient.upload_dataset()DreamClient.get_dataset_status()DreamClient.get_datasets()DreamClient.retry_dataset()DreamClient.delete_dataset()DreamClient.finetune()DreamClient.get_finetuning_status()DreamClient.get_action()