Ask a model
askSend a question or task to Leanfare and receive the answer plus its cost; Auto selects the cheapest suitable model by default, or name a model to use one.
Instructions
Ask a question through Leanfare and get the answer with its cost. By default Leanfare's Auto picks the cheapest model the user ticked that rates well for the task; name a model to use that one. The cost counts toward the user's budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | auto (the default), auto-save, auto-balanced, auto-best, or a model id from the models tool, such as google/gemini-3.8-flash. | |
| prompt | Yes | The question or task, with everything the model needs to answer it. | |
| system | No | Instructions for the model (a system prompt). | |
| max_tokens | No | The longest answer to allow, in tokens. |