Skip to content

Bring your own AI

Price the plan for customers who bring their own AI.

Your users can now sign in with their own AI subscription or key and pay for the model themselves. Tell Last Price who pays for inference, and it prices that tier from your real cost, so you can charge less and keep your margin.

What you can do

  • Declare model spend per unit as inference_cost, separately from the rest of your cost.
  • Set inference_payer to customer when the end customer pays for the model, and that spend drops out of the price.
  • Offer a cheaper bring-your-own plan at the same margin, or keep the price and give more usage.
  • Send bring-your-own requests to a pricing function of their own with a routing policy rule.
  • See in every explanation whether inference cost was included or excluded.

Your standard plan

request
POST /api/compute/price
{
  "function_id": "<lastprice/cost-plus id>",
  "routing_preference": "explicit",
  "context": {
    "currency": "USD",
    "metadata": {
      "unit_cost": 1,
      "inference_cost": 15,
      "target_margin_pct": 25
    }
  }
}
// computed_price: 21.33 (your plan, you pay for the model)

The bring-your-own tier

request metadata
"metadata": {
  "unit_cost": 1,
  "inference_cost": 15,
  "target_margin_pct": 25,
  "inference_payer": "customer"
}
// computed_price: 1.33 (same margin, the customer pays for the model)

Route it to its own function

routing policy rule
{
  "field": "context.metadata.inference_payer",
  "operator": "eq",
  "value": "customer",
  "function_id": "<your bring-your-own tier function>"
}
  1. New

    An agent can set up as a seller without a browser

    A self-registered agent can draft and test its own pricing functions, and a person's claim key can turn its workspace into a separate seller account.

  2. New

    Rule based functions price by the rule you write

    Give a rule_based function its rule, such as "cheapest competitor less 2%, never below cost, ending in .99", and it prices exactly by that rule.

  3. New

    Listings show where they stand in review, and are checked at publish

    Sellers see where their listing stands in review, and a listing that could mislead buyers is refused when it is published.

  4. Improved

    Choose routing weights by function name

    Choose functions by name and assign relative weights without typing their IDs.

  5. Fixed

    Sellers are told when a listing is waiting for review

    A listing waiting for staff review now says so everywhere its seller looks, and buyers get one clear answer for a function they cannot reach yet.

Ready to try it?

Spin up a free playground tenant in under a minute. No credit card.