---
title: "POST /model-hub/custom_models/create/"
method: POST
path: "/model-hub/custom_models/create/"
tags: ["model-hub"]
---

# POST /model-hub/custom_models/create/

`POST /model-hub/custom_models/create/`

## Request

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

## Request body

- CustomAIModelCreateRequest
  - `model_provider` string, required
  - `model_name` string, required
  - `input_token_cost` number, nullable
  - `output_token_cost` number, nullable
  - `config_json` object
  - `key` string, nullable

## Response `200`

OK

- CustomAIModelCreateResponse
  - `status` string, required
  - `message` string, required
  - `data` CustomAIModelCreateResponseData, required
    - `id` string, uuid, 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)
