# Z.AI (/docs/providers/zai)


Overview [#overview]

Z.AI is an AI provider specializing in professional-grade models designed for enterprise and business applications with emphasis on reliability and accuracy.

**Official Website:** [https://docs.z.ai](https://docs.z.ai)

Key Features [#key-features]

* **Professional-Grade** — Business-appropriate responses
* **Enterprise Focus** — Reliability and consistency
* **Function Calling** — Tool use support
* **Structured Output** — JSON and structured responses

Usage Example [#usage-example]

```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": "Hello!"}]
)

print(response.choices[0].message.content)
```

Available Models [#available-models]

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

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

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

Official Resources [#official-resources]

* [Z.AI Documentation](https://docs.z.ai)
* [API Reference](https://docs.z.ai/api)
