> ## Documentation Index
> Fetch the complete documentation index at: https://glasser.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# glasser quote

> 查询 Run 会预留的金额，不实际运行。

## 用法

```bash theme={null}
glasser quote -p <provider> -e <endpoint> -i '<json>'
```

查询单个请求的报价：Glasser 按当前价格会为此输入预留的金额（Hold）。选项与 `glasser run` 相同，可以先用同一组参数查询报价，再运行。查询报价不创建 Run，不预留余额，也不调用数据提供商。

Hold 不是有保证的上限。数据提供商返回的结果多于输入要求，或价格在 Run 之前发生变化时，最终费用可能更高。

`glasser run` 会拒绝的请求，在这里会以相同的错误被拒绝。

## 选项

| 选项 | 说明 |
| - | - |
| `--provider, -p` | 数据提供商标识，例如 pdl |
| `--endpoint, -e` | 接口键，例如 /v5/person/enrich |
| `--input, -i` | 数据提供商原生输入：内联 JSON 或 @path/to/file.json |
| `--input-file, -f` | 从 JSON 文件读取输入，也可使用 -i @file |
| `--endpoint-version` | 选择受支持的接口版本，不锁定价格；版本不可用或已停用时返回 409 |

全局选项、JSON 模式、退出码和环境变量见 [CLI 约定](https://glasser.ai/docs/zh/cli.md#global-flags)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.