> For the complete documentation index, see [llms.txt](https://docs.tinyapi.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tinyapi.org/index.md).

# CC-Switch ใช้งาน

**CC-Switch ใช้งาน** · 2026/6/8 · อ่านไม่เกิน 2 นาที

หน้านี้โชว์เฉพาะข้อมูลหลักที่ใช้กับ CC-Switch: URL เว็บไซต์, API Endpoint, API Key และชื่อโมเดล

## ตั้งค่า URL หลัก

ช่องที่ต้องใส่มีแค่ 2 ค่าในระดับบนสุดพอ คือ **Website URL** และ **API Endpoint**

**Website URL**

```
https://tinyapi.org
```

**API Endpoint**

```
https://api.tinyapi.org
```

ถ้าเครื่องมือรองรับ ให้ใส่แค่ `https://api.tinyapi.org` แล้วให้ระบบต่อ path ที่ต้องใช้เอง อย่าเติม `/v1` หรือ `/v1/chat/completions` ลงไปในช่องหลักถ้าเขาไม่ได้ร้องขอ

## วาง API Key และเลือกโมเดล

* คัดลอก API Key จากหน้า `/keys`
* เลือกชื่อโมเดลจากหน้า `/pricing` หรือ All AI Model
* กด Fetch Models เพื่อดึงรายชื่อโมเดลที่คีย์นี้ใช้งานได้
* เลือกโมเดลที่ต้องการ แล้วกด Save

>

ถ้าคุณอยากให้ระบบจำแนก path เอง ให้เก็บเฉพาะ Base URL กับ API Key ไว้ก่อน แล้วค่อยให้ เครื่องมือเลือก `/v1/messages` หรือ `/v1/chat/completions` ตามชนิดโมเดลเอง

## บันทึกและทดสอบ

* กด Save หรือ Apply Changes
* เปิดเครื่องมือใหม่อีกครั้ง
* ลองส่งข้อความสั้น ๆ เพื่อตรวจว่าเชื่อมต่อได้จริง


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tinyapi.org/index.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
