Skip to main content
POST
/
predict
/
large-file
Large file AI-voice detection
curl --request POST \
  --url https://api.aurigin.ai/v1/predict/large-file \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form device=macos \
  --form 'prediction_id=<string>' \
  --form model=apollo-4-2025-10-20 \
  --form 'filename=<string>' \
  --form file=@example-file
{
  "prediction_id": "pred_abc123def456",
  "global": {
    "confidence": 0.91,
    "result": "spoofed",
    "reason": null
  },
  "segments": [
    {
      "index": 0,
      "start": 0,
      "end": 5,
      "confidence": 0.93,
      "result": "spoofed"
    },
    {
      "index": 1,
      "start": 5,
      "end": 10,
      "confidence": 0.89,
      "result": "spoofed"
    }
  ],
  "model": "apollo-4-2025-10-20",
  "processing_time": 32.54,
  "audio_duration": 120,
  "warnings": []
}

Authorizations

x-api-key
string
header
required

Body

multipart/form-data

Upload the file directly as multipart/form-data. Include optional metadata like device, prediction_id, or model (defaults server-side).

file
file
required

Audio or video file between 5 MB and 100 MB

device
enum<string>

Optional device type making the request

Available options:
macos,
windows,
web_app,
api
prediction_id
string

Optional custom prediction identifier

model
enum<string> | null

Optional model version to run. Currently only apollo-4-2025-10-20 is available for this endpoint.

Available options:
apollo-4-2025-10-20
filename
string

Original filename for reference (optional)

Response

Prediction completed with a global verdict and segment-level breakdown.

prediction_id
string

Unique identifier for this prediction

global
object
segments
object[]

Array of segment-level predictions. Each segment represents a 5-second chunk of the audio.

model
string

Model version used for prediction

processing_time
number

Time taken to process the audio in seconds

audio_duration
number

Duration of the audio file in seconds

warnings
string[]

Array of warning messages, if any