#1
科大讯飞开放平台
国内直连 🟢 175ms 🎁 官方永久 0 元免费 · 赠送 200万 Token (讯飞云端直连 · 中文语义理解顶尖)
科大讯飞官方永久 0 元免费模型,具备科大讯飞在中文语音与自然语言理解领域的深厚沉淀,适合文字转语音与智能客服。
按在线可用性与最低网络延迟智能排序,支持一键复制厂商专属 Model ID 并直达领 Key。
全量兼容 OpenAI SDK 规范,只需填入自己的 API Key 即可通过 Python 或 cURL 直接发起调用。
from openai import OpenAI
# 1. 替换为对应厂商领取的 API Key 与 Base URL (参见下方厂商雷达表)
client = OpenAI(
api_key="your_api_key_here",
base_url="https://api.siliconflow.cn/v1" # 示例: 硅基流动直连端点
)
response = client.chat.completions.create(
model="lite",
messages=[
{"role": "system", "content": "You are a helpful AI assistant."},
{"role": "user", "content": "Hello! Please introduce yourself briefly."}
],
temperature=0.6,
stream=True
)
for chunk in response:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
curl https://api.siliconflow.cn/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your_api_key_here" \
-d '{
"model": "lite",
"messages": [
{"role": "user", "content": "Hello!"}
],
"temperature": 0.7
}'