User agreement
Document information
| Item | Content |
|---|---|
| Document name | User service agreement |
| Last revised | October 23, 2026 |
| Effective date | The platform's public launch |
| Official website | https://code4ai.top/docs/en/policies/user-agreement |
| Applies to | All users who register, sign in or use the platform's APIs and related services |
Summary
This platform provides API relay and aggregation services based on major artificial intelligence models. By using the service, you undertake to use model capabilities lawfully and compliantly. Using them to generate or distribute unlawful sensitive information, particularly prohibited images and videos, is strictly forbidden. You must protect your API Keys and understand that prepaid balances are not refundable without cause.
1. Confirmation and acceptance
By registering, signing in or using any application programming interface (API) or related service provided by this platform, you are deemed to have fully read, understood and agreed to all terms of this User agreement.
2. Content generation and compliance
As an API aggregation platform, we require all users of text, image and video generation models to strictly comply with the laws and regulations of their own jurisdiction and the platform's place of operation.
2.1 General content restrictions
2.2 Specific restrictions on image and video generation
For multimodal models provided by the platform, including image and video generation models, you must follow these extremely strict compliance requirements:
- No deepfakes — Generating realistic false images or videos of specific real people, including public figures, national leaders and private individuals, without authorization is strictly prohibited, as is using face replacement for fraud.
- No child exploitation or pornographic content — We have zero tolerance for child sexual abuse material (CSAM) and all pornographic or obscene visual content.
2.3 Handling violations
If our automated risk controls or manual spot checks identify requests involving the violations above, we may, without prior notice:
- Immediately permanently suspend your account;
- Forfeit the entire balance, without a refund;
- Provide relevant logs to competent law enforcement authorities as required by law;
- Reserve the right to pursue further civil or criminal liability.
3. Account security and Key management
You must register using email or trusted third-party authorization. After registration, you obtain API Keys in the console to call the service.
A Key is your unique credential
An API Key is the sole credential for your model calls and billing. You must protect it as carefully as a banking password:
- Never hardcode it in public client code, such as browser applications or distributed mobile apps;
- Never commit it to public repositories such as GitHub, GitLab or Gitee;
- Never expose it in plain text in group chats, forums or screenshots.
Associated responsibility
You bear responsibility for all credit consumption, calls and legal consequences arising from API Keys issued under your account.
If a Key may have leaked, immediately invalidate it in the console and generate a replacement. The platform does not reimburse credit losses caused by leaked Keys.
4. Billing and refunds
The platform provides services through prepayment combined with usage-based billing.
4.1 Billing rules
Your balance is deducted in real time after each successful request. The charge for each request depends on:
- The calculation multiplier assigned to the model;
- The input and output token usage;
- Or the number of generated images or videos.
You can view current rates in the console's model marketplace.
4.2 Refund policy
You may contact us to discuss a refund only in the following exceptional circumstances:
- A major platform system disaster causes continuous service unavailability for more than 72 hours;
- A clear technical error in the payment gateway causes duplicate charges.
All other requests, including accidental top-ups, dissatisfaction with model output, upstream interface changes, incompatible third-party clients and user mistakes, fall outside the refund scope.
5. Data privacy and logs
We value and protect your data privacy. As a relay acceleration platform, we handle data as follows:
5.1 Stateless forwarding without content storage
Your requests, including prompts and context, and upstream model responses, including generated text and images, are forwarded at high speed only in server memory. We never persist your business data in the platform database.
5.2 Request-log retention
For accurate billing, prevention of high-frequency abuse and troubleshooting, we record necessary request metadata:
- Request timestamp
- IP address
- Model name
- Computing credits consumed
- Status code
This metadata is normally retained for 90 days and then automatically removed on a rolling basis.
5.3 Cooperation with legal investigations
Although we do not retain generated content itself, if we receive a legally binding police investigation order or court subpoena, we will lawfully provide the registration information and call logs of users suspected of violations.
See the Privacy policy for complete data-handling rules.
6. Service availability and regions
6.1 User responsibility for access and compliance
Because upstream model providers such as OpenAI, Anthropic and Google exclude mainland China from supported regions, and mainland China strictly regulates overseas generative AI services, users must independently assess and bear the following risks and obligations:
- Local access compliance — If you use the service from a region restricted by Code4AI's upstream providers or your country's laws, you alone bear all legal, administrative and compliance consequences. You must assess the legality of your access tools and their compliance with local rules, and bear full responsibility.
- Cross-border data compliance — If you send personal information or important data to overseas models through this service, you must fulfill obligations under the Personal Information Protection Law, Data Security Law and other applicable rules, including transfer assessments, individual consent and cross-border transfer filings.
- Generated-content registration — If you provide outputs obtained through this service to the public in mainland China, you must complete algorithm or foundation-model registration and security assessments under the Interim Measures for the Management of Generative AI Services and other applicable rules.
See Supported countries and regions for the detailed regional policy.
7. Disclaimers
The platform is an aggregation layer built on APIs from third-party underlying model providers such as OpenAI, Anthropic and Google. You understand and agree that:
7.1 Service is provided as is
We are not liable for interface failures or delays caused by upstream policy changes, network blocks, underlying failures, model retirement or rate-limit changes. These events constitute force majeure.
7.2 No guarantee of output objectivity
AI-generated content is probabilistic and unpredictable. We do not guarantee its:
- Accuracy
- Truthfulness
- Completeness
- Objectivity
- Timeliness
7.3 Full responsibility for user conduct
The platform provides only technical relay capabilities and assumes no responsibility for the consequences of users' conduct, including:
- Unlawful or noncompliant use of generated content
- Disputes arising from commercial use of generated content
- Losses caused by leaked Keys or stolen accounts
- Local legal risks arising from network access or proxy tools
- Credit consumption or data loss caused by operating mistakes
- Indirect losses due to compatibility issues with third-party clients such as Claude Code, Codex or Cline
- Losses caused by incorrect decisions based on model output
7.4 Force majeure
The platform assumes no liability for interruptions or degraded performance caused by factors beyond its reasonable control, including government regulatory changes, upstream policies, internet infrastructure, natural disasters, war or strikes.
8. Termination
8.1 Termination by the user
You may stop calling the platform's APIs and close your account at any time. After closure, all registration information will be permanently erased and cannot be recovered, except transaction records that laws or regulations require us to retain.
8.2 Termination by the platform
If you violate Section 2, Content generation and compliance, Section 3, Account security, or use the APIs for malicious attacks, scraping and resale or similar conduct, we reserve the right to unilaterally terminate service, permanently lock the account, forfeit its balance and refuse refunds, without liability for breach.
9. Agreement revisions
We may revise this agreement as our business and applicable rules evolve. For material changes, we will publish a prominent console announcement or notify you by email. Continued use after the updated terms take effect constitutes acceptance.