# Zhipu AI (智谱) (/docs/providers/zhipu)


Overview [#overview]

[Zhipu AI](https://open.bigmodel.cn) (智谱AI) is one of China's leading AI companies, specializing in large language models and multimodal AI technologies. As a spin-off from Tsinghua University, Zhipu AI developed the GLM (General Language Model) series.

**Official Website:** [https://open.bigmodel.cn](https://open.bigmodel.cn)
&#x2A;*API Documentation:** [https://open.bigmodel.cn/dev/api](https://open.bigmodel.cn/dev/api)

Key Features [#key-features]

* **Chinese Optimization** — Specifically optimized for Chinese language
* **Bilingual Support** — Strong Chinese-English capabilities
* **Multimodal** — Vision, image generation, video generation
* **Long Context** — Large context windows for document analysis
* **Thinking Mode** — Extended reasoning for complex problems

Usage Example [#usage-example]

<Tabs items="[&#x22;Python&#x22;, &#x22;JavaScript&#x22;, &#x22;cURL&#x22;]">
  <Tab value="Python">
    ```python
    from openai import OpenAI

    client = OpenAI(
        api_key="YOUR_API_KEY",
        base_url="https://api.yuhuanstudio.com/v1"
    )

    response = client.chat.completions.create(
        model="model-id",
        messages=[
            {"role": "user", "content": "你好，请介绍一下智谱AI"}
        ]
    )

    print(response.choices[0].message.content)
    ```
  </Tab>

  <Tab value="JavaScript">
    ```javascript
    import OpenAI from "openai";

    const client = new OpenAI({
      apiKey: "YOUR_API_KEY",
      baseURL: "https://api.yuhuanstudio.com/v1",
    });

    const response = await client.chat.completions.create({
      model: "model-id",
      messages: [{ role: "user", content: "你好，请介绍一下智谱AI" }],
    });

    console.log(response.choices[0].message.content);
    ```
  </Tab>

  <Tab value="cURL">
    ```bash
    curl https://api.yuhuanstudio.com/v1/chat/completions \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{
        "model": "model-id",
        "messages": [{"role": "user", "content": "你好，请介绍一下智谱AI"}]
      }'
    ```
  </Tab>
</Tabs>

Available Models [#available-models]

Use the [Models API](/docs/models-api) to query available models:

```bash
curl https://api.yuhuanstudio.com/v1/models?provider=zhipu \
  -H "Authorization: Bearer YOUR_API_KEY"
```

<Callout type="info">
  Models and pricing are synced automatically from Zhipu AI. Check the dashboard for current availability and rates.
</Callout>

Official Resources [#official-resources]

* [Zhipu AI Website](https://open.bigmodel.cn)
* [API Documentation](https://open.bigmodel.cn/dev/api)
* [Pricing](https://open.bigmodel.cn/pricing)
