---
read_when:
    - คุณต้องการใช้ Synthetic เป็นผู้ให้บริการโมเดล
    - คุณต้องการการตั้งค่า Synthetic API key หรือ base URL
summary: ใช้ API แบบเข้ากันได้กับ Anthropic ของ Synthetic ใน OpenClaw
title: Synthetic
x-i18n:
    generated_at: "2026-04-24T09:30:03Z"
    model: gpt-5.4
    provider: openai
    source_hash: 81a48573782d46f0b018d19ab607729b236c241e57535e4af52eb8c142fee59b
    source_path: providers/synthetic.md
    workflow: 15
---

[Synthetic](https://synthetic.new) เปิดเผยปลายทางที่เข้ากันได้กับ Anthropic
OpenClaw ลงทะเบียนมันเป็น provider `synthetic` และใช้ Anthropic
Messages API

| คุณสมบัติ | ค่า |
| -------- | ------------------------------------- |
| Provider | `synthetic` |
| Auth | `SYNTHETIC_API_KEY` |
| API | Anthropic Messages |
| Base URL | `https://api.synthetic.new/anthropic` |

## เริ่มต้นใช้งาน

<Steps>
  <Step title="รับ API key">
    รับ `SYNTHETIC_API_KEY` จากบัญชี Synthetic ของคุณ หรือให้
    onboarding wizard ถามคุณก็ได้
  </Step>
  <Step title="รันการเริ่มต้นใช้งาน">
    ```bash
    openclaw onboard --auth-choice synthetic-api-key
    ```
  </Step>
  <Step title="ตรวจสอบโมเดลเริ่มต้น">
    หลัง onboarding โมเดลเริ่มต้นจะถูกตั้งเป็น:
    ```text
    synthetic/hf:MiniMaxAI/MiniMax-M2.5
    ```
  </Step>
</Steps>

<Warning>
ไคลเอนต์ Anthropic ของ OpenClaw จะต่อท้าย `/v1` ให้ base URL โดยอัตโนมัติ ดังนั้นให้ใช้
`https://api.synthetic.new/anthropic` (ไม่ใช่ `/anthropic/v1`) หาก Synthetic
เปลี่ยน base URL ให้ override `models.providers.synthetic.baseUrl`
</Warning>

## ตัวอย่าง Config

```json5
{
  env: { SYNTHETIC_API_KEY: "sk-..." },
  agents: {
    defaults: {
      model: { primary: "synthetic/hf:MiniMaxAI/MiniMax-M2.5" },
      models: { "synthetic/hf:MiniMaxAI/MiniMax-M2.5": { alias: "MiniMax M2.5" } },
    },
  },
  models: {
    mode: "merge",
    providers: {
      synthetic: {
        baseUrl: "https://api.synthetic.new/anthropic",
        apiKey: "${SYNTHETIC_API_KEY}",
        api: "anthropic-messages",
        models: [
          {
            id: "hf:MiniMaxAI/MiniMax-M2.5",
            name: "MiniMax M2.5",
            reasoning: false,
            input: ["text"],
            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
            contextWindow: 192000,
            maxTokens: 65536,
          },
        ],
      },
    },
  },
}
```

## แค็ตตาล็อกที่มาพร้อมระบบ

โมเดล Synthetic ทั้งหมดใช้ cost `0` (input/output/cache)

| Model ID | Context window | Max tokens | Reasoning | อินพุต |
| ------------------------------------------------------ | -------------- | ---------- | --------- | ------------ |
| `hf:MiniMaxAI/MiniMax-M2.5` | 192,000 | 65,536 | no | text |
| `hf:moonshotai/Kimi-K2-Thinking` | 256,000 | 8,192 | yes | text |
| `hf:zai-org/GLM-4.7` | 198,000 | 128,000 | no | text |
| `hf:deepseek-ai/DeepSeek-R1-0528` | 128,000 | 8,192 | no | text |
| `hf:deepseek-ai/DeepSeek-V3-0324` | 128,000 | 8,192 | no | text |
| `hf:deepseek-ai/DeepSeek-V3.1` | 128,000 | 8,192 | no | text |
| `hf:deepseek-ai/DeepSeek-V3.1-Terminus` | 128,000 | 8,192 | no | text |
| `hf:deepseek-ai/DeepSeek-V3.2` | 159,000 | 8,192 | no | text |
| `hf:meta-llama/Llama-3.3-70B-Instruct` | 128,000 | 8,192 | no | text |
| `hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 524,000 | 8,192 | no | text |
| `hf:moonshotai/Kimi-K2-Instruct-0905` | 256,000 | 8,192 | no | text |
| `hf:moonshotai/Kimi-K2.5` | 256,000 | 8,192 | yes | text + image |
| `hf:openai/gpt-oss-120b` | 128,000 | 8,192 | no | text |
| `hf:Qwen/Qwen3-235B-A22B-Instruct-2507` | 256,000 | 8,192 | no | text |
| `hf:Qwen/Qwen3-Coder-480B-A35B-Instruct` | 256,000 | 8,192 | no | text |
| `hf:Qwen/Qwen3-VL-235B-A22B-Instruct` | 250,000 | 8,192 | no | text + image |
| `hf:zai-org/GLM-4.5` | 128,000 | 128,000 | no | text |
| `hf:zai-org/GLM-4.6` | 198,000 | 128,000 | no | text |
| `hf:zai-org/GLM-5` | 256,000 | 128,000 | yes | text + image |
| `hf:deepseek-ai/DeepSeek-V3` | 128,000 | 8,192 | no | text |
| `hf:Qwen/Qwen3-235B-A22B-Thinking-2507` | 256,000 | 8,192 | yes | text |

<Tip>
model refs ใช้รูปแบบ `synthetic/<modelId>` ใช้
`openclaw models list --provider synthetic` เพื่อดูโมเดลทั้งหมดที่ใช้ได้ใน
บัญชีของคุณ
</Tip>

<AccordionGroup>
  <Accordion title="Model allowlist">
    หากคุณเปิดใช้ model allowlist (`agents.defaults.models`) ให้เพิ่มทุก
    โมเดล Synthetic ที่คุณวางแผนจะใช้ โมเดลที่ไม่อยู่ใน allowlist จะถูกซ่อน
    จากเอเจนต์
  </Accordion>

  <Accordion title="Base URL override">
    หาก Synthetic เปลี่ยน API endpoint ให้ override base URL ใน config ของคุณ:

    ```json5
    {
      models: {
        providers: {
          synthetic: {
            baseUrl: "https://new-api.synthetic.new/anthropic",
          },
        },
      },
    }
    ```

    โปรดจำไว้ว่า OpenClaw จะต่อท้าย `/v1` ให้อัตโนมัติ

  </Accordion>
</AccordionGroup>

## ที่เกี่ยวข้อง

<CardGroup cols={2}>
  <Card title="การเลือกโมเดล" href="/th/concepts/model-providers" icon="layers">
    กฎของ provider, model refs และลักษณะการทำงานของ failover
  </Card>
  <Card title="ข้อมูลอ้างอิงการกำหนดค่า" href="/th/gateway/configuration-reference" icon="gear">
    schema ของ config แบบเต็ม รวมถึงการตั้งค่า provider
  </Card>
  <Card title="Synthetic" href="https://synthetic.new" icon="arrow-up-right-from-square">
    แดชบอร์ด Synthetic และเอกสาร API
  </Card>
</CardGroup>
