Why migrate?
Aurigin now exposes versioned endpoints athttps://api.aurigin.ai/{version}. Moving from the legacy https://aurigin.ai/api-ext base URL to the new versioned endpoints gives you:
- A stable base URL shared by every version (
https://api.aurigin.ai) - A richer prediction payload with global + per-segment insights
- New endpoints for larger uploads and storage management
- Backwards-compatible timelines so you can cut over safely
Base URL changes
| Legacy | New versioned |
|---|---|
https://aurigin.ai/api-ext | https://api.aurigin.ai/v1 (current) |
Response payload differences
v0 (chunk arrays)
v1 (rich objects)
- v0 returns parallel arrays (
predictions,global_probability,error). - v1 wraps results into structured objects: a
globalverdict and asegmentsarray with timing metadata. - v1 responses always include a
prediction_idyou can use for auditing or async lookups. - The
warningsarray replaces per-chunk error strings.
Request changes
- Upload formats: both versions accept
multipart/form-datauploads. v1 also accepts a JSON payload with apresigned_url. - Device + model metadata: v1 adds optional
deviceandmodelfields for tagging requests.modelcurrently only acceptsapollo-4-2025-10-20and can be omitted. - Large files: v1 introduces
POST /predict/large-filefor 5–100 MB uploads without switching to async workflows.
Endpoint mapping
| v0 endpoint | v1 replacement | Notes |
|---|---|---|
POST /predict | POST /predict | Same behaviour with richer response fields. |
| none | POST /predict/large-file | New synchronous processing for 5–100 MB files. |
POST /file / GET /file | POST /file / GET /file | Storage workflows remain, but now surfaced in the Prediction tag group. |
Async uploads via pre-signed URLs are now handled outside of the public v1 spec. Reach out to support if you depend on the old async flow.
Migration checklist
- Switch base URL to
https://api.aurigin.ai/v1. - Update response parsing:
- Map
predictions[n]->segments[n].result - Map
global_probability[n]->segments[n].confidence - Use
global.confidence/global.resultfor overall status.
- Map
- Handle
prediction_idfor logging or follow-up status checks. - Adopt new endpoints if you need medium-sized uploads (
/predict/large-file). - Retire deprecated fields:
error[]is replaced bywarnings[].global_probability[]is no longer returned.
Rollout tips
- Dual-write strategy: call both v0 and v1 in parallel, compare outputs, then flip traffic once results align.
- Monitor warnings: v1 warnings highlight partial failures that used to surface as
error[i]entries. - SDK regeneration: regenerate clients from the v1 OpenAPI spec to pick up the new response schema automatically.