全部模型 / Google
gemini-3-flash-preview
数据同步于
| 输入 | 缓存读取 | 输出 |
| Standard 默认 | $0.40 | $0.040 | $2.40 |
| Saver | $0.25 | $0.025 | $1.50 |
| Spot | $0.15 | $0.015 | $0.90 |
| Official | $0.50 | $0.050 | $3.00 |
| Google |
| |
| OpenAI Chat Completions |
| |
| |
| |
| Standard · Saver · Spot · Official |
| · |
| 10M in + 1M out | $6.40 |
| 100M in + 20M out | $88.00 |
curl https://api.xhuoapi.ai/v1/chat/completions \
-H "Authorization: Bearer $XHUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemini-3-flash-preview", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://api.xhuoapi.ai/v1", api_key="YOUR_XHUOAPI_KEY")
resp = client.chat.completions.create(
model="gemini-3-flash-preview",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)