OpenAI SDK(Chat)
POST /v1/chat/completions
from openai import OpenAI
client = OpenAI(
base_url="https://api.lingyuncx.com/v1",
api_key="<YOUR_API_KEY>"
)
response = client.chat.completions.create(
model="<model id from /v1/models>",
messages=[{"role": "user", "content": "Introduce the Ling.AI API Gateway in three sentences."}],
stream=False
)