---
title: "Create an agent model price"
method: POST
path: "/agent-management/agent-model-prices"
tags: ["Agent Model Pricing"]
---

# Create an agent model price

`POST /agent-management/agent-model-prices`

## Request

- Base URL: `http://localhost:8090/agent-api`
- URL: `http://localhost:8090/agent-api/agent-management/agent-model-prices`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/docs/agent-management/agent-model-prices/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `tenantId` string

## Request body

- AgentModelPriceRequest
  - `modelPrefix` string
  - `inputPrice` number
  - `outputPrice` number
  - `cachedPrice` number

## Response `201`

Indicates that the agent model price was created

- AgentModelPriceResponse
  - `modelPrefix` string
  - `inputPrice` number
  - `outputPrice` number
  - `cachedPrice` number

## Other responses

- `400`: Indicates the request parameters are incomplete or contain illegal values.
- `403`: Indicates that the user doing the request does not have the required permissions for creating an agent model price
- `409`: Indicates that an agent model price with the given prefix already exists

---

[API](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/revisions/54fc1189496f?raw)
