---
title: "Retrieve a model price"
description: "One dated list row: the id a usage line cites in rating.segments[]."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/model-prices/retrieve-a-model-price"
---
# Retrieve a model price

> One dated list row: the id a usage line cites in rating.segments[].

<api-operation method="GET" path="/v1/organization/model_prices/{id}">
<template v-slot:docs="">

One dated list row: the id a usage line cites in `rating.segments[]`.

## Path parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        yes
      </strong>
    </td>
    
    <td>
      The row's id (mpr_…).
    </td>
  </tr>
</tbody>
</table>

## Response

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        object
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The object type; always <code>
        model_price
      </code>
      
      . One of <code>
        model_price
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The model price's id.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        provider
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The payment provider.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        model
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The pricing model.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        token_type
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <code>
        input
      </code>
      
      , <code>
        output
      </code>
      
      , <code>
        cache_read
      </code>
      
      , <code>
        cache_write
      </code>
      
      , … as the source names them.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        currency
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The model price's currency (ISO-4217 code).
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        unit_amount_decimal
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Minor units (cents for USD) per <code>
        quantity_divisor
      </code>
      
       units. A decimal string with at most 12 decimal places and no exponent, for example <code>
        "0.25"
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        quantity_divisor
      </code>
    </td>
    
    <td>
      <code>
        integer
      </code>
    </td>
    
    <td>
      1,000,000 for tokens; 1,000 for counted items such as web searches.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        effective_from
      </code>
    </td>
    
    <td>
      <code>
        string · ISO-8601
      </code>
    </td>
    
    <td>
      The instant we apply this price from. Null = the model's first price.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        source_effective_from
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The source's own date for this price.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        source
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where the model price comes from.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        source_version
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The model price's source version.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        rounded
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      The source value had more than 12 decimal places in cents: rounded half-up once.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        last_seen_at
      </code>
    </td>
    
    <td>
      <code>
        string · ISO-8601
      </code>
    </td>
    
    <td>
      When the source last listed this model.
    </td>
  </tr>
</tbody>
</table>

## Status codes

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      The list row.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        404
      </code>
    </td>
    
    <td>
      No such model price.
    </td>
  </tr>
</tbody>
</table>
</template>

<template v-slot:request="">

```bash [Request]
curl "$TMBILLING_URL/v1/organization/model_prices/mpr_XXXXXXXXXXXX01" \
  -H "Authorization: Bearer $TMBILLING_API_KEY"
```

</template>

<template v-slot:response="">
<code-group>

```json [200 OK]
{
  "object": "model_price",
  "id": "mpr_XXXXXXXXXXXX01",
  "provider": "openai",
  "model": "gpt-4o",
  "token_type": "input",
  "currency": "USD",
  "unit_amount_decimal": "250",
  "quantity_divisor": 1000000,
  "effective_from": "2026-03-14T09:30:00Z",
  "source_effective_from": "2026-03-14",
  "source": "genai-prices",
  "source_version": "Source version",
  "rounded": false,
  "last_seen_at": "2026-03-14T09:30:00Z"
}
```

```json [404 Not Found]
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such model price."
  }
}
```

</code-group>
</template>
</api-operation>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
