其他
其他 向量

text-embedding-3-small

Model ID: text-embedding-3-small
系列
其他
上下文
未填写
每次请求最低收费
0.0015 人民币
请求数
12.4K
成功率
97.5%
Tokens
9.11M
可用率 100.00%
24 小时前现在
7 天前现在

定价

输入 / 1M token
0.28 人民币
输出 / 1M token
0 人民币
每次请求最低收费
0.0015 人民币
费用估算
预估总计 0 人民币
平均 / 请求 0 人民币

按标价估算,启用缓存后通常更便宜。

支持的 Endpoint
https://api.xah.io/v1/embeddings
方法 POST · application/json
认证 Bearer token (API key)
压测负载 🟢 Enterprise 峰值 65/s · 持续 43.2/s
p95 延迟 2,000 ms
API 类型 向量

分享

curl 'https://api.xah.io/v1/embeddings' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "text-embedding-3-small",
    "input": "The quick brown fox jumps over the lazy dog"
}'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/embeddings', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "model": "text-embedding-3-small",
    "input": "The quick brown fox jumps over the lazy dog"
})
});
const data = await res.json();
console.log(data);
import requests

url = 'https://api.xah.io/v1/embeddings'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
}
payload = {
    "model": "text-embedding-3-small",
    "input": "The quick brown fox jumps over the lazy dog"
}

res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
    "model": "text-embedding-3-small",
    "input": "The quick brown fox jumps over the lazy dog"
}
评分与评论
0.0 / 0 条评价
正在加载评价...
联系支持
我们随时为您提供帮助