Run Transforms

POST /transforms/run

Run transforms on input file or URL

Request

Headers

An API Key is required to access this endpoint.

Body

Either input file or URL is required but not both.

Supported models can be found here.

Transform

Config

The config varies based on the type of model being used. CHAPTERIZE does not require a config.

SUMMARIZE

TRANSLATE

Example

{
  "url": "https://omniai-test.s3.amazonaws.com/e853113c-45c0-4ff1-be49-b0a6013a3498.srt", 
  "transforms": [
    { 
      "name": "chapters",
      "type": "CHAPTERIZE"    
    },
    { 
      "config": {
        "summaryLength": 1,
        "summaryType": "paragraph"
      },
      "name": "summary",
      "type": "SUMMARIZE"    
    }
  ]
}

Response

The API returns the response in JSON format.

The request will return a 200 with a jobId and status. You can use this jobId to check the processing status and fetch results.

Example

{
  "jobId": "e368f726-aa81-435a-8c41-0830b665b4ec",
  "result": "https://api.getomni.ai/transforms/run?jobId=98778b09-0312-4fdc-be5c-d9504261cc66",
  "status": "PENDING"
}

Last updated