<!-- Canonical URL: https://ask.atlascloud.ai/zh/docs/quickstart -->

# 快速入门：使用 Atlas Cloud 进行兼容 OpenAI 的推理

> 只需更改基础 URL 和 API 密钥，即可将您现有的 OpenAI SDK 指向 Atlas Cloud，无需重写任何代码。

---

Atlas Cloud 提供了一个**兼容 OpenAI** 的单一端点，因此任何现有的 OpenAI API 客户端或框架无需任何修改即可直接使用。

## 1. 设置您的基础 URL 和密钥

```bash
export OPENAI_BASE_URL="https://api.atlascloud.ai/v1"
export OPENAI_API_KEY="sk-atlas-..."
```

## 2. 调用任何受支持的模型

```python
from openai import OpenAI

client = OpenAI()  # 自动读取 OPENAI_BASE_URL 和 OPENAI_API_KEY

resp = client.chat.completions.create(
    model="deepseek-v3",
    messages=[{"role": "user", "content": "Explain serverless inference."}],
)
print(resp.choices[0].message.content)
```

整个集成过程仅此而已。由于传输格式与 OpenAI 完全一致，LangChain、LlamaIndex 和 Vercel AI SDK 等工具均可开箱即用。

## FAQ

### Do I need to change my code to use Atlas Cloud?

No. Atlas Cloud is OpenAI-compatible — set the base URL to https://api.atlascloud.ai/v1 and use your Atlas Cloud API key.

### Which models are available?

Open-source and frontier models including DeepSeek-V3, Llama 3, Qwen, GLM, and Mistral, served through one unified API.
