---
title: "Model Publicity"
method: POST
path: "/models/{model_name}/publicity"
tags: ["Models"]
---

# Model Publicity

`POST /models/{model_name}/publicity`

## Path parameters

- `model_name` string, required

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Request body

- ModelPublicityIn
  - `public` boolean, required — whether to make the model public of private

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `422` — Validation Error

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/versions/51b817b3f80f/schema)
