upload()
: Upload and wait for complete processingcreate_task()
: Upload and get an immediate task response
Complete Processing with upload()
The upload()
method handles the entire process - it uploads your file and waits for processing to complete:
Instant Response with create_task()
If you want to start processing but don’t want to wait for completion, use create_task()
:
Checking Task Status with poll()
When using create_task()
, you can check the status later using poll()
:
await
: