Get API Key
Steps
- Log in to Turing Portal
- Click your avatar in the top-right corner and select API Key Management
- Click Create API Key
- Copy and save your API Key in a secure location
Important
Your API Key is only displayed once upon creation. Save it immediately. If lost, you will need to create a new one.
Configure Environment Variables
It is recommended to manage your API Key using environment variables rather than hard-coding it in your source code:
# China region (default)
export TURING_API_BASE=https://live-turing.cn.llm.tcljd.com/api/v1
export TURING_API_KEY=your-api-key
Other regional endpoints:
| Region | API Endpoint |
|---|---|
| China region (default) | https://live-turing.cn.llm.tcljd.com/api/v1 |
| Europe region | https://live-turing.eu.llm.tcljd.com/api/v1 |
| North America region | https://live-turing.us.llm.tcljd.com/api/v1 |
| Asia Pacific (Singapore) region | https://live-turing.sg.llm.tcljd.com/api/v1 |
tip
For a more complete environment configuration guide covering Python dotenv, Docker, Docker Compose, and production environments, see Environment Configuration.
Next Steps
Once your API Key is ready, proceed to Make Your First Call.