Spark Lite 当前免费 OpenAI-compatible API
api
- EndpointEndpoint
https://spark-api-open.xf-yun.com/v1/chat/completions- 认证Authentication
- Authorization: Bearer APIPassword
前置条件Prerequisites
- 讯飞开放平台账号See official terms
- Spark Lite 授权Spark Lite
- HTTP APIPasswordHTTP APIPassword
操作步骤Steps
- 确认 Lite 免费状态
打开官方 HTTP 文档/控制台,确认 Lite 仍为支持免费使用。
- 获取 APIPassword
在星火 API 控制台获取 HTTP 服务认证信息中的 APIPassword。
- 调用 model=lite
向 /v1/chat/completions 发送 OpenAI-compatible 请求。
命令已在上方「快速上手」给出。The copyable command already appears in Quick start above.
预期结果Expected:返回 chat completion;若出现 11201/11202/11203 按流控处理。
请求成功且 model=lite;官方文档仍标 Lite 支持免费使用。