---
title: "Call the model deployment associated with a specified environment."
method: POST
path: "/environments/{env_name}/predict"
tags: ["Non-Regional"]
---

# Call the model deployment associated with a specified environment.

`POST /environments/{env_name}/predict`

Sends a synchronous predict request to the deployment promoted to the specified environment.

## Path parameters

- `env_name` string, required

## Request body

- object — JSON-serializable model input. The shape is defined by the model's `predict` function.

## Response `200`

Successful synchronous prediction.

- object — JSON-serializable output. The shape is defined by the model.

## Other responses

- `400` — Error response.
- `401` — Error response.
- `429` — Error response.
- `502` — Error response.
- `503` — Error response.
- `504` — Error response.

---

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