---
title: "Generate an AI prediction for a simulation based on an AI model"
method: POST
path: "/ai/predict"
tags: ["AI Models"]
---

# Generate an AI prediction for a simulation based on an AI model

`POST /ai/predict`

Waits for the prediction to finish and returns the results. Predictions that take longer
than 50 seconds time out, use POST /v1/ai/predictions for those.

## Request body

- CreateAiPredictionRequest
  - `aiModelId` string, uuid, required
  - `projectId` string, required
  - `simulationId` string, uuid, required

## Response `200`

Prediction results

- CreateAiPredictionResponse
  - `predictionId` string, uuid
  - `resultId` string, uuid
  - `availableFields` object[]
    - `name` string
    - `components` string[]
  - `confidenceScore` number, double
  - `globalOutputs` object[]
    - `name` string
    - `unit` string
    - `value` number, double

## 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)
