> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tikway.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 快速开始

> 在几分钟内，发起你的第一次 Tikway API 请求。

## 1. 创建 API Key

访问 [Tikway AI](https://tikway.ai)，点击右上角的 **登录 / 注册**。

完成登录后，进入控制台创建 API Key。请妥善保管你的密钥，不要将其暴露在前端代码、公开仓库或截图中。

## 2. 发起第一个请求

Tikway 使用标准 HTTP 接口。将下方的 `YOUR_API_KEY` 替换为你在控制台创建的密钥，即可调用聊天补全接口。

```bash theme={null}
curl https://api.tikway.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.6-terra",
    "messages": [
      {
        "role": "user",
        "content": "如果人类能和一种动物进行真正的对话，你认为最值得先问哪一种动物？为什么？"
      }
    ]
  }'
```

## 3. 查看响应

请求成功后，接口将返回模型生成的内容。你可以更换 `model` 字段以调用其他模型，并通过 `messages` 传入多轮对话上下文。

<Note>
  请始终在服务端保存和调用 API Key，避免在浏览器、移动端应用或任何公开环境中直接暴露密钥。
</Note>

## 下一步

<CardGroup cols={2}>
  <Card title="请求协议" icon="code" href="/zh/request-protocol/open-ai">
    选择 OpenAI、Anthropic 或 Gemini 的请求格式。
  </Card>

  <Card title="错误与重试" icon="circle-exclamation" href="/zh/develop-guide/status-code-response">
    了解状态码、限流和流式错误的处理方法。
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.