Skip to main content

Make Your First API Call

Make sure you have obtained an API Key and configured your environment variables, then choose a method to get started.

Install the SDK

pip install openai

Make a call

from openai import OpenAI

client = OpenAI(
api_key="your-api-key", # or use the environment variable TURING_API_KEY
base_url="https://live-turing.cn.llm.tcljd.com/api/v1",
)

response = client.chat.completions.create(
model="turing/gpt-5.4-mini",
messages=[
{"role": "user", "content": "Hello, please introduce yourself in one sentence."}
],
)

print(response.choices[0].message.content)
Model Selection

The example uses turing/gpt-5.4-mini (best value for cost). You can browse the model list to select other models by provider, such as OpenAI, Claude, or Gemini.

Next Steps