---
title: "Get the status of an AI prediction, and its results if it is done"
method: GET
path: "/ai/predictions/{predictionId}"
tags: ["AI Models"]
---

# Get the status of an AI prediction, and its results if it is done

`GET /ai/predictions/{predictionId}`

## Path parameters

- `predictionId` string, uuid, required

## Response `200`

The status of the prediction, and the results if it is done

- GetAiPredictionResponse
  - `predictionId` string, uuid
  - `resultId` string, uuid
  - `availableFields` object[]
    - `name` string
    - `components` string[]
  - `confidenceScore` number, double
  - `globalOutputs` object[]
    - `name` string
    - `unit` string
    - `value` number, double
  - `status` string — RUNNING - Prediction is still in progress DONE - Prediction is done, the results are part of this response FAILED - Prediction failed, either because the simulation is not compatible with the AI model, or because of a transient error. Retrying can help in the second case.

## Other responses

- `403` — Insufficient permissions
- `404` — Element was not found

---

[API](https://skmtc.net/simscale/apis/simscale-api.md) · [All operations](https://skmtc.net/simscale/apis/simscale-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/simscale/simscale-api/revisions/53223abaceb7/schema)
