公测 0 元免费 · 对标 Cursor $20/月,大幅降低开发成本
https://api.longcat.chat/openai 💡 在任何支持 OpenAI API 的客户端(如 NextChat、Cherry Studio、沉浸式翻译等)中,直接填入上方地址作为 Base URL 即可。
longcat-flash-lite longcat-flash-chat longcat-flash-thinking from openai import OpenAI
client = OpenAI(
api_key="your_api_key_here", # 填入申请的 Key
base_url="https://api.longcat.chat/openai"
)
response = client.chat.completions.create(
model="longcat-flash-lite",
messages=[
[object Object]
]
)
print(response.choices[0].message.content)