Skip to main content

Get API Key

Steps

  1. Log in to Turing Portal
  2. Click your avatar in the top-right corner and select API Key Management
  3. Click Create API Key
  4. 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:

RegionAPI Endpoint
China region (default)https://live-turing.cn.llm.tcljd.com/api/v1
Europe regionhttps://live-turing.eu.llm.tcljd.com/api/v1
North America regionhttps://live-turing.us.llm.tcljd.com/api/v1
Asia Pacific (Singapore) regionhttps://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.