---
title: "PATCH /model-hub/custom_models/edit/"
method: PATCH
path: "/model-hub/custom_models/edit/"
tags: ["model-hub"]
---

# PATCH /model-hub/custom_models/edit/

`PATCH /model-hub/custom_models/edit/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/custom_models/edit/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- CustomAIModelEditRequest
  - `id` string, uuid, required
  - `model_name` string
  - `input_token_cost` number, nullable
  - `output_token_cost` number, nullable
  - `config_json` object
  - `key` string, nullable

## Response `200`

OK

- ModelHubStringResultResponse
  - `status` boolean, required
  - `result` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
