计算预计 LLM 用量

根据提供的值,返回 LLM 模型列表及使用这些模型的预估成本。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
prompt_lengthinteger必需

提示词长度,以字符计。

number_of_pagesinteger必需

PDF 文档中的内容页,或智能体知识库中的 URL。

rag_enabledboolean必需

是否启用 RAG。

响应

成功响应

llm_priceslist of objects

错误

422
Unprocessable Entity Error