---
title: "1ZheAI Documentation"
description: "Entry points for model API, ready-to-use accounts, and subscription top-up services, including purchase notes, order, and after-sales rules."
headingIds: {"Model API Integration":"section-1","What Do You Want to Do":"section-2","Reference and Support":"section-3","Most Common Questions Before Use":"section-4","Developer Quick Reference":"section-5"}
---

<aside className="docs-publication" data-pagefind-ignore>

Documentation maintained by [1ZheAI](https://1zheai.com/en/editorial/#publisher). [Sources and corrections](https://1zheai.com/en/editorial/).

Found an error? [Contact support](mailto:support@1zheai.com) with the page address and a description. Do not send API keys or account credentials.

</aside>
Start with what you need: connect a model API, buy an AI account, or activate a subscription on an existing account.

<CardGroup cols={2}>
 <Card title="Buy a ready-to-use account" href="/en/docs/account-guide/">Confirm the platform, subscription tier, delivered content, and first-login notes.</Card>
 <Card title="Activate a subscription for your own account" href="/en/docs/subscription-guide/">Check account conditions, required materials, and the activation process.</Card>
 <Card title="Redeem a gift card" href="/en/docs/gift-card-guide/">Confirm region, validity period, redemption method, and applicable accounts.</Card>
 <Card title="Orders & after-sales" href="/en/docs/store-rules/">Understand cancellation, delivery issues, bans, and refund rules.</Card>
</CardGroup>

## Model API Integration

1折AI provides Claude and OpenAI / GPT APIs, supporting Anthropic Messages, OpenAI Responses, and Chat Completions. Common endpoints include Anthropic's native `/v1/messages` and OpenAI-compatible `/v1/chat/completions`. The code and tools you already have generally only need two changes: the Base URL and the API key.

```text
Anthropic Base URL   https://1zheai.com
OpenAI Base URL      https://1zheai.com/v1
API Key    sk-...（在控制台创建）
```

Claude input and output are billed at each model's discounted rate; cache reads and cache writes are billed at the official original price with no discount. Prices and billing units for GPT, MiMo, and image generation models are listed in [Models and Pricing](https://1zheai.com/en/pricing/).

<Note>

Claude, GPT, MiMo, and image generation models are live; the full list is in [Supported Models](/en/docs/models/).

</Note>

## What Do You Want to Do

<CardGroup cols={2}>
 <Card title="Connect my tools" href="/en/docs/integrations/">Claude Code, Codex CLI, Cursor, Cline, Cherry Studio, and CC Switch. Check the supported scope first, then configure step by step.</Card>
 <Card title="Build an API app" href="/en/docs/guides/">Start with the Anthropic SDK, OpenAI SDK, or curl, then learn about streaming output.</Card>
 <Card title="Let AI help me integrate" href="/en/docs/ai/">Machine-readable documentation, a page inventory, and copyable AI integration task instructions.</Card>
 <Card title="First-time use" href="/en/docs/quickstart/">Register, create an API key, and complete your first request.</Card>
</CardGroup>

## Reference and Support

<CardGroup cols={2}>
 <Card title="API reference" href="/en/docs/api-reference/">Look up endpoints, protocols, examples, and compatibility scope.</Card>
 <Card title="Account & support" href="/en/docs/support/">View costs, call records, and troubleshooting paths.</Card>
</CardGroup>

## Most Common Questions Before Use

<CardGroup cols={2}>
 <Card title="Verify model and usage" href="/en/docs/verify-model/">

    Check returned fields and usage; these checks alone cannot prove the model's origin.
  </Card>
 <Card title="Prompt Caching" href="/en/docs/prompt-caching/">

    How to enable caching, how to see hit rates, and how much cheaper hits are.
  </Card>
 <Card title="Error codes & troubleshooting" href="/en/docs/troubleshooting/">

    What 401, 404, 429, and 5xx each mean.
  </Card>
 <Card title="Top-ups, refunds & invoices" href="/en/docs/billing/">

    Payment methods, 7-day refund, and invoice rules.
  </Card>
</CardGroup>

## Developer Quick Reference

| Your Task | View Directly |
| --- | --- |
| Writing code for the first time | [Complete runnable examples](/en/docs/code-examples/) |
| Switching from another platform | [Migration guide](/en/docs/migration/) |
| Looking up models and protocols | [Model lookup](/en/docs/api-models/) · [API reference](/en/docs/api-reference/) |
| Handling timeouts and rate limits | [Timeouts and retries](/en/docs/retries/) |
| Finding common questions | [Integration FAQ](/en/docs/faq/) |
