UnaAPI 接入概览
使用统一 Base URL、API Key 与公共模型别名调用 UnaAPI 的 OpenAI 兼容接口。
三个接入要素
Base URL
https://unaapi.com/v1所有公开 API 请求均从该地址开始。
API Key
una_your_api_key在控制台创建,并通过 Bearer Header 发送。
公共别名
your-model-id从模型广场选择当前已启用的公开别名。
最小请求
curl
curl https://unaapi.com/v1/chat/completions \
-H "Authorization: Bearer una_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-id",
"messages": [{"role": "user", "content": "你好"}],
"stream": false
}'继续接入
查看服务端快速开始,或按移动端安全架构接入。