---
title: "Price a generation without running it: exactly what POST /v1/generations would charge for this body."
method: POST
path: "/v1/estimate"
---

# Price a generation without running it: exactly what POST /v1/generations would charge for this body.

`POST /v1/estimate`

## Request

- Base URL: `https://api.lumeta.ai`
- URL: `https://api.lumeta.ai/v1/estimate`
- Auth: HTTP bearer

## Request body

- object
  - `model` string, required: Model id or slug.
  - `input` object, required: The model's inputs; schema at GET /v1/models/{model}/schema. A choice listed in a field's `x-lumeta-option-min-plan` above your plan answers 403 `plan_required` and charges nothing.
  - `project` string: `proj_<id>` to file the generation in (default: your current project).

## Response `200`

OK

- Estimate
  - `credits` integer
  - `credits_remaining` integer
  - `cap_remaining` integer, nullable
  - `enough` boolean: Whether POST /v1/generations would be accepted right now.

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/lumeta/apis/lumeta-api.md) · [All operations](https://skmtc.dev/lumeta/apis/lumeta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lumeta/apis/lumeta-api/revisions/1f3b5e5b87f6?raw)
