Transformations

Queue Evaluation for Multiple Transformations

Queues evaluation jobs for multiple transformations. The evaluations are processed asynchronously by worker jobs. This endpoint returns immediately with a 202 status to indicate the evaluations have been queued. The actual evaluation results are stored in the database and can be retrieved via the transformations list endpoint. Invalid transformation IDs will be included in the errors map in the response.

POST
/v1-beta/transformations/eval
x-api-key<token>

Authenticate using API Key in request header

In: header

transformationIDsarray<string>

Array of transformation IDs to evaluate

evaluationVersion?string

Evaluation version to use. Defaults to "0.1.0-gemini" if not specified.

Default"0.1.0-gemini"
Value in"0.1.0-gemini"

Response Body

curl -X POST "https://api.bem.ai/v1-beta/transformations/eval" \
  -H "Content-Type: application/json" \
  -d '{
    "transformationIDs": [
      "tr_2bxoJPNdSD4LgRT4YVC4gt72hlI",
      "tr_3cxpKQOeTE5MhSU5ZWD5hu83imJ",
      "tr_invalid"
    ],
    "evaluationVersion": "0.1.0-gemini"
  }'

{
  "queued": 2,
  "skipped": 0
}

{
  "message": "invalid request body: missing required field 'transformationIDs'",
  "code": 400,
  "details": {
    "field": "transformationIDs",
    "reason": "required field missing"
  }
}
{
  "message": "invalid request body: missing required field 'transformationIDs'",
  "code": 400,
  "details": {
    "field": "transformationIDs",
    "reason": "required field missing"
  }
}