---
title: "設定環境"
url: "/docs/tutorials/installation"
canonical_url: "https://docs.litellm.ai/docs/tutorials/installation"
type: "docs"
last_updated: "2026-10-08"
related:
  - "/docs/tutorials/"
  - "/docs/tutorials/first_playground"
---
# 設定環境

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt


讓我們取得設定示範環境所需的必要金鑰。

每個 LLM 提供者都需要 API 金鑰（例如 `OPENAI_API_KEY`）。您可以從 OpenAI、Cohere 和 AI21 取得 API 金鑰，**無需等待名單**。

讓我們為我們的示範取得它們！

**OpenAI**: https://platform.openai.com/account/api-keys  
**Cohere**: [https://dashboard.cohere.com/welcome/login?redirect_uri=%2Fapi-keys](https://dashboard.cohere.com/welcome/login?redirect_uri=%2Fapi-keys)（不需要信用卡）  
**AI21**: [https://studio.ai21.com/account/api-key](https://studio.ai21.com/account/api-key)（不需要信用卡）

## Related pages

- [概覽](https://docs.litellm.ai/docs/tutorials/index.md)
- [建立您的第一個 LLM playground](https://docs.litellm.ai/docs/tutorials/first_playground.md)
