Skip to content

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