---
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
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error

## Changes

- **2026-08-18** `52af8bbe4929` — 1 info
  - added the non-success response with the status `403`

[Change history](https://skmtc.dev/deepinfra/apis/deepinfra-api/changes/models/:model_name/publicity/post.md)

---

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