---
title: "Register custom model pricing"
method: POST
path: "/marketplace/providers/models"
deprecated: true
---

# Register custom model pricing

`POST /marketplace/providers/models`

> **Deprecated.**

Register custom token pricing for models you host. Entries are versioned: a price change closes the current row and opens a new one, so historic spend keeps the rate it was billed at.
The returned id is what you attach with the `costgraph.ai/pricing-id.model` label or tag. Each version carries its own id, so read the live entry back after a price change instead of holding on to an earlier one.
Superseded by POST /v1/marketplace/models, which returns RFC 9457 problem responses on failure.

## Request body

- ModelPricesRequest
  - `entries` ModelPrice[], required
    - `context_limit` integer
    - `currency` string
    - `effective_from` string
    - `effective_to` string
    - `fetched_at` string
    - `host` string
    - `id` string
    - `modalities_input` string[]
    - `modalities_output` string[]
    - `model` string
    - `model_id` string
    - `open_weights` boolean
    - `output_limit` integer
    - `provider` string
    - `publisher` string
    - `raw_pricing_data` DatatypesJSON
    - `reasoning` boolean
    - `region` string
    - `sku_price_id` string
    - `source` string
    - `source_url` string
    - `structured_output` boolean
    - `tags` DatatypesJSON
    - `token_bucket` string
    - `tool_call` boolean
    - `unit_price_per_mtok` number

## Response `200`

Pricing response for custom model pricing

- RegisteredModelPrices
  - `entries` ModelPrice[]
    - `context_limit` integer
    - `currency` string
    - `effective_from` string
    - `effective_to` string
    - `fetched_at` string
    - `host` string
    - `id` string
    - `modalities_input` string[]
    - `modalities_output` string[]
    - `model` string
    - `model_id` string
    - `open_weights` boolean
    - `output_limit` integer
    - `provider` string
    - `publisher` string
    - `raw_pricing_data` DatatypesJSON
    - `reasoning` boolean
    - `region` string
    - `sku_price_id` string
    - `source` string
    - `source_url` string
    - `structured_output` boolean
    - `tags` DatatypesJSON
    - `token_bucket` string
    - `tool_call` boolean
    - `unit_price_per_mtok` number
  - `status` 'Registered' | 'Deleted'

## Other responses

- `400` — Invalid request body
- `401` — Host and organization do not match
- `500` — Internal server error

## Changes

- **2026-09-03** `2b7d1ae74be1` — 1 info
  - endpoint deprecated
- **2026-08-13** `f07bdc0e3d36` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/baselinehq/apis/costgraph-pricing-api/changes/marketplace/providers/models/post.md)

---

[API](https://skmtc.dev/baselinehq/apis/costgraph-pricing-api.md) · [All operations](https://skmtc.dev/baselinehq/apis/costgraph-pricing-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/baselinehq/costgraph-pricing-api/revisions/2b7d1ae74be1/schema)
