Skip to main content
GET
List the built-in default model pricing

Authorizations

Authorization
string
header
required

A Barndoor API key, sent as Authorization: Bearer <key>. Keys are prefixed bdai_ and are opaque — do not attempt to decode one. Interchangeable with an OAuth 2.0 access token.

Scopes

openid

Issue an OIDC ID token identifying the caller.

profile

Read the caller's basic profile claims.

email

Read the caller's email address.

Response

The requested record

currency
string
required
id
string<uuid>
required
input_cost_per_million_tokens
number<double>
required
model_name
string
required
model_pattern
string
required
output_cost_per_million_tokens
number<double>
required
provider_slug
string
required
source
string
required
cache_read_cost_per_million_tokens
number<double> | null

Seeded prompt-cache rates from the provider YAML. None when the provider/model doesn't support caching (embeddings, vision, classic text-completion, etc.) — the admin UI hides the cache row entirely for those rather than rendering "$0.00", which would be a misleading override intent.

cache_write_cost_per_million_tokens
number<double> | null
long_context
object | null

Seeded long-context surcharge tier (BCP-3904). None for the vast majority of models, which price at one rate at any prompt size.

Surfaced on the Import Defaults list so an admin can see that a default carries a second rate set before importing it — a listing that showed only the short-context rate would understate what the row is about to cost them.