---
title: "Gets a deployment's config"
method: GET
path: "/v1/models/{model_id}/deployments/{deployment_id}/config"
---

# Gets a deployment's config

`GET /v1/models/{model_id}/deployments/{deployment_id}/config`

Returns the deployment's config. `output_format` query param picks the shape: 'raw' (config.yaml text), 'parsed' (dict with defaults), or 'both' (default).

## Query parameters

- `output_format` 'raw' | 'parsed' | 'both'

## Response `200`

- DeploymentConfigResponseV1 — The config of a deployment. Fields are populated per `output_format`.
  - `config` object, nullable — The parsed config of the deployment.
  - `raw_config` string, nullable — The original config.yaml text — preserves comments, ordering, formatting.

---

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