Skip to main content
All SDK exceptions inherit from SDVMError, so one handler catches everything, and the specific classes let you react to the cases that matter.

Validation errors

The server rejects a request with 422 when a sample is malformed, the list is empty or longer than 100, a sample is larger than the model can hold, or the estimated cost exceeds the per-request limit. These arrive as APIError with status_code == 422 and a message that says what to change.

Timeouts

Every client takes a timeout in seconds (default 120). Large batches take longer; raise it rather than splitting into tiny requests, which only spends the rate limit faster.
Last modified on September 14, 2026