China's Generative AI Rules for Developers: Filing and Compliance

Blog / AI concepts

China's Generative AI Rules for Developers: Filing and Compliance

China's Interim Measures for the Administration of Generative Artificial Intelligence Services (生成式人工智能服务管理暂行办法) mainly govern providers that offer generative AI services to the public within the People's Republic of China. If you only use AI to help write code, on your own or inside your company, you are usually outside the core scope of these requirements. Once you turn a large-model feature into a product and open it to an unspecified group of users in China, you need to look carefully at filing, security assessment, and content responsibility.

This article is a summary based only on the publicly available legal text. It is not legal advice. For the exact provisions, supporting documents, and the latest guidance, rely on the originals published by China's national internet regulator (the Cyberspace Administration of China, CAC) and the Chinese government portal (gov.cn). If this affects your company's business, have your legal team or a lawyer confirm.

Who issued the Measures, and what do they cover?

The Measures were issued jointly by the CAC and several other departments and took effect on August 15, 2023. They apply to services that use generative AI technology to provide text, image, audio, video, and similar content to the public within China. In other words, they target what is usually called the service provider.

One provision matters a great deal to developers: when industry organizations, enterprises, educational and research institutions, public cultural institutions, professional bodies, and similar parties develop or apply generative AI technology but do not provide services to the public within China, the relevant provisions do not apply to them. This is why "internal use" and "offering to the public" have to be considered separately.

How do the three common scenarios compare?

ScenarioIs it "providing services to the public in China"?What developers should watch
An individual or team uses AI internally for development and documentationGenerally noData and confidentiality, vendor terms, internal company policy
You build a product and open it to unspecified users in ChinaYesUse a model service that has completed filing, or complete the relevant procedures yourself; content safety, labeling, complaint handling
Your product calls a foreign model API behind the scenesDepends on whether the product is aimed at the Chinese publicRegional restrictions and terms of the foreign service, cross-border data, domestic compliance obligations

Scenario 1: Does internal use need filing?

Under the Measures' scope, internal R&D and use that is not offered to the public in China is not covered by the relevant provisions. But "not covered" does not mean "no requirements." Your company's confidentiality rules, personal information protection, and whether customer data may be sent to a third party all still apply. For procurement, see What to consider when your company buys AI tools: compliance, data, and accounting and How to use ChatGPT compliantly in a company: procurement, data, and employee policy.

Scenario 2: You ship a product to the public. What do you have to do?

This is the scenario the Measures actually regulate. Based on the public text, providers need to pay attention to the following:

  • Content responsibility: generated content must comply with laws and regulations, and the provider bears the responsibility of a producer of online information content.
  • Training data and personal information: use data from lawful sources; where personal information is involved, obtain consent or meet a legally recognized exception.
  • Labeling: label generated content such as images and video as required. The Measures for Labeling AI-Generated and Synthetic Content (人工智能生成合成内容标识办法) have been issued separately; check the original for the effective date and specific requirements.
  • Security assessment and algorithm filing: services with public-opinion attributes or social mobilization capability must carry out a security assessment as required and complete procedures such as algorithm filing.
  • Complaints and reports: set up a channel to receive them and handle user feedback promptly.

In practice "filing" (备案) covers several different things that are easy to mix up: algorithm filing, filing or registration of the generative AI service itself, and website ICP filing (the license a site needs to be hosted and served in mainland China). They are separate matters with different authorities and requirements. Which one applies to you depends on your product form and whether you supply the model yourself. Follow the guidance published by the internet regulator.

Scenario 3: What if you call a foreign model?

The Measures contain provisions for dealing with foreign generative AI services offered into China that do not comply with the rules. For developers, a reasonable reading is:

  1. Foreign model services have their own supported regions and terms of use. Follow them, and do not use the service by circumventing its restrictions.
  2. If your product is aimed at the Chinese public, you are still the provider. You are responsible for content safety, labeling, personal information, and so on, and the fact that the underlying model is foreign does not relieve you of that.
  3. Many products aimed at the Chinese public choose a domestic model service that has completed the relevant procedures as their underlying model. That is a business decision; whether it is required, confirm with your legal team.

cdnping model monitoring only shows availability, latency, and similar data for each model across public inference providers. It makes no compliance judgment, and regional availability is determined by each service's official statements.

A self-check checklist for developers

  1. Who are my product's users: internal employees only, specific enterprise customers, or the unspecified public in China?
  2. Does the product directly show or deliver model-generated text, images, audio, or video to users?
  3. Is the underlying model in-house, a domestic third party, or a foreign API? Do that provider's terms allow my use?
  4. Do I collect user input? Might it contain personal information? Are my privacy policy and consent language clear?
  5. Are generated images, video, and similar content labeled as required?
  6. Do I have channels for complaints, reports, and content takedown?
  7. Do I need algorithm filing or a security assessment? Check the regulator's public guidance rather than going from memory.
  8. If I am running a website or acceleration inside mainland China, is ICP filing complete?

For any item that still raises doubts after the self-check, write it up as a list of questions for your legal team. That works better than guessing.

Will this affect costs and reimbursement?

Different compliance paths mean different purchasing entities, settlement currencies, and invoices. Overseas subscriptions and RMB-settled services differ in the paperwork you get; see Can you expense an AI subscription? Overseas subscriptions vs. RMB services. For team use, also see How to choose a team AI subscription: per-seat plans, shared quota, and API gateways.

Want to get a dev environment running first?

If you just want to use tools like Claude Code or Codex locally and are not offering a service to the public, a common obstacle is the account and an overseas credit card. AGI Plan is a multi-provider LLM aggregation gateway with monthly subscriptions, payment in RMB, and no overseas credit card required; to keep using Claude Code, Codex, OpenCode, and similar tools, you only change one endpoint address. AGI Plan is a commercial partner of cdnping, and the site itself states that it is not an officially authorized channel. Some models are marked "overseas only"; for the models and regions actually available, see agiplan.dev/models. For getting-started steps, see agiplan.dev/startup.

This only solves tool access for development. It does not replace the compliance assessment above. If you are building a product for the Chinese public, you still need to go through Scenario 2 item by item.

Next steps

Related articles

Keep reading