Create AI Detection order
Creates an AI Detection order and issues an upload URL for the image. Live keys receive an S3 presigned URL; test keys receive an absolute BIZ MORI test-upload URL.
Flow
- Call this endpoint to receive an upload URL
- Upload the image using the live S3 URL or test BIZ MORI URL
- Call
POST /api/v2/orders/ai-detection/confirmto start async detection - Use webhooks or poll the order detail endpoint for the result
Order Status
| Status | Description |
|---|---|
pending | Waiting for file upload |
inProgress | Detection is in progress |
complete | Detection complete, result available |
failed | Detection failed |
Supported Formats
jpg, jpeg, png, webp, bmp, tiff
How to upload the image
After receiving theuploadUrl from the response, upload your image using a PUT request. Live keys return a presigned storage URL. Test keys return a BIZ MORI test upload URL that consumes and discards the request body:
Getting the detection result
Once you confirm the upload, the order status changes toinProgress. When detection completes, the result is available via:
- Webhook — Subscribe to
order.aiDetection.completedororder.aiDetection.failedevents - Polling — Call the Get order endpoint until status is
completeorfailed
aiDetection:
_ai for probability 0.98 or _human for probability 0.02. Test orders do not create downloadable heatmap or overlay files.Status Codes
Authorizations
Bearer API key for external client access. Live keys use the sk_ prefix; test keys use the sk_test_ prefix and support order-lifecycle testing with mock responses without processing or credit usage.
Body
Idempotency key to prevent duplicate requests
"0e6c4a9b-b1d8-457e-a9fc-4b7d0e3a6c59"
Image file name with extension. Supported: jpg, jpeg, png, webp, bmp, tiff
"photo.jpg"
Order name (optional, auto-generated if not provided)
64"my-detection-order"
Output options (optional). Generated files are included in the order detail response.
Response
Order created successfully