# Little Pig Cloud Docs

Little Pig Cloud Server official documentations

## Overview

Little Pig Cloud Server is a premier cloud server provider offering high-performance VPS directly from AWS and GCP's cloud infrastructure. We provide both high-performance VPS, similar to EC2 instances, and regular VPS for individual users, comparable to AWS Lightsail instances.

At Little Pig Cloud Server, we offer flexible payment options, including **USDT, MasterCard, Visa, Apple Pay**, and more. Our user interface is designed for ease of use, allowing you to deploy servers from locations worldwide. This ensures you can choose servers closest to your customers or viewers for optimal performance.

{% embed url="<https://www.youtube.com/watch?v=YI2RYjqV3_4>" %}

## Get Started

We've put together some helpful guides for you to get working with Little Pig Cloud Server quickly and easily.

{% content-ref url="/pages/fP2re7B30vFrLJoptzQ7" %}
[Getting Started with Account Register](/documentations/getting-started/register)
{% endcontent-ref %}

{% content-ref url="/pages/6WfzowmcksOWAlTGQIC6" %}
[Top-Up using USDT](/documentations/billing-and-payments/usdt)
{% endcontent-ref %}

{% content-ref url="/pages/yftco5zN33Q6sBtxR7kS" %}
[Top-Up using Credit Card](/documentations/billing-and-payments/credit-card)
{% endcontent-ref %}

{% content-ref url="/pages/GrIEyB8tKAdGELVBxgpY" %}
[Create Virtual Machine in AWS](/documentations/instance-management/aws-vps)
{% endcontent-ref %}

{% content-ref url="/pages/L4utf49TQPrhs05nslfk" %}
[Create Virtual Machine in GCP](/documentations/instance-management/gcp-vps)
{% endcontent-ref %}

{% content-ref url="/pages/rNr0w9l3GgEfKFFkz6hC" %}
[Get Affordable VPS from Lightsail Packages](/documentations/instance-management/lightsail-vps)
{% endcontent-ref %}

{% content-ref url="/pages/xjdnQpvMT8ax69Ec5pJK" %}
[Data Plans](/documentations/data-plans)
{% endcontent-ref %}

{% content-ref url="/pages/1za96TouICqHPqTsUPAX" %}
[Support](/documentations/support)
{% endcontent-ref %}

{% content-ref url="/pages/XRQabR2lqvkamrYnrOdx" %}
[FAQs](/documentations/faqs)
{% endcontent-ref %}


# What we do

Brief introduction about Little Pig Cloud Server and the benefits provided by them.

## What is Little Pig Tech Limited

[**Little Pig Cloud**](https://console.littlepig.cloud/home) provides enterprise solutions specializing in AI application management, cloud services (AWS, Tencent Cloud, GCP, Alibaba Cloud), and tools like global SMS and email. Our “[Little Pig AI Aggregation Platform](https://chatelite.ai/)” simplifies AI deployment, no technical expertise needed.

We offer secure, flexible, and cost-effective solutions to help businesses achieve digital transformation, reduce costs, and boost productivity. Services include cloud deployment, live streaming optimization, and AI-driven data analytics.

With 24/7 support and payment options like cryptocurrency, credit cards, and Apple Pay, Little Pig Tech helps businesses thrive in the digital age. Contact us today!

{% embed url="<https://www.youtube.com/watch?v=YI2RYjqV3_4>" %}


# Getting Started

Follow the tutorial to create an account on Little Pig Cloud Sever and get started with high performance cloud servers from AWS and GCP.

{% content-ref url="/pages/fP2re7B30vFrLJoptzQ7" %}
[Getting Started with Account Register](/documentations/getting-started/register)
{% endcontent-ref %}

{% content-ref url="/pages/udN7qPWeHFvlpAdHDHDv" %}
[Little Pig Cloud Server Website Overview](/documentations/getting-started/official-website)
{% endcontent-ref %}


# Getting Started with Account Register

## How to Register on the Little Pig Cloud Server

Learn how to register on Little Pig Cloud Server with a few easy steps.

### Step 1

Navigate to the [Little Pig Cloud Server home page](https://www.littlepig.tech/) and click on the “Sign up” button.

<figure><img src="/files/zNl1OZpmTIeOIVj1W9VP" alt=""><figcaption></figcaption></figure>

### Step 2

Enter your username, email, and password. The username and email address must be unique to all users. Choose a strong password for your account.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcocuMt3-hBGIe3kzxIrOyxY_1NQLKZeD0Wf3UvGTgjL6EXqg_HP3DMEFodjFsOJw4MW8s65mwJJyXFIx64siKEqc5PcJ-n_L9ShUkeWYZPP20jaFejTL8E0J95t7MfNxQccuXHF3lDsq-DOy1IYf-LmoH1?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 3

Verify your account by entering the OTP verification code sent to your provided email address.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcs2lQMvzDYq-I1ASdD7UAAMhZ01UuO2d9_lBw6Q3Ci2JTOg-rHeKcw7kedUWHwRGkf79ogpMaG-C_LIqrNzJaG3swCB7nZSAOwVBS7N7QJxhbI7qaEnFyAg5tizsoHwQKggkUOX-yz2-urxxIIny3FuNM?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

Here is what you should look for in your email.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeWfxKwsqufBdaUj2CSaDk-yWQpmKAseqpF1odh9C6j1Qn9kD_xN1Hceak3GF07RzQE-7bhXDQa6gh5ujfla-jHf4x7Uv08Uw7uyBnQzcfTjP2unuy_sfoOyOrA5mTkRul4pnTH_e3Sxdw6GFCE2RwQt7mq?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 4&#x20;

Copy and paste the verification code into the verification form. And you will be greeted with a “Successful Registration” message. Now you can log in to your account using the email address and the password you created.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeJBopfUAZYF5UKP0M77kkP4_hylySRU2bpqLMpw-1uvwIPPGx2mWSbvwd1pbP0H09sHGEdm9inoBrFr4z_chqPjq4wf8yOLEC9oSvIg1mLOy0In7yIATnknj_oeR1fxUtZrbVNSyIljDPInOba59ZyRGDl?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# Little Pig Cloud Server Website Overview

### Instance Management

Instance Management page allows you to view all of your purchased VPS, their states and informations. You can search and filter from the instance lists. You can also create virtual machines from this page and top up account balance.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd1YgWryC9AhM3-LTti2brVn1zH6Lbb7VKWZwKJkNZqwJo0jRclH9l6R3AndgnbP34Bf-r0kSevyb5zYoQYNSDvfwM1GvDCmGyk34q4QVEibWcL712L3e-IUUhm_r4lYI-XRWwR8NObBgHMO6XWc_kswxc?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Data Plan

Data Plan page allows you to monitor all data usage of your instances. You can see the VPS platform, instance name, usage, status, purchase and expiry date. You can purchase more data plans from this page.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf8G1206npq2bSo3IXQTMF3sxKrfwgxQOoeIAd2U9IiWCDqlQfjpWUch2P5zWiZeF9P0K6Nsr_NWu_qi5kBpX75AMj3aj7F0mPgaODWXL6bR9oDtYkQAOaW9VByJmzHsPG9FQ2yhv9nvtDSre0XguVsXBYv?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### My Account Top-up

Account Top-up page allows you to top-up credits to your account via USDT and Credit Card or Debit Card.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdE7_CUqTJ8n8uwnyklMhwBk5QpwC9h4mzRvMRDD_CvOvAbYIzdQ23eDzs4kaHCnB4Kia7AEYjyGF_eOutg3yKsb-F4kmV6IovLjvq_XDy2fKUnUS7kEeVWWTlq4KNz1rtrkQElGTfdq--XjSZAdgmjS6M?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Account Record

The account Record page allows you to see all the top-up records of your credit. You can see the top-up date, top-up amount, and payment method.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfwhUcrefb3wHeugGJnduFCcckMYvhZ_mz9zOTe9_Q4oOBgSScaqsJXL4tdspLKqXFqK8-3YALEbPaOjypsgHRdXDcgmaO5fcEBumSniubY3MKE8uhC-51llJKlwZ1mHpsXXtHMTlSA8ohDSHW5cg0U7I8?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Monthly Statement

The monthly Statement page shows you all your expense record from VPS to Data Plans. You can also filter the purchase history by specific date.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcaypHlBItX3lO2PpLYELxWPUTJfLVkLWWAzVy6JH_usaf-PUtYoooC-22wXcJ15Y4Q8KLXeHf8RT3INipKDBmBzw0O1p9ikxyUxH_K9A5kYipr-9u2TY0VwfoSQihYSXjQmIfHAGPramnJKTeJ2Y9sULHv?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### My Account

My Account page allows you to view your account details and also change the password.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFAeuhvu58FwCXtdqRpXDFafxpxWU11yUFA5HeI67E1L3qdUfJ_wAStxbubwv1pZMCNMMCjhvVI7SYfn4e2UamvlVt2v15IJXYGgBtBiDU25bixF9nx3lD1d3To1rBgD0JI0BMIw1oftQXc-dMCDHIk9DS?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# Account Management

You can find information on password recovery and password change in below pages.

{% content-ref url="/pages/mhiU1KLdLSx8uEHagBxk" %}
[Recover Password](/documentations/account-management/recover-password)
{% endcontent-ref %}

{% content-ref url="/pages/lgMlUUvM32lNJlCSHUWE" %}
[Change Password](/documentations/account-management/change-password)
{% endcontent-ref %}


# Recover Password

Learn how to recover your forgotten password on Little Pig Cloud Server with four easy steps.

### Step 1

Navigate to the Login Page. And click on “Forgot Username/Password”.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdPaKyV8kCZGKxxvFhOeIf26Xtqq8TZ_3f5pa-CfnLX6QMB31NsQjds0jM7P8-KOPPEmr-DOoifjlrcpzERxJsqnmWTrJV3aUKdZYoaoM00u1HPx8P-592EDYJycIcRbTLlnVQFT1bKKf2jncLyX9dXUsAE?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 2&#x20;

Enter your registered email address. Also, provide the new password for your account.&#x20;

{% hint style="info" %}
Your password won't be changed until you verify your email address.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc8YhX5HqiXZ81M1TLq-qQiVD_ko0GGAxRmeJGx-qdrR_THziesXOaOzqdWDJeNAnweER-_pX17zWoiAwiKEcgnnbali1oTrFiktMDY9F0mlN4Wqltpb8vMGw6Z-6Vsbh9i9E_qM33eP_UoJKVzUmQU7OE?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 3&#x20;

Enter the OPT verification code sent to your email address.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcDLgxkMU69blKKf8fopAhrmSSqpBYp1w6Z-i_P4zFE4M5jY5us0M9Vs83-5b22NjlUjEhB35kWJYFIW-FZuy5Z6TY92-lJLkRjyfFqjRnblpYIL6WH2AIdG1bgsDpRD2aSDP40DERpOB4tK9ylHeqfY04g?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

You will receive an email as below.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmxaXf_254vA5a2fYqiKcJ3lAptf7IoaNeJqUjQukp_1ttGF7Gb94z0fhVFIa_RFXK2uXKPXIpHbCkf1pXyjmFYI9qS5N2YYEdGlo2UBK_wSmm1yBVpv6arLUHbflhMtEo9A9ja5TW-qO6YsX_uBwF7MeG?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 4

Enter the verification code and the password will be successfully changed. Now you can[ log in ](https://vps.littlepig.tech/login?_gl=1*1x94jvu*_ga*MTc3ODk3NzU3OS4xNzIwOTIxNjI0*_ga_69B76DWFWT*MTcyMjczMDgzMC4yOC4xLjE3MjI3MzEwMTUuNTYuMC4xNzg0NDkyNDEx*_ga_0ZGWXH0CCP*MTcyMjczMDgzMC4yOC4xLjE3MjI3MzEwODkuMC4wLjA.)to your account using the new password.


# Change Password

Learn how to change your password on Little Pig Cloud Server with three easy steps.

### Step 1&#x20;

[Log in](https://vps.littlepig.tech/login) to your account with your email and password. Navigate to “My Account” from the sidebar. And click on "Change Password."

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcwFYlMKpd3EJt7BydyzKn5DAqEbzwmpkkFwxNfTIE7-porJqdX_ESf7V3IFo9xe5CYM7jVsArDsrNXGgTD7Xl8m_u-d9badZZ_HFnoOeBtVwmOX46hTgBMJZ0Girge_XhpEF4CMA8KRG5Smy-NFbdqbMQB?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 2&#x20;

Enter your current password and new password. Make sure to use a strong and secure password.&#x20;

{% hint style="info" %}
The password length is 8-20 characters long, including uppercase letters, lowercase letters, numbers, and special characters
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdJEavg28fKdSNIqaAabVIrzGPh_NqF-ajNo60GsZKXPFA1SU4FPaiTfy9ldzTP6PKCvCOj82IZrhTatMmKo2gyWJAaifesodGEBs36l_3Zq277z__eHk8mogf1ObJR5j03qBEkvfP3k09V_DmJ2Ankh1K5?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 3

Click on “Confirm” and your password will be successfully changed. You can now [log in](https://www.littlepig.tech/) to your account with your new password.<br>


# Billing and Payments

You will find all payment and balance related information in this section.

{% content-ref url="/pages/6WfzowmcksOWAlTGQIC6" %}
[Top-Up using USDT](/documentations/billing-and-payments/usdt)
{% endcontent-ref %}

{% content-ref url="/pages/yftco5zN33Q6sBtxR7kS" %}
[Top-Up using Credit Card](/documentations/billing-and-payments/credit-card)
{% endcontent-ref %}

{% content-ref url="/pages/otyqPX5rieLTvNEXRQKP" %}
[Billing Info and History](/documentations/billing-and-payments/payment-records)
{% endcontent-ref %}


# Top-Up using USDT

Learn how to top-up account balance on Little Pig Cloud Server using USDT.

### Step 1&#x20;

Log in to your [Little Pig Cloud Server account](https://console.littlepig.cloud/login). Once logged in you will be redirected to the [system homepage](https://console.littlepig.cloud/home). Then click on "Top-up" button and procced to the [Account Top-up](https://console.littlepig.cloud/account/topup) Page.

<figure><img src="/files/GH9HeJE9kfbXDxT6zrQS" alt=""><figcaption></figcaption></figure>

### Step 2&#x20;

Enter the top-up amount and select the payment method to “USDT”. And click on “Next”.

<figure><img src="/files/dM3N0UT6Q6fMCzqgFtPX" alt=""><figcaption></figcaption></figure>

### Step 3&#x20;

Follow the instructions to transfer USDT to the provided wallet address.&#x20;

{% hint style="info" %}
If you don't get redirected to the payment page. Please make sure that your browser is not blocking the redirect or pop up.
{% endhint %}

{% hint style="danger" %}
The payment is completed within the time and the system will credit the account immediately. Please do not pay repeatedly! ! !
{% endhint %}

{% hint style="warning" %}
Please follow the payment method specified in the payment page.

Payment method:

1. Open the wallet and scan the code or copy the "withdrawal address" and paste it into the wallet .&#x20;
2. Please be sure to choose " TRC20 " for payment .
3. Enter the amount of USDT to recharge **(please deduct the handling fee yourself)**
4. Confirm the transferred " The actual amount received is equal to the recharge amount.
5. After the transfer, click the "I have paid" button to complete the recharge, and please wait patiently for the points to be uploaded.
   {% endhint %}

<figure><img src="/files/zbyfpEkPmyLUgJixUeNt" alt=""><figcaption></figcaption></figure>

You can either scan the QR code from your wallet or enter the address manually by copying it. Make sure to choose the right network (TRC20 or the one shown in your payment page).

<div data-full-width="false"><figure><img src="/files/O1OOn87ilyrDHS93Fgyf" alt="" width="248"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Note: Please make sure to add the network fee with the payment amount.&#x20;
{% endhint %}

### Step 4

Follow up the withdrawal with confirmation depending on the wallet you are using. Now wait for the USDT to transfer, and get a confirmation in your wallet.

{% hint style="info" %}
Before you contact support for payment issue. Make sure you get a confirmation from your payment provider.
{% endhint %}

<figure><img src="/files/w4O335lBR7I34cIMnmZU" alt="" width="247"><figcaption></figcaption></figure>

### Step 5

Once you get the confirmation in your wallet. Navigate back to your “Little Pig Cloud Server” page, and click on “I have paid”.&#x20;

<figure><img src="/files/kbCFUI2FA0Yul1XZcBun" alt=""><figcaption></figcaption></figure>

### Step 6&#x20;

You should see the entry for your top-up in “Top-up Record”. Remember it might take some time to credit the money. Do not pay repeatedly!!!

<figure><img src="/files/p3HwDAZ0oeGbgJw5XNzy" alt=""><figcaption></figcaption></figure>


# Top-Up using Credit Card

Learn how to top-up account balance on Little Pig Cloud Server using Credit Card.

## Method 1

### Step 1&#x20;

Log in to your [Little Pig Cloud Server account](https://console.littlepig.cloud/login). Once logged in you will be redirected to the [system homepage](https://console.littlepig.cloud/home). Then click on "Top-up" button and procced to the [Account Top-up](https://console.littlepig.cloud/account/topup) Page.

### Step 2

&#x20;Enter the top-up amount, select the payment method as “Credit Card or Debit Card”, and click “Next”.

<figure><img src="/files/pfaSxg2LBitFWD1BvQJp" alt=""><figcaption></figcaption></figure>

### Step 3

Enter the billing email and the credit card information, and click on “Pay”.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdq0sabEIxQGmbWMI4yeCfEplb1BZP2TM1wgtm0ERL-XvI44NxQyTNM5qluh4HRho4csKagSamMvlgS3J-UBxAlSfI5MZ6e4Xt7tBWB3OTAH_mJVBUePmLVQU9O63KUbyuAxvwiU0ViYaXF-YdR2R2-tnQ?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 4&#x20;

On successful payment, you will be redirected to the “Account Record” page and see a payment successful message as below.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_dD_H6PYFPWcmGhl8SM7iVf29rMNFoSp7zZX8X5vlACGwKFjmG2axP_fF8jQX0dTToVwyBAcx5Ha-xjsZ6pJBEXSQOzh9BIErlJr-9x5s1iVNUmz8buBOugi0S42PAVRCzRp7eisytj4pP9E4f1pCBKU?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

You will receive a billing receipt in your credit card account as below.

<figure><img src="/files/kyDSJjdLIlnCqhVHFnBL" alt="" width="211"><figcaption></figcaption></figure>

### Step 5&#x20;

Confirming the payment. To confirm the payment is completed, you can check your account balance from the system homepage.

<figure><img src="/files/LeqnUtLwQ6mnYJxSnjVk" alt=""><figcaption></figcaption></figure>

Or check the “[Account Record](https://console.littlepig.cloud/account/balance)” page.

<figure><img src="/files/OXvGYiVxEPV3yZ65unVO" alt=""><figcaption></figcaption></figure>

## Method 2

### Step 1&#x20;

Log in to your [Little Pig Cloud Server account](https://console.littlepig.cloud/login). Navigate to the “Account Top-up” page from the sidebar. Once logged in you will be redirected to the [system homepage](https://console.littlepig.cloud/home). Then click on "Top-up" button and procced to the [Account Top-up](https://console.littlepig.cloud/account/topup) Page.

### Step 2

&#x20;Enter the top-up amount, select the payment method as “International Card”, and click “Next”.

<figure><img src="/files/j4IpE3oTMyWPmXiQwbPb" alt=""><figcaption></figcaption></figure>

### Step 3

Now you will be redirected to the "GoAllPay Cashier" payment gateway. There you can see the info about your payment. Now fill in the payment information and click on "Confirm Payment".&#x20;

{% hint style="info" %}
You must complete the payment within 30 minutes.
{% endhint %}

<figure><img src="/files/YsdyC4AbxpcnXPBGimB4" alt=""><figcaption></figcaption></figure>

Once you have done a successful payment. You should see the amount added to your account balance.


# Billing Info and History

How to check account top-up record and monthly statement.

### Account Top-up Record

Log in to your [account](https://console.littlepig.cloud/home). Now hover over the profile and navigate to the "[Account Record](https://console.littlepig.cloud/account/balance)" page.

<figure><img src="/files/4h3p6W8kfcwISGRkNvAd" alt=""><figcaption></figcaption></figure>

### Monthly statement

Navigate to the "[Monthly Statement](https://console.littlepig.cloud/account/monthly_statement)" page from the sidebar.

<figure><img src="/files/O6uEM5pIbAg8BPwMyKUg" alt=""><figcaption></figcaption></figure>


# Instance Management

You will find all the instance related information in this section.

{% content-ref url="/pages/GrIEyB8tKAdGELVBxgpY" %}
[Create Virtual Machine in AWS](/documentations/instance-management/aws-vps)
{% endcontent-ref %}

{% content-ref url="/pages/L4utf49TQPrhs05nslfk" %}
[Create Virtual Machine in GCP](/documentations/instance-management/gcp-vps)
{% endcontent-ref %}

{% content-ref url="/pages/rNr0w9l3GgEfKFFkz6hC" %}
[Get Affordable VPS from Lightsail Packages](/documentations/instance-management/lightsail-vps)
{% endcontent-ref %}


# Create Virtual Machine in AWS

Learn how to create a virtual machine from AWS in Little Pig Cloud Server.

### Step 1

Log in to your [Little Pig Cloud Server account](https://console.littlepig.cloud/login). Navigate to the “Instance Management” Page from the sidebar. Click on the “Create virtual machine” button.

<figure><img src="/files/08Pp1YkCoLdbIqFms2Es" alt=""><figcaption></figcaption></figure>

### Step 2&#x20;

Select “AWS” from the platform. Enter a name for your VPS and select the region.

<figure><img src="/files/0b39PsMW6aBbqf2CKAhM" alt=""><figcaption></figcaption></figure>

Choose the VPS configuration suited for your use case.

<figure><img src="/files/Duut9bxHReg8JEdQC3md" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Disregard this VPN option if you are residing outside the China region. This option is used to enable **Shadowsocks** and **Vmess** VPN. You can obtain the VPN configuration from the instance edit page.
{% endhint %}

<figure><img src="/files/Dtbx0i3BkOZFkcUQT4KY" alt=""><figcaption></figcaption></figure>

Now select the operating system, hard drive size, and purchase duration.

{% hint style="info" %}
You will get free 20 GB monthly bandwidth on every VPS purchase. But once it finished your instance wont get any traffic. If you want to buy data plan automatically, click "Yes". This will use your account balance to buy a minimum data plan.
{% endhint %}

{% hint style="info" %}
For purchase duration, you can select from predefined time or select "Yes" for automatic instance renewal. Your account balance will be used to renew the instance.
{% endhint %}

<figure><img src="/files/hNaBBLomYon2wUXfZMLu" alt=""><figcaption></figcaption></figure>

Enter the password for your VPS instance and click on “Confirm”.

{% hint style="info" %}
The password length is 8-20 characters long, including uppercase letters, lowercase letters, numbers, and special characters.
{% endhint %}

<figure><img src="/files/VHr3eAoGhJcHMu98GMoY" alt=""><figcaption></figcaption></figure>

### Step 3

Follow up the confirmation.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXezM8EcWHq4Jt6GPmvdMMZ08Ct28xRGkZEKsAHA6OkYlCRQiJtnYw4XskwXMLNFbYHoHhwvTEEV__WnRymn-5VkxEQbopEXu-j_6H1nJXUrdc5Z9WVU8A7iR29jv9alXbkHD6CNJVebOUwSOlNduaCYTfkY?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 4

Access the VPS from the “Instance Management” Page. You can log in using SSH with the username “root” and the password you provided.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfLThdLmjKxkDDeActdouBUa2tonu18veEYulpky3ZQoFfjEslEn2tBIKBfAgupSIsHRoobiREhNjReX4ZMwcFcYDood5b51G0bpw-u0kRhx9VH3Sjr3U_RsjRWWB41i6B_a9SEp9VLi3Vji9vSV8Vao7LY?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# Create Virtual Machine in GCP

Learn how to create a virtual machine from GCP in Little Pig Cloud Server.

### Step 1

Log in to your [Little Pig Cloud Server account](https://console.littlepig.cloud/login). Navigate to the “Instance Management” Page from the sidebar. Click on the “Create virtual machine” button.

<figure><img src="/files/gSGQk7MFNWBMBvmPL1eC" alt=""><figcaption></figcaption></figure>

### Step 2

Select “GCP” from the platform. Enter a name for your VPS and select the region.

<figure><img src="/files/8e1embenRylKnl4UOnE9" alt=""><figcaption></figcaption></figure>

Choose the desired instance model.

<figure><img src="/files/K4iuZEYzrCtkvF4Td4Oj" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Disregard this VPN option if you are residing outside the China region. This option is used to enable **Shadowsocks** and **Vmess** VPN. You can obtain the VPN configuration from the instance edit page.
{% endhint %}

<figure><img src="/files/yxgMv9RlrUbsubvQFQ1U" alt=""><figcaption></figcaption></figure>

Now select the operating system, hard drive size, and purchase duration.

{% hint style="info" %}
You will get free 20 GB monthly bandwidth on every VPS purchase. But once it finished your instance wont get any traffic. If you want to buy data plan automatically, click "Yes". This will use your account balance to buy a minimum data plan.
{% endhint %}

{% hint style="info" %}
For purchase duration, you can select from predefined time or select "Yes" for automatic instance renewal. Your account balance will be used to renew the instance.
{% endhint %}

<figure><img src="/files/K5mhG1Rox7KajosdyqPA" alt=""><figcaption></figcaption></figure>

Enter the password for your VPS instance and click on “Confirm”.

{% hint style="info" %}
The password length is 8-20 characters long, including uppercase letters, lowercase letters, numbers, and special characters.
{% endhint %}

<figure><img src="/files/VhE1xf3yCZQCLZOpXjaT" alt=""><figcaption></figcaption></figure>

### Step 3

Follow up the confirmation.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcdQnkbBGbWFgjAlntdxrxSXAtxM5IvkecdBGxKbqgsdHYYLEsB6kP7O78NVGOk-bMeE4PIwR1PPaujBcNBIXi7r1f4o-MgtAJGHwEfdegrWHK8G7WGlOYXrI5JmhNSVKylC6oKf9ujHA_d3MfhCivuVynT?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# Get Affordable VPS from Lightsail Packages

Get affordable VPS packages from AWS on Little Pig Cloud Server.

### Step 1

Log in to your [Little Pig Cloud Server account](https://console.littlepig.cloud/login). Navigate to the “Instance Management” Page from the sidebar. Click on the “Create virtual machine” button.

<figure><img src="/files/1xl6iMnwfVNkv1rlwVkT" alt=""><figcaption></figcaption></figure>

### Step 2

Select “AWS” from the platform. Enter a name for your VPS and select the region. And select "Lightweight" option from specifications.

<figure><img src="/files/9z0KE5ZoveLr7MnViHL3" alt=""><figcaption></figcaption></figure>

### Step 3

Now select the instance that best suits your needs.

<figure><img src="/files/yoqnRd3eiu5c0JvYTgpO" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Disregard this VPN option if you are residing outside the China region. This option is used to enable **Shadowsocks** and **Vmess** VPN. You can obtain the VPN configuration from the instance edit page.
{% endhint %}

<figure><img src="/files/0nE9RTi9VJGwEd528MHU" alt=""><figcaption></figcaption></figure>

Now select the operating system, hard drive size, and purchase duration.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdBWnhU45XVV--sof433rQ_rO3YTsYrHDQ4Fzu_lvCbmi_MlLEb-WrYiNJGbUgIojuhxhV1jITgVQboVrZXAbG6lfn1waE80n0fLEz7qyLTGc8Sumsc_it-wsV9tv74YdpflC37Qt0v6tXF9txyYhLWABKk?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

Choose the purchase duration as your preference.&#x20;

{% hint style="info" %}
In packages, the storage size and monthly bandwidth (data plan) is pre determined. But you can click on "Yes" to buy data plan automatically when your "package included" data plan runs out.
{% endhint %}

{% hint style="info" %}
In packages, you will get four predefined purchase duration. And once your instance reaches the deadline it will automatically be closed and deleted. But you can select "Yes" for automatic renewal to stop that. We will send you rapid emails before we close any of your instance.
{% endhint %}

<figure><img src="/files/1uXiqDvwkSGuQZTKHahv" alt=""><figcaption></figcaption></figure>

Enter a strong password for your VPS, and click on “Confirm”.

{% hint style="info" %}
The password length is 8-20 characters long, including uppercase letters, lowercase letters, numbers, and special characters.
{% endhint %}

<figure><img src="/files/N8eWXr19JOQ2lwl5o3ZY" alt=""><figcaption></figcaption></figure>

### Step 4

Follow up the confirmation prompt. And you will have successfully created your VPS.

<figure><img src="/files/WN3ezUd5JxFEivjRd0Fg" alt=""><figcaption></figcaption></figure>

### Step 5&#x20;

Access the VPS from the “Instance Management” Page. You can log in using SSH with the username “root” and the password you provided.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmPGVr8UYP5Q34y7lenxTZ69zs0PSo7IHNNo-G-M1bwM1dt0fqExdRuP0YDHNhNAbb0Gerjs_iqNa8RZY2Fxya5RwG2-BZbgQl41cFZnv5Fw4ysg5g3YdniB8-z2-y-S1ASZVksUOjdMnM71Dx5rWvaXxd?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# Domain Name

Information about buying a domain name.


# Purchase Domain

How to purchase a domain name with Little Pig Cloud.

To purchase a domain first navigate to [Little Pig Cloud Console](https://console.littlepig.cloud/home). Then click on "Domain Names" from service items or from side bar.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfgPHWAooVkQ28ZA5ZcmUg1xCkAv_MBBMbHy-8_p7J0-Lp0h_d5QQ03t7MzpVdqb5v8NVsw848U3BIzYx1QS_4hVVI5FDWF9RhdFdeekAYMDE2l9OenDTjl8caST7ow07Yl5t6YzA?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>

This will take you to the domain search page. From there search the domain name you want to purchase and click on "Query" button or click enter.&#x20;

{% hint style="info" %}
Make sure you have proper "Account Balance" before you try to purchase a domain name. If you dont have enough "Account Balance" you can top-up following [this page](https://docs.littlepig.cloud/documentations/billing-and-payments).
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXezhSXmpINRfzyVa0jFUeP4BiBsr2L6QR52HnoYjnKSFngREeuuhLBsCcV-U51a-JalgVnNH0yFLYj4E7o-amoRZjh2ww-lY2cdheDAIVajLR7eoZ-PbGsf8-wLOs3YaRVoTI-4?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>

After you get the desired domain name click on "Register now" button.&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeaLK6jyZSgmIs-pQZKvm3ApcHYYqvRsOUkPwHGFG5-EZoV7RTOhasfl4l3tvQm6aKpORdGkZUmnGG_qGcWzUMfTasZJFzz5pTkpqrYfWU4tON3AY024E76qDAJtAT62flcRg5Q?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>

Now click on "Establish" button to fill out your information.&#x20;

{% hint style="info" %}
You have to fill out your customer information forum to purchase a domain name. Remember you will have to verify from your email to make the domain purchase successful.
{% endhint %}

{% hint style="warning" %}
This will not reveal your personal info in "whois". We redact your private information for privacy.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeLwwFm-MTuDMuCFCusXL7sjbOag9Z3iPlpPC1cUgFRVRM1rihYCuY8cEJgOwwaBkjnpjrlN3NTl-QlN9mkwWNAgyPqoFnF1QB8lYGjLneBV2fbnfa8eHrYsAt13dNmOlxnmfbA0Q?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>

Once you filled all the information, click on "Continue".&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcqHKEUG-7XgY1lwyBWYHd-HvZIbZlpK9B6UDKlMVEij1ogh3YFK0aPWa5CvlGMKb_2Efe5imLPs6ussGXNZ8FU1yOR7P_UFr5OaXdoxykp4ZzfIuhyWfixKYlwn_vZSVaCTNeVyw?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>

You will see a overview of your information. If you find any misinformation you can click on "Edit" button. Once everything is right click on "Continue".

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeb7TdskqTx1TnO4VwBb_t29_anWloUzXbKfi4TJ7hfWCMtljUBWu2BFZkEmOO6Rb8S6tfC4CgGATmh0GCZ1WuNH8kX4BBtq9bpB7Ier1AyKUUJIXdhWoXtIWFDO6_NfaBY84Cj7Q?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>

Click on "OK" to confirm it. After this you will receive an email with a confirmation link.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcJi0QWUypl1KGaSR-XvI0t-gAiggDMoRB70E0VgbcsEksUBcQsZimtK56KZ9KUwNGzmjHWtLdTC2Wq6cpWyr396te25D5i1AgbM13PNI1oT8Kdj-AGx7TaRcJ21avah271VG_O_Q?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>

Now click the following link and it will complete the verification.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdSvPYvCvRdRYM58PsZmKEPdtFCLL1CIBHVV8lTdTblwXTvOlMtoG2c2UVFwXslNYIuUdBUUgEqQW5NBv-UwR-3nj9M5UfFk11MZebe2ztwBxpJpGcm9LHlDAvYcR68-J-MBAadgw?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>

After that, you can confirm the domain purchase from your ["Domain Manage"](https://console.littlepig.cloud/domain-manage) page.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeywaIlMaWZ5_-QRRpv5b1PGc1w4bdSZl0MbQqN_419mX1tpOim11qYXQzZa59tKQ42yZGQgFYu--VvtlJkowgLj9jZtmX2JOd8dV0hRizSN6c1QPRWO_0Y2Dv8AECZ6PPXv1Ul?key=cw3erHqq36LpAFGfIYRK18Zg" alt=""><figcaption></figcaption></figure>


# AI Platform

Information about configuring Generative AI API.

## Obtaining API Key

Navigate to AI [configuration management](https://console.littlepig.cloud/config_manage) page from AI API Integration Tab. Click on "Open Service" button to enter configuration page and follow up with the confirmation.

<figure><img src="/files/YlJpc5wCxjRnjG3py12X" alt=""><figcaption></figcaption></figure>

&#x20;To obtain the API key click on "View". You may have to enter your account password for verification.

## Configuring AI API

**API Domain**: `https://sgai.littlepig.cloud`\
**Endpoint**: `/anthropic/v1/messages`\
**Protocol**: HTTPS\
**Request Method**: POST\
**Request Body**: Serialized JSON format

### Request Structure

#### Required Headers

| Header         | Type   | Description                          |
| -------------- | ------ | ------------------------------------ |
| `x-api-key`    | string | Authentication key from the Console. |
| `Content-Type` | string | Must be `application/json`.          |

#### Request Data Definition

| Parameter     | Type      | Required | Description                                                         |
| ------------- | --------- | -------- | ------------------------------------------------------------------- |
| `model`       | string    | **Yes**  | Claude model to use.                                                |
| `max_tokens`  | integer   | **Yes**  | Maximum tokens to generate.                                         |
| `messages`    | object\[] | **Yes**  | Conversation history (see **Messages Format**).                     |
| `stream`      | boolean   | No       | Stream the response as Server-Sent Events.                          |
| `system`      | string    | No       | System-level prompt.                                                |
| `temperature` | number    | No       | 0.0‑1.0; lower = more deterministic, higher = more creative.        |
| `top_p`       | number    | No       | Nucleus‑sampling ratio. Adjust either `temperature` **or** `top_p`. |
| `tools`       | object\[] | No       | Definitions of external tools the model may call.                   |

***

### Single Use Case – Basic Chat

```bash
curl https://sgai.littlepig.cloud/anthropic/v1/messages   -H "x-api-key: $API_KEY"   -H "anthropic-version: 2023-06-01"   -H "Content-Type: application/json"   -d '{
    "model": "claude_37_sonnet",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Hello, world" }
    ]
  }'
```

***

### Messages Format

#### Text‑only (shorthand)

```json
{ "role": "user", "content": "Hello, Claude" }
```

#### Explicit Content Blocks

Each input message content may be either a single string or an array of content blocks, where each block has a specific type. Using a string for content is shorthand for an array of one content block of type "text". The following input messages are equivalent:

```json
 {"role": "user", "content": "Hello, Claude"}
```

```json
{ "role": "user", "content": [ { "type": "text", "text": "Hello, Claude" } ] }
```

#### Multiple Conversational Turns

```json
[
  { "role": "user", "content": "Hello there." },
  { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
  { "role": "user", "content": "Can you explain LLMs in plain English?" }
]
```

#### Partially‑filled Response

```json
[
  { "role": "user", "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun" },
  { "role": "assistant", "content": "The best answer is (" }
]
```

#### Image + Text

```json
{
  "role": "user",
  "content": [
    {
      "type": "image",
      "source": {
        "type": "base64",
        "media_type": "image/jpeg",
        "data": "/9j/4AAQSkZJRg..."
      }
    },
    { "type": "text", "text": "What is in this image?" }
  ]
}
```

Supported image types: `image/jpeg`, `image/png`, `image/gif`, `image/webp`.

***

### **Tool Definition Schema**

If you include tools in your API request, the model may return tool\_use content blocks that represent the model's use of those tools. You can then run those tools using the tool input generated by the model and then optionally return results back to the model using tool\_result content blocks.

| Field          | Type   | Required | Description                     |
| -------------- | ------ | -------- | ------------------------------- |
| `name`         | string | **Yes**  | Tool name.                      |
| `description`  | string | No       | What the tool does.             |
| `input_schema` | object | **Yes**  | JSON schema for the tool input. |

```json
[
    {
        "name": "get_stock_price",
        "description": "Get the current stock price for a given ticker symbol.",
        "input_schema": {
            "type": "object",
            "properties": {
                "ticker": {
                    "type": "string",
                    "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
                }
            },
            "required": [
                "ticker"
            ]
        }
    }
]
```

***

### Response Data Definition

| Field                 | Description                               |
| --------------------- | ----------------------------------------- |
| `content`             | Content blocks produced by Claude.        |
| `id`                  | Message ID.                               |
| `model`               | Model that generated the reply.           |
| `role`                | Always `assistant`.                       |
| `stop_reason`         | Why generation stopped (e.g. `end_turn`). |
| `usage.input_tokens`  | Tokens in the request.                    |
| `usage.output_tokens` | Tokens in the response.                   |

#### Example

```json
{
    "id": "msg_bdrk_01FTuLJMy9aYU5TQhK14rMsE",
    "type": "message",
    "role": "assistant",
    "model": "claude-3-7-sonnet-20250219",
    "content": [
        {
            "type": "text",
            "text": "Hello! How can I assist you today? Feel free to ask me any questions or let me know what you'd like to talk about."
        }
    ],
    "stop_reason": "end_turn",
    "stop_sequence": null,
    "usage": {
        "input_tokens": 10,
        "cache_creation_input_tokens": 0,
        "cache_read_input_tokens": 0,
        "output_tokens": 31
    }
}
```

***

### Streaming Events (`stream=true`)

| Event                 | Payload                           |
| --------------------- | --------------------------------- |
| `content_block_delta` | Partial token or tool‑input data. |
| `error`               | Error details.                    |

Example:

```
event: content_block_delta
data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"ello frien"}}

event: error
data: {"type":"error","error":{"type":"overloaded_error","message":"Overloaded"}}
```

Tool invocation stream:

```
event: content_block_delta
data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{"location":"San Fra"}"}}
```

***

### Tool Invocation Walk‑through

```bash
curl https://api.anthropic.com/v1/messages \
  -H "content-type: application/json" \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-3-7-sonnet-20250219",
    "max_tokens": 1024,
    "tools": [
      {
        "name": "get_weather",
        "description": "Get the current weather in a given location",
        "input_schema": {
          "type": "object",
          "properties": {
            "location": {
              "type": "string",
              "description": "The city and state, e.g. San Francisco, CA"
            }
          },
          "required": ["location"]
        }
      }
    ],
    "messages": [
      {
        "role": "user",
        "content": "What is the weather like in San Francisco?"
      }
    ]
  }'
```

***

### Further Reading

<https://docs.anthropic.com/en/api/messages>

### Pricing

{% hint style="info" %}
The model pricing is subject to change. Please visit the [configuration management](https://console.littlepig.cloud/config_manage) page to view the latest pricing.
{% endhint %}

| Model              | Price / 1 000 input tokens | Price / 1 000 output tokens |
| ------------------ | -------------------------- | --------------------------- |
| claude\_3\_haiku   | $0.00025                   | $0.00125                    |
| claude\_3\_sonnet  | $0.003                     | $0.015                      |
| claude\_3\_opus    | $0.015                     | $0.075                      |
| claude\_35\_haiku  | $0.0008                    | $0.004                      |
| claude\_35\_sonnet | $0.003                     | $0.015                      |
| claude\_37\_sonnet | $0.003                     | $0.015                      |

{% hint style="warning" %}
To disable API access, click on "Close Service" button in [configuration management](https://vps.littlepig.tech/config_manage) page.
{% endhint %}


# Google Workspace

Learn how to active Google Workspace in Little Pig Cloud.


# Google Enterprise Email

Follow these simple steps to set up your Google Enterprise Email through the LittlePig Cloud platform.

#### Step 1: Log In to Your LittlePig Cloud Account

[Log in to](https://console.littlepig.cloud/login) your LittlePig Cloud account → System Homepage → Service Items → Select "Google Workspace".

Or directly select "Google Enterprise Email" in the left-hand menu.

<figure><img src="/files/HlYNnUfoR9xDpmUGmP8z" alt=""><figcaption></figcaption></figure>

#### Step 2: Create a New Google Enterprise Email

Click "**Create Google Enterprise Email**" to begin the setup process.

<figure><img src="/files/0N3hjo2PFMAAdqpDQUYq" alt=""><figcaption></figcaption></figure>

#### Step 3: Fill In the Required Information

Enter the necessary details as prompted. The system will automatically create an administrator account using the contact information you provided. The default administrator account will be: <admin@yourdomain.com>. Make sure to enter an alternative email address that is not part of your main domain (for recovery and verification purposes). And click “**Next**”.

<figure><img src="/files/iy98znO7QHsfHQoubhBS" alt=""><figcaption></figcaption></figure>

#### Step 4: Choose a Plan

Select your preferred Google Workspace Plan, then click "**Select**", to view its detailed features and pricing.

<figure><img src="/files/2opZyZzYOh4l7YeyvjXC" alt=""><figcaption></figcaption></figure>

#### Step 5: Set the Number of Users

Enter the number of user accounts you wish to authorize. You can also see your renewal date and pricing agreement. Once done, click on “**Create**”. You can also add more users later.

<figure><img src="/files/L9kiOI5UZOvUPP05AmT2" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Please make sure that you have sufficient “Account Balance”. You can learn how to top up from [here](/documentations/billing-and-payments).
{% endhint %}

#### Step 6: Confirmation

If everything has been done correctly, you can see the “**Google Workspace Enterprise Email**” created in your “[Workspace](https://console.littlepig.cloud/workspace)” page.<br>

<figure><img src="/files/oJnVKmixZz1H6BmOpbST" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Follow this page to learn how to activate your "[Google Workspace Account](/documentations/google-workspace/google-workspace-activation-process)".
{% endhint %}


# Google Workspace Activation Process

Follow these steps to set up your Google Workspace account, verify your domain, and activate your administrator email.

### Step 1: Setting Your Password

If you have correctly followed the [**Google Enterprise Email**](/documentations/google-workspace/google-enterprise-email) creation steps, you should receive an email from Google.

In that email, click on the **marked link** to proceed.&#x20;

<figure><img src="/files/R4W1cWIQNolbZ4RyAjwf" alt=""><figcaption></figcaption></figure>

Once clicked, you will be redirected to a page where you will be prompted to **set your account password**. Please use a **strong and secure password**, then click **Change Password** to continue.

<figure><img src="/files/6ZacoJzg9mP6duRVA29k" alt=""><figcaption></figcaption></figure>

After successfully updating the password, you will be redirected to the **Google Workspace Dashboard**, indicating that your administrator account has been initialized.

<figure><img src="/files/N0g3oq4konCUqkadja56" alt=""><figcaption></figcaption></figure>

### Step 2: Activating the Google Workspace Admin Console

From the same email mentioned above, click on the **second marked link** as shown in the reference image.

<figure><img src="/files/SCqQg60ORp8itjgLV23N" alt=""><figcaption></figcaption></figure>

You will be prompted to **log in** using the account you have just created. After a successful login, you will be redirected to Google’s **Terms and Conditions** page. Review the terms carefully and click the **ACCEPT TERMS OF SERVICE** button to proceed.

<figure><img src="/files/89j7jU2PjNRGhb3mlPne" alt=""><figcaption></figcaption></figure>

Once accepted, you will be redirected to your **Google Admin homepage**. Here, you will notice that your **domain has not yet been verified**. Click on the **Verify** button to begin the verification process.

<figure><img src="/files/YXleyxkjRLphXng3P9WA" alt=""><figcaption></figcaption></figure>

This will redirect you to the **Domain Setup** page. Click **Get Started** to continue.

<figure><img src="/files/sRH9Wn7wQn5gH7dIDOOS" alt=""><figcaption></figcaption></figure>

On this page, you will be asked to **verify ownership of your domain**. You may complete this process **manually** or **automatically** (where Google automatically fills in the required DNS records). For clarity, both methods are explained below.&#x20;

<figure><img src="/files/Clsb4bHpOIz01IUloMLL" alt=""><figcaption></figcaption></figure>

#### Manual Verification Method

Click on **Switch to Manual Verification**. Next, select your **domain provider** from the available list.\
If your domain provider is not listed, check the box **My domain uses a different host**, or contact **Google Support** for further assistance.

<figure><img src="/files/dB7AzEOxhsK3fFvgueDX" alt=""><figcaption></figcaption></figure>

After clicking **Continue**, you will receive a set of **TXT** or **CNAME** records. You can use either record type. Add the preferred record to your **DNS console**.&#x20;

<figure><img src="/files/3ygZiGyteJCBQOkgCpJm" alt=""><figcaption></figcaption></figure>

Once added, return to the Google Workspace setup page and proceed with verification.

#### **Automatic** Verification **Method**

For automatic verification, click on the **Automatic Verification** option. You will be redirected to a new page.

<figure><img src="/files/kjtFSXrIRFp7Bnetsb2h" alt=""><figcaption></figcaption></figure>

Ensure that you are **logged in to your DNS provider’s console** for a smoother process. The system will automatically detect and configure the necessary DNS records. You will simply need to **authorize the connection** by clicking the **Authorize** button.

<figure><img src="/files/EFcBET7Gd3g5bwB7cRNt" alt=""><figcaption></figcaption></figure>

If everything has been configured correctly, you will see a confirmation message stating **“Your domain is verified!”**. Once verified, the next step is to **activate Gmail** so you can send and receive emails through your administrator account.

### Step 3: Activating Gmail Access

To activate Gmail, click on the **Activate Gmail** button.

<figure><img src="/files/epqESDVzMe03roFRPPPb" alt=""><figcaption></figcaption></figure>

You will be redirected to a new page, click **Continue** to proceed.

<figure><img src="/files/qk8BvQHkuIvL4HN99rrL" alt=""><figcaption></figcaption></figure>

Next, you will be taken to the **Users List** page, where you will see the administrator account that was created earlier. Click **Proceed with Activation** to continue.

<figure><img src="/files/6le1E2MT3tynsRjs4GAx" alt=""><figcaption></figcaption></figure>

You will now need to configure your **MX records**. Select your **domain host provider** from the list and click **Continue**.

<figure><img src="/files/rhY2pG8ZVCsZwbIGaPwV" alt=""><figcaption></figcaption></figure>

This will display the **MX records** that must be added to your DNS settings. If you are using your primary domain and the “Name” field is empty, enter **@** in that field. Copy the remaining information exactly as provided.

<figure><img src="/files/9GgBhZlqQaOk3ZJDDiVj" alt=""><figcaption></figcaption></figure>

Depending on your DNS provider, the configuration may appear slightly different, but it should closely match the provided example.&#x20;

<figure><img src="/files/1SkXAT0tQ9kjQWDySozD" alt=""><figcaption></figcaption></figure>

Once all MX records have been successfully added, return to the **Google Workspace setup page** and **refresh** it. If the setup has been completed correctly, you will see the message **“You’re all set!”**.

This confirms that your **Gmail account** and **Google Workspace services** are now fully active and ready for use.

<figure><img src="/files/CEz2PW3PVcWU0rMwhH3l" alt=""><figcaption></figcaption></figure>


# Google Workspace Password Recovery

Follow these steps to reset your Google Workspace administrator password.

#### Step 1: Access the Management Console

From your **LittlePig Cloud Console**, navigate to the [**Google Enterprise Email**](https://console.littlepig.cloud/workspace) section. Click on the **Management Console** button to open the admin interface.

<figure><img src="/files/oQiH6NaMBjE7LGXvyRRX" alt=""><figcaption></figcaption></figure>

#### **Step 2: Enter the Administrator Email**

Enter your **administrator email address** (typically `admin@yourdomain.com`) that was used when creating the domain, then click **Next**.

<figure><img src="/files/kDGyxEE5vn7vgXbfwuJY" alt=""><figcaption></figcaption></figure>

Click **Forgot your password?** to open the account recovery page.

<figure><img src="/files/6PTeSKTPC8buamo6mgNF" alt=""><figcaption></figcaption></figure>

On the recovery page, click **Try other methods** to continue.

<figure><img src="/files/EQQgVNC940G7VPVYe8JB" alt=""><figcaption></figcaption></figure>

#### **Step 3: Provide Account and Organization Details**

Enter the **first name** and **last name** associated with the "**Google Workspace Email**" account you created on LittlePig Cloud, then click **Next**.

<figure><img src="/files/RLZDyfG8Wqd4nAIekLZ4" alt=""><figcaption></figcaption></figure>

Next, provide your **organization name** and the **number of workspace** as shown in workspace email details on LittlePig. After entering each detail, click **Next** to proceed.

<figure><img src="/files/JKbLte6gimiGLMbjaNqS" alt=""><figcaption></figcaption></figure>

#### **Step 4: Domain Verification (CNAME Resolution)**

To complete verification, add the **CNAME DNS record** in your **DNS provider’s console** as instructed on the recovery page.

<figure><img src="/files/SY2cnRwSXFpVULYExlug" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rSjGvlaVKdQ149z5Ccq7" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
You can turn of the proxy form Cloudflare in case its not connecting.
{% endhint %}

After creating the CNAME record, return to the Google recovery page and click **Next**.

<figure><img src="/files/SY2cnRwSXFpVULYExlug" alt=""><figcaption></figcaption></figure>

This process may take a few minutes to propagate. Once verified, Google will send you a **password reset link** via email.

<figure><img src="/files/7ixOQaXoUezfQ6AThHIJ" alt=""><figcaption></figcaption></figure>

Open the email and click on the **Sign in** link provided. You will be redirected to the **password reset page**, where you can securely set a new administrator password.

<figure><img src="/files/SmMMSsa8CIkTcJmCwL4J" alt=""><figcaption></figcaption></figure>


# Data Plans

Learn how to purchase data plan on Little Pig Cloud Server.

### Step 1

Log in to your [Little Pig Cloud Server account](https://vps.littlepig.tech/login). Navigate to the “Data Plan” page, and click on “Purchase Data Plan”.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcMqUjBSyaSkBSmbWZ-_O0XQVnsS23mzGBd1RhrJAmjd6MZVPwPQ6G0RlupR3C3-st0vm9fM4RoeSthlgosQOuKZ8dcX2ZIzX7pQjtq-Clw7r2aeEyO9xMdmRocJSAVnTGtJOrKJVVbo5EBmHYSNAfuK40?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 2&#x20;

Choose a suitable data plan, and click on “Confirm”.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdWKPnhmxhLYM0vudTisIj3hI6OH6-7HfXt1sJM-PjruZ5UUX4NFD3dijBkzAnvmVgw8xFwr3YvcoJ2thvOdwHxRIFKQw4ajyOQgrQCdGC7Mvr01eVWivLncDFhLW736F-izcBIVsK96P_odABO5qh1cIgd?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### Step 3&#x20;

Confirm the purchase by refreshing the “Data Plan” page.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf3gBsIv6SfVRFJfdocUbqQuEirr6TgiFMCUWRFquKwQvCKhxxEM0SlO13Yau2JLrMTH8oYQ3PW_nSuOozm9BacPYyyU7wAJG9LTM-ifR1YzuvSKct3JRfYQ0osufVWN839D51cQz5ewp8NRd9d6G3gWSTi?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

<br>


# Promote to Earn Commission

Details on Little Pig Cloud Server affiliation program.

Little Pig Cloud Servers offers you extra passive income through affiliate program. Navigate to the [affiliation page](https://vps.littlepig.tech/account/promote). There you will see an exclusive referral link, using which you an get affiliate bonus.

<figure><img src="/files/9vejbPsobecQ02iRJhqd" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Referral Link Registration:** When someone registers on the Little Pig platform using your unique referral link, you’ll start earning commissions on all their purchases.
{% endhint %}

{% hint style="success" %}
**Commission Calculation:** For example, if a user registers through your referral link and spends $1,000 on VPS services each month, you’ll receive $100 in referral commissions each month.&#x20;
{% endhint %}

{% hint style="info" %}
**Withdrawal Conditions:** Once your referral commissions exceed $30, you can withdraw the amount to your account balance and use it at your convenience.
{% endhint %}

You can check your current "Commission amount" and "Awaiting Commission" amount in "Promote to Earn Commission" dashboard. You can also see the history for your earned commissions.

<figure><img src="/files/GYOBtq8FuA5P89aexNCT" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Account Security and Anti-Fraud Measures&#x20;

To ensure the fairness and security of our affiliate program, we monitor all affiliate accounts. If your account shows an unusually high rate of chargebacks, refunds, or cancellations, or if we suspect fraudulent activity, we reserve the right to impose restrictions on your account. This may include, but is not limited to, suspending your account and withholding all funds while a full investigation is conducted.

You authorize us to notify relevant authorities or third parties of any fraud or suspected fraud. Restrictions on your account will only be lifted once we are satisfied that the issue has been resolved.
{% endhint %}


# Support

Little Pig Cloud Server offers 24/7 Support.Please contact us via [Telegram](https://t.me/vpslittlepig), [WhatsApp](https://wa.me/85294609418) or [Email](mailto:support@littlepig.tech).Our team will answer any questions you have asap!


# FAQs

Some frequently asked questions about Little Pig Cloud Server

<details>

<summary>Why Choose Little Pig Cloud Server?</summary>

Little Pig Cloud Server seamlessly integrates multiple leading cloud providers, including AWS, GCP, Alibaba Cloud, and Tencent Cloud, to deliver the simplest and most efficient cloud solution available.

</details>

<details>

<summary>Is Little Pig Cloud Server Safe?</summary>

YES!! Little Pig Cloud Server partners exclusively with top-tier cloud providers to ensure the highest levels of stability and security, offering world-class reliability and protection.

</details>

<details>

<summary>What if I need more than a VPS?</summary>

Little Pig Cloud Server offers more than just VPS, please Contact Us to find out more!

</details>

<details>

<summary>What's the difference between AWS/GCP and Little Pig Cloud Server?</summary>

With a user-friendly interface, Little Pig offers an easy solution for AWS and GCP, including multiple payment methods!

</details>

<details>

<summary>How to Contact Little Pig Cloud Server Support</summary>

Little Pig Cloud Server offers 24/7 Support.Please contact us via [Telegram](https://t.me/vpslittlepig), [WhatsApp](https://wa.me/85294609418) or [Email](mailto:support@littlepig.tech).Our team will answer any questions you have asap!

</details>


# Google Enterprise Email

Learn how to place a Google Workspace order by yourself on Little Pig Cloud.

## Step 1

[Log in](https://console.littlepig.cloud/login) to your Little Pig Cloud account → Home Page → Services → Select “Google Workspace”.\
Alternatively, click “Google Enterprise Email” from the left menu bar.

<figure><img src="/files/JbucGZ3G3t1j4nu0jI7Y" alt=""><figcaption></figcaption></figure>

## Step 2

Click “Create Google Enterprise Email”.

<figure><img src="/files/stgdFqgcl9kBn1V5Q8TF" alt=""><figcaption></figcaption></figure>

## Step 3

Fill in the required information. The system will use the contact details provided to create an admin account. The default admin account will be **admin\@yourdomain**.\
For the recovery email address, please enter an email address that does **not belong to** the customer’s primary domain.

<figure><img src="/files/2GFdDWTeYWtlwzNUnixV" alt=""><figcaption></figcaption></figure>

## Step 4

Choose your preferred plan and click “Select” to view the plan details.

<figure><img src="/files/BY9haGH75CSBpCSIkNzk" alt=""><figcaption></figcaption></figure>

## Step 5

Enter the number of users you wish to license in the input field → Click “Create”.

<figure><img src="/files/dLCI62TCkSG6GCVUDjCV" alt=""><figcaption></figcaption></figure>


# 小猪云帮助文档

小猪云官方帮助文档

## 概述

小猪云服务器是领先的云服务器提供商，直接利用 **AWS (亚马逊云)** 和 **GCP (谷歌云)** 的云基础设施，提供高性能的VPS服务。我们不仅提供类似于**EC2**实例的高性能VPS，还为个人用户提供类似于AWS **Lightsail**实例的普通VPS。

在小猪云，我们提供灵活的支付选项，包括**USDT、MasterCard、Visa、Apple Pay**等。我们设计了简易操作的用户界面，让您可以轻松从全球各地部署服务器。这确保了您可以选择最接近客户或观众的服务器，以获得最佳性能。

{% embed url="<https://www.youtube.com/watch?v=YI2RYjqV3_4>" %}

## 立即开始

我们精心整理了一些实用指南，帮助您快速、轻松地开始使用小猪云。

{% content-ref url="/pages/fP2re7B30vFrLJoptzQ7" %}
[注册账户指南](/zh-cn/docs/start-now/registration)
{% endcontent-ref %}

{% content-ref url="/pages/6WfzowmcksOWAlTGQIC6" %}
[用USDT进行帐户充值](/zh-cn/docs/payment/usdt)
{% endcontent-ref %}

{% content-ref url="/pages/yftco5zN33Q6sBtxR7kS" %}
[用信用卡进行帐户充值](/zh-cn/docs/payment/credit-card)
{% endcontent-ref %}

{% content-ref url="/pages/GrIEyB8tKAdGELVBxgpY" %}
[在AWS (亚马逊云)上创建虚拟机](/zh-cn/docs/instance-management/aws-vps)
{% endcontent-ref %}

{% content-ref url="/pages/L4utf49TQPrhs05nslfk" %}
[在GCP (谷歌云)上创建虚拟机](/zh-cn/docs/instance-management/gcp-vps)
{% endcontent-ref %}

{% content-ref url="/pages/rNr0w9l3GgEfKFFkz6hC" %}
[获取价格实惠的Lightsail套餐虚拟机](/zh-cn/docs/instance-management/lightsail-vps)
{% endcontent-ref %}

{% content-ref url="/pages/xjdnQpvMT8ax69Ec5pJK" %}
[流量套餐](/zh-cn/docs/data-plan)
{% endcontent-ref %}

{% content-ref url="/pages/1za96TouICqHPqTsUPAX" %}
[客服](/zh-cn/docs/support)
{% endcontent-ref %}

{% content-ref url="/pages/XRQabR2lqvkamrYnrOdx" %}
[常见问题](/zh-cn/docs/faqs)
{% endcontent-ref %}


# 我们在做什么

简单介绍一下小猪云以及它能提供的好处。

## 什么是小猪云

小猪云是一家顶级的云服务器提供商，直接基于 **AWS (亚马逊云)** 和 **GCP (谷歌云)** 的云基础设施，提供高性能的VPS服务。我们不仅提供类似**EC2**实例的高性能VPS，还为个人用户提供类似AWS **Lightsail**实例的普通VPS。

在小猪云，我们提供灵活的支付选项，包括**USDT、MasterCard、Visa、Apple Pay**等。我们设计了简易操作的用户界面，让您可以轻松从全球各地部署服务器。这确保了您可以选择最接近客户或观众的服务器，以获得最佳的性能表现。

{% embed url="<https://www.youtube.com/watch?v=YI2RYjqV3_4>" %}


# 立即开始

按照教程在小猪云服务器上创建账号，并开始使用基于AWS (亚马逊云) 和GCP (谷歌云) 的高性能云服务器。

{% content-ref url="/pages/fP2re7B30vFrLJoptzQ7" %}
[注册账户指南](/zh-cn/docs/start-now/registration)
{% endcontent-ref %}

{% content-ref url="/pages/udN7qPWeHFvlpAdHDHDv" %}
[小猪云界面概览](/zh-cn/docs/start-now/official-website)
{% endcontent-ref %}


# 注册账户指南

## 如何在小猪云上注册账号

通过简单几个步骤，学习如何在小猪云上注册账号。

### 步骤 1

进入[小猪云首页](https://www.littlepig.tech/zh-CN)，点击“注册”按钮。

<figure><img src="/files/iUKW11fI1YsrL4Sdwnqy" alt=""><figcaption></figcaption></figure>

### 步骤 2

输入您的用户名、邮箱和密码，用户名和邮箱必须是唯一的，并请为您的账户选择一个强密码。

<figure><img src="/files/ZQbTErY7EmrS6iwxsZGA" alt=""><figcaption></figcaption></figure>

### 步骤 3

通过输入发送到您提供的邮箱的OTP验证码来验证您的账户。

<figure><img src="/files/Gm5dOyFYOWA9BPLEIFjv" alt=""><figcaption></figcaption></figure>

这是您在邮箱中会收到的邮件内容。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeWfxKwsqufBdaUj2CSaDk-yWQpmKAseqpF1odh9C6j1Qn9kD_xN1Hceak3GF07RzQE-7bhXDQa6gh5ujfla-jHf4x7Uv08Uw7uyBnQzcfTjP2unuy_sfoOyOrA5mTkRul4pnTH_e3Sxdw6GFCE2RwQt7mq?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 4&#x20;

复制并粘贴验证码到验证页中。然后您将看到“注册成功”的提示信息。现在您可以使用创建时的邮箱地址和密码登录您的账户。

<figure><img src="/files/B4f3SSlQTEQ1Y94HBWzt" alt=""><figcaption></figcaption></figure>


# 小猪云界面概览

### 账户充值

{% hint style="info" %}
注意：在「创建实例」或购买「流量套餐」之前，请确保你已先充值。当你尚未充值就直接创建实例时，会在页面上方跳出「帐户余额不足」的警讯。
{% endhint %}

账户充值页面允许您通过USDT和信用卡或借记卡为您的账户充值。

<figure><img src="/files/M1MQYiJoBNjEFB1pM2ez" alt=""><figcaption></figcaption></figure>

### 实例管理

实例管理页面允许您查看所有已购买的VPS、它们的状态和相关信息。您可以从实例列表中进行搜索和筛选。您还可以在此页面创建虚拟机并充值账户余额。

<figure><img src="/files/J2AuUnZPK5qRBJLqHLCC" alt=""><figcaption></figcaption></figure>

### 流量套餐

什麼是流量套餐？举例来说，“实例管理”就是你手机原本内含的“固定的话费”，当话费用罄时，就需要充值才能继续使用，而“流量套餐”就是“你加购的话费”。

流量套餐页面允许您监控所有实例的数据使用情况。您可以查看VPS平台、实例名称、使用情况、状态、购买日期和到期日期。您还可以在此页面购买更多的流量套餐。

<figure><img src="/files/tWqOowPKHlmJGrfjGMyp" alt=""><figcaption></figcaption></figure>

### 账户纪录

账户记录页面允许您查看所有的充值记录。您可以查看充值日期、充值金额和支付方式。

<figure><img src="/files/eQh4NDiqvZ7EW05Q18Xk" alt=""><figcaption></figcaption></figure>

### 月帐单

月帐单页面显示您从 VPS 到资料计划的所有支出记录。您也可以根据特定日期筛选购买历史。

<figure><img src="/files/Viiigw15ZUJQzmqIMGrc" alt=""><figcaption></figcaption></figure>

### 我的帐号

我的帐号页面让您查看帐户详细资料，也可以更改密码。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFAeuhvu58FwCXtdqRpXDFafxpxWU11yUFA5HeI67E1L3qdUfJ_wAStxbubwv1pZMCNMMCjhvVI7SYfn4e2UamvlVt2v15IJXYGgBtBiDU25bixF9nx3lD1d3To1rBgD0JI0BMIw1oftQXc-dMCDHIk9DS?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# 账户管理

您可以在以下页面找到有关密码恢复和密码更改的信息。

{% content-ref url="/pages/mhiU1KLdLSx8uEHagBxk" %}
[找回密码](/zh-cn/docs/account-management/find-your-password)
{% endcontent-ref %}

{% content-ref url="/pages/lgMlUUvM32lNJlCSHUWE" %}
[修改密码](/zh-cn/docs/account-management/change-password)
{% endcontent-ref %}


# 找回密码

通过简单四个步骤，学习如何在小猪云上找回忘记的密码。

### 步骤 1

进入[登录页面](https://vps.littlepig.tech/login)，并点击“忘记 用户名/密码”。

<figure><img src="/files/0Z21VTKWiBwsHsMlatuo" alt=""><figcaption></figcaption></figure>

### 步骤 2&#x20;

输入您注册的邮箱地址，并提供您的新密码。

{% hint style="info" %}
在您验证邮箱地址之前，密码不会被更改。
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc8YhX5HqiXZ81M1TLq-qQiVD_ko0GGAxRmeJGx-qdrR_THziesXOaOzqdWDJeNAnweER-_pX17zWoiAwiKEcgnnbali1oTrFiktMDY9F0mlN4Wqltpb8vMGw6Z-6Vsbh9i9E_qM33eP_UoJKVzUmQU7OE?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 3&#x20;

输入发送到您邮箱的OTP验证码。

<figure><img src="/files/9aQw8kf6ZYs8z1PUJX0Q" alt=""><figcaption></figcaption></figure>

你会收到以下邮件内容。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmxaXf_254vA5a2fYqiKcJ3lAptf7IoaNeJqUjQukp_1ttGF7Gb94z0fhVFIa_RFXK2uXKPXIpHbCkf1pXyjmFYI9qS5N2YYEdGlo2UBK_wSmm1yBVpv6arLUHbflhMtEo9A9ja5TW-qO6YsX_uBwF7MeG?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 4

输入验证码后，密码将成功更改。现在您可以使用新密码登录您的账户。


# 修改密码

了解如何通过三个简单的步骤更改小猪云上的密码。

### 步骤 1&#x20;

使用您的邮箱和密码[登录账户](https://vps.littlepig.tech/login)。进入侧边栏中的“我的账户”，然后点击“更改密码”。

<figure><img src="/files/q6qXAmF12HEWNltRnlKR" alt=""><figcaption></figcaption></figure>

### 步骤 2&#x20;

输入您的当前密码和新密码。请确保使用强大且安全的密码。

{% hint style="info" %}
密码长度需为8-20个字符，包括大写字母、小写字母、数字和特殊字符。
{% endhint %}

<figure><img src="/files/0yL3TyrSoE5qEq3SbEaE" alt=""><figcaption></figcaption></figure>

### 步骤 3

点击“确定”，您的密码将成功更改。现在您可以使用新密码登录您的账户。<br>


# 支付和账单

您可以在这找到所有与支付、余额和账单相关的信息。

{% hint style="info" %}
注意：在「创建实例」或购买「流量套餐」之前，请确保你已先充值。当你尚未充值就直接创建实例时，会在页面上方跳出「帐户余额不足」的警讯。
{% endhint %}

{% content-ref url="/pages/6WfzowmcksOWAlTGQIC6" %}
[用USDT进行帐户充值](/zh-cn/docs/payment/usdt)
{% endcontent-ref %}

{% content-ref url="/pages/yftco5zN33Q6sBtxR7kS" %}
[用信用卡进行帐户充值](/zh-cn/docs/payment/credit-card)
{% endcontent-ref %}

{% content-ref url="/pages/otyqPX5rieLTvNEXRQKP" %}
[账单信息和历史记录](/zh-cn/docs/payment/payment-record)
{% endcontent-ref %}


# 用USDT进行帐户充值

学习如何使用USDT为小猪云账户充值。

### 步骤 1&#x20;

登录您的[小猪云账户](https://vps.littlepig.tech/login)。进入侧边栏中的“账户充值”页面。

<figure><img src="/files/e5xmZ7AdOI5sDdRaWbwe" alt=""><figcaption></figcaption></figure>

### 步骤 2&#x20;

输入充值金额并选择支付方式为“USDT”。然后点击“下一步”。

<figure><img src="/files/5ffPAhuw6UIqdAjPLz5d" alt=""><figcaption></figcaption></figure>

### 步骤 3&#x20;

按照指示将USDT转账至提供的钱包地址。

{% hint style="danger" %}
付款需在规定时间内完成，系统会立即为账户充值。**请勿重复付款！！！**
{% endhint %}

{% hint style="warning" %}
请按照支付页面指定的支付方式进行操作。

支付方式:

1. 打开钱包，扫描二维码或复制“提币地址”并粘贴到钱包中。
2. 请务必选择“TRC20”进行支付
3. 输入要充值的USDT金&#x989D;**（请自行扣除手续费）**。
4. 确认转账的“实际收到金额等于充值金额”。
5. 转账完成后，点击“我已支付”按钮完成充值，请耐心等待积分到账。
   {% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeqD631wvnCkvovL1MMS_M-5394S27zDrxbENdfaDo_qUKwujsygpRI1-u8iksFyzyYFofuy02CFEVY7r0aSu6SxkCcV2D_u-fzMfvP71qmduV6EzmJvkbWrj5-7evaBjcji-SqIyrjg0uB1wSzJurpcHNE?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

您可以从钱包中扫描二维码，或通过复制地址手动输入。请确保选择正确的网络（TRC20或支付页面显示的网络）。

<figure><img src="/files/g0H23OfnIILEbAcOIPsZ" alt="" width="209"><figcaption></figcaption></figure>

{% hint style="info" %}
注意：请务必在支付金额中包含网络手续费。
{% endhint %}

### 步骤 4

根据您使用的钱包，完成提币确认。现在等待USDT转账，并在钱包中收到确认。

{% hint style="info" %}
在联系客服处理支付问题之前，请确保已从支付提供商处收到确认信息。
{% endhint %}

<figure><img src="/files/BgBqP9F7RawPZJ9mYN5C" alt="" width="208"><figcaption></figcaption></figure>

### 步骤 5

. 一旦在钱包中收到确认，返回“小猪云”页面，点击“我已支付”。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_EE_ALjh22xBvsy0Z3Xjqz_LuNXcsFkumKGj46cn5fFzwcyLmHA0dH00DAjZMRL_iprKe4cAfkxRoDoMoQLbwRc2X-GzTTD62E002x0bc-HAHmHoNkk-_6RxPWWYVgnlYC6mVYV8VWqeQPUNa017PIkMr?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 6&#x20;

您应该在“账户记录”中看到您的充值记录。请记住，充值金额到账可能需要一些时间。切勿重复付款！！！

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcwvVhxvJflk5OYxfar4fTDV1lHjPgEL2JLCtH8249nyDHBXw3xKuYcuflY49jByCoKIcxbIU8l46zFt56O0DQCwAjcBdOQJVffd0TYbm4-RZyzG5-TfRp8yPOP_kAerNXZj7iZVP4FwyKwwZy1LeoEQvI?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# 用信用卡进行帐户充值

学习如何使用信用卡为小猪云账户充值。

### 步骤 1&#x20;

登录您的[小猪云账户](https://vps.littlepig.tech/login)。进入侧边栏中的“账户充值”页面。

### 步骤 2

输入充值金额，选择支付方式为“信用卡或借记卡”，然后点击“下一步”。

<figure><img src="/files/cRZ7hC8vaJ07mhpDLxt0" alt=""><figcaption></figcaption></figure>

### 步骤 3

输入账单邮箱和信用卡信息，然后点击“支付 Pay”。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdq0sabEIxQGmbWMI4yeCfEplb1BZP2TM1wgtm0ERL-XvI44NxQyTNM5qluh4HRho4csKagSamMvlgS3J-UBxAlSfI5MZ6e4Xt7tBWB3OTAH_mJVBUePmLVQU9O63KUbyuAxvwiU0ViYaXF-YdR2R2-tnQ?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 4&#x20;

支付成功后，您将被重新导向到“账户记录”页面，并看到如下的支付成功信息。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_dD_H6PYFPWcmGhl8SM7iVf29rMNFoSp7zZX8X5vlACGwKFjmG2axP_fF8jQX0dTToVwyBAcx5Ha-xjsZ6pJBEXSQOzh9BIErlJr-9x5s1iVNUmz8buBOugi0S42PAVRCzRp7eisytj4pP9E4f1pCBKU?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

您将在您的信用卡账户中收到如下的账单收据。

<figure><img src="/files/kyDSJjdLIlnCqhVHFnBL" alt="" width="211"><figcaption></figcaption></figure>

### 步骤 5&#x20;

确认付款。要确认付款已完成，您可以从“实例管理”页面检查您的账户余额。<br>

<figure><img src="/files/7lL98O9XCc4eLQIV2PWO" alt=""><figcaption></figcaption></figure>

或检查“账户记录”页面。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcAseHifqTY2Z2hCf3mAkXUene-9KjFvGTO5_DCJSocbESaZIa2WCAXnJ0ZbNoW7OS5U30aM9CHoeglWi0LAxNg75g0YHO8547asUxNPlXBwX1l-xGKwUeOSwKjlaT77RPBajc_5AK9pAzIjukUkhRCrXqu?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# 账单信息和历史记录

如何查看账户充值记录和月账单。

### 账户充值记录

[登录](https://vps.littlepig.tech/login)您的账户。进入侧边栏中的“账户记录”页面。<br>

<figure><img src="/files/zzvXszH9HNhdyENGJLYP" alt=""><figcaption><p>瘩</p></figcaption></figure>

### 月账单

[登录](https://vps.littlepig.tech/login)您的账户。进入侧边栏中的“月账单”页面。<br>

<figure><img src="/files/z3Wp36rnxO0VQnRGpoKA" alt=""><figcaption></figcaption></figure>


# 实例管理

您将在此部分找到所有与实例相关的信息。

{% hint style="info" %}
注意：在「创建实例」或购买「流量套餐」之前，请确保你已先充值。当你尚未充值就直接创建实例时，会在页面上方跳出「帐户余额不足」的警讯。
{% endhint %}

### 什么是实例管理？

“实例管理”就是你购买“手机”，且不同机型内含不同的“固定的话费”。

{% content-ref url="/pages/GrIEyB8tKAdGELVBxgpY" %}
[在AWS (亚马逊云)上创建虚拟机](/zh-cn/docs/instance-management/aws-vps)
{% endcontent-ref %}

{% content-ref url="/pages/L4utf49TQPrhs05nslfk" %}
[在GCP (谷歌云)上创建虚拟机](/zh-cn/docs/instance-management/gcp-vps)
{% endcontent-ref %}

{% content-ref url="/pages/rNr0w9l3GgEfKFFkz6hC" %}
[获取价格实惠的Lightsail套餐虚拟机](/zh-cn/docs/instance-management/lightsail-vps)
{% endcontent-ref %}


# 在AWS (亚马逊云)上创建虚拟机

学习如何在小猪云中从AWS (亚马逊云) 创建虚拟机。

### 步骤 1

[登录](https://vps.littlepig.tech/login)您的小猪云账户。从侧边栏进入“实例管理”页面，点击“创建实例”按钮。

<figure><img src="/files/dZRqbUXAMUECMUkEz7xe" alt=""><figcaption></figcaption></figure>

### 步骤 2&#x20;

从平台中选择“AWS”。为您的VPS输入名称并选择区域。<br>

<figure><img src="/files/M7OJptxpd2zAkC5W9wVr" alt=""><figcaption></figcaption></figure>

选择适合您使用场景的VPS配置。<br>

<figure><img src="/files/eyJBZpIL5ysoGTSL9d0w" alt=""><figcaption></figcaption></figure>

选择作业系统、磁盘大小和购买时长。<br>

<figure><img src="/files/ygDCWB2NQTO4xfl6mMKT" alt=""><figcaption></figcaption></figure>

为您的VPS实例输入密码，然后点击“确认”。

{% hint style="info" %}
密码长度需为8-20个字符，包括大写字母、小写字母、数字和特殊字符。
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcLrc4eMO91VUgd7zTxnSVsTIPPg_LlrI4bq71kxg5IuAwOm01__TbrYzZhzG8CFStFuMPViPjMVe4NRTj0QxtysoCqwvO-35MRQWx1Ii3X1Rh10oj2fTpUH1Z-V1pRk5yu3pTiLEIQEOamQbLGYRbAr_57?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 3

完成确认操作。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXezM8EcWHq4Jt6GPmvdMMZ08Ct28xRGkZEKsAHA6OkYlCRQiJtnYw4XskwXMLNFbYHoHhwvTEEV__WnRymn-5VkxEQbopEXu-j_6H1nJXUrdc5Z9WVU8A7iR29jv9alXbkHD6CNJVebOUwSOlNduaCYTfkY?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 4

从“实例管理”页面访问VPS。您可以使用用户名“root”和您提供的密码通过SSH登录。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfLThdLmjKxkDDeActdouBUa2tonu18veEYulpky3ZQoFfjEslEn2tBIKBfAgupSIsHRoobiREhNjReX4ZMwcFcYDood5b51G0bpw-u0kRhx9VH3Sjr3U_RsjRWWB41i6B_a9SEp9VLi3Vji9vSV8Vao7LY?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# 在GCP (谷歌云)上创建虚拟机

学习如何在小猪云中从GCP (谷歌云) 创建虚拟机。

### 步骤 1

[登录](https://vps.littlepig.tech/login)您的小猪云账户。从侧边栏进入“实例管理”页面，点击“创建实例”按钮。

<figure><img src="/files/dZRqbUXAMUECMUkEz7xe" alt=""><figcaption></figcaption></figure>

### 步骤 2

从平台中选择“GCP”。为您的VPS输入名称并选择区域。<br>

<figure><img src="/files/bx28czSMfBVjBZ0OBKRq" alt=""><figcaption></figcaption></figure>

选择所需的实例类型。<br>

<figure><img src="/files/QQBjnvNZpUF4djW8FhSL" alt=""><figcaption></figcaption></figure>

选择作业系统、磁盘大小和购买时长。<br>

<figure><img src="/files/yDOrLkMyBBQRI4YrWpb7" alt=""><figcaption></figcaption></figure>

为您的VPS实例输入密码，然后点击“确认”。

{% hint style="info" %}
密码长度需为8-20个字符，包括大写字母、小写字母、数字和特殊字符。
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeXDEBlHPKXSiElARjiYn31Zcld4jJGahi0JORz3IdvMqlmHdP24P-YVYTUq9ULPFeFAIkZd3ruPdIyTeVGEnhuiNu2YKzGTt4wPZgH1294EJcPNYJaxTjzIAq3oS-06v0TcouXArBZIFa-9DJpo3a4H7w?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 3

完成确认操作。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcdQnkbBGbWFgjAlntdxrxSXAtxM5IvkecdBGxKbqgsdHYYLEsB6kP7O78NVGOk-bMeE4PIwR1PPaujBcNBIXi7r1f4o-MgtAJGHwEfdegrWHK8G7WGlOYXrI5JmhNSVKylC6oKf9ujHA_d3MfhCivuVynT?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

<br>


# 获取价格实惠的Lightsail套餐虚拟机

在小猪云上获取AWS (亚马逊云)/ GCP (谷歌云) 价格实惠的VPS套餐。

### 步骤 1:

[登录](https://vps.littlepig.tech/login)您的小猪云服务器账户。进入侧边栏中的“实例管理”页面。点击“创建实例”按钮（也就是创建虚拟机）。

<figure><img src="/files/dZRqbUXAMUECMUkEz7xe" alt=""><figcaption></figcaption></figure>

### 步骤 2

从平台中选择“AWS”。为您的VPS输入名称，并选择区域。<br>

<figure><img src="/files/MGtA0eCZawEX0acOVpoI" alt=""><figcaption></figcaption></figure>

### 步骤 3

从规格中选择“套餐型”。挑选最符合您需求的实例类型。<br>

<figure><img src="/files/PC19kRlxF3qksStd3lSo" alt=""><figcaption></figcaption></figure>

根据您的需求选择作业系统。<br>

<figure><img src="/files/ZVEfSZsASijU6H1bWFJf" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
在”套餐型“中，磁盘大小是预先确定的。
{% endhint %}

根据您的需求选择购买时长。<br>

<figure><img src="/files/E7o5V1xN9lR4Gdt4RPdF" alt=""><figcaption></figcaption></figure>

为您的VPS实例输入密码，然后点击“确认”。

{% hint style="info" %}
密码长度需为8-20个字符，包括大写字母、小写字母、数字和特殊字符。
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd-2sxdS2WNeSoqgyPvXBEYycVpu-wRfvFDYVTVwgF0QKD7YHzEP3GmQ2kMG9ONUHQCzZer8yugvkDMACPDLMiRHKpG9lhjgMCiVVy-WbnkQjxIlqdtOPhrwcmh6s8ZCLU7Ua_xofxII3yuNHVuDf48v4I_?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 4

完成确认提示，您将成功创建您的VPS。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXddp5aHg5q5bIzVE2g56993i0aElAxW0mcf2pVZDzMUWZtSvq775N07BosnZD7737LlXXzTOnbZOUGldw9_faByDZw4JzjJx6Ge_3T7cbHnx0RVmkjSAXUCVHw5hxE7K3CNMcPNtERNyr3J2dP-YBgoLILg?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 5&#x20;

从 “实例管理” 页面访问您的VPS。您可以使用用户名“root”和您提供的密码通过SSH登录。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmPGVr8UYP5Q34y7lenxTZ69zs0PSo7IHNNo-G-M1bwM1dt0fqExdRuP0YDHNhNAbb0Gerjs_iqNa8RZY2Fxya5RwG2-BZbgQl41cFZnv5Fw4ysg5g3YdniB8-z2-y-S1ASZVksUOjdMnM71Dx5rWvaXxd?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# AI 智能平台

「配置生成式AI API」的相关信息

## 取得 API 金鑰

請從「[AI API 串接](https://console.littlepig.cloud/login)」標籤中進入「AI 設定管理」頁面，點選「開通服務」按鈕進入設定頁，並依指示完成確認流程。

<figure><img src="/files/YlJpc5wCxjRnjG3py12X" alt=""><figcaption></figcaption></figure>

要取得 API 金鑰，請點選「查看」。系統可能會要求您輸入帳戶密碼以進行驗證。

## 設定 AI API

**API** 網域： `https://sgai.littlepig.cloud`\
端點（Endpoint）： `/anthropic/v1/messages`\
通訊協定：HTTPS\
請求方式：POST\
請求內容格式：Serialized JSON format

### 請求結構

#### 必要的標頭（Headers）

| 標頭名稱           | 類型         | 說明                       |
| -------------- | ---------- | ------------------------ |
| `x-api-key`    | 字串（string） | 從後台管理系統取得的驗證金鑰。          |
| `Content-Type` | 字串（string） | 一定要是 `application/json`. |

#### 請求資料定義

| 參數            | 類型              | 是否必填  | 說明                                                        |
| ------------- | --------------- | ----- | --------------------------------------------------------- |
| `model`       | 字串（string）      | **是** | 使用的 Claude 模型。                                            |
| `max_tokens`  | 整數（integer）     | **是** | 生成的最大 token 數。                                            |
| `messages`    | 物件陣列（object\[]） | **是** | 對話歷史紀錄（請參見「**訊息格式**」說明）。                                  |
| `stream`      | 布林值（boolean）    | 否     | 以 Server-Sent Events（SSE）方式串流回應。                          |
| `system`      | 字串（string）      | 否     | 系統級提示詞（system-level prompt）。                              |
| `temperature` | 數值（number）      | 否     | 0.0 至 1.0；數值越低越具決定性，數值越高越具創造力。                            |
| `top_p`       | 數值（number）      | 否     | Nucleus sampling 比例。請根據需求調整`temperature` **或** `top_p`其一。 |
| `tools`       | 物件陣列（object\[]） | 否     | 模型可能呼叫的外部工具定義。                                            |

***

### 單一使用情境 — 基本對話功能

```bash
curl https://sgai.littlepig.cloud/anthropic/v1/messages   -H "x-api-key: $API_KEY"   -H "anthropic-version: 2023-06-01"   -H "Content-Type: application/json"   -d '{
    "model": "claude_37_sonnet",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Hello, world" }
    ]
  }'
```

***

### 訊息格式

#### 純文字格式（簡化版）

```json
{ "role": "user", "content": "Hello, Claude" }
```

#### 明確內容區塊（Explicit Content Blocks）

每則輸入訊息的內容可以是單一字串，或是一組具有特定類型的內容區塊陣列。\
若直接使用字串作為內容，則等同於只含有一個類型為 `"text"` 的內容區塊。\
以下兩種輸入訊息格式是等效的：

```json
 {"role": "user", "content": "Hello, Claude"}
```

```json
{ "role": "user", "content": [ { "type": "text", "text": "Hello, Claude" } ] }
```

#### 多輪對話（Multiple Conversational Turns）

```json
[
  { "role": "user", "content": "Hello there." },
  { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
  { "role": "user", "content": "Can you explain LLMs in plain English?" }
]
```

#### 部分回應填充（Partially‑filled Response）

```json
[
  { "role": "user", "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun" },
  { "role": "assistant", "content": "The best answer is (" }
]
```

#### 圖片 + 文字

```json
{
  "role": "user",
  "content": [
    {
      "type": "image",
      "source": {
        "type": "base64",
        "media_type": "image/jpeg",
        "data": "/9j/4AAQSkZJRg..."
      }
    },
    { "type": "text", "text": "What is in this image?" }
  ]
}
```

支援的圖片格式： `image/jpeg`, `image/png`, `image/gif`, `image/webp`.

***

### 工具定義結構（**Tool Definition Schema）**

若您在 API 請求中包含工具（tools），模型可能會回傳 `tool_use` 類型的內容區塊，表示模型正在使用這些工具。\
接著，您可以依照模型所產生的工具輸入（tool input）來執行對應的工具，並可選擇性地透過 `tool_result` 類型的內容區塊，將執行結果回傳給模型。

| 欄位名稱（Field）    | 類型         | 是否必填  | 說明               |
| -------------- | ---------- | ----- | ---------------- |
| `name`         | 字串（string） | **是** | 工具名稱。            |
| `description`  | 字串（string） | 否     | 工具的用途說明。         |
| `input_schema` | 物件（object） | **是** | 工具輸入的 JSON 結構描述。 |

```json
[
    {
        "name": "get_stock_price",
        "description": "Get the current stock price for a given ticker symbol.",
        "input_schema": {
            "type": "object",
            "properties": {
                "ticker": {
                    "type": "string",
                    "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
                }
            },
            "required": [
                "ticker"
            ]
        }
    }
]
```

***

### 回應資料定義（Response Data Definition）

| 欄位名稱                  | 說明                        |
| --------------------- | ------------------------- |
| `content`             | Claude 所產生的內容區塊。          |
| `id`                  | 訊息 ID。                    |
| `model`               | 回應內容所使用的模型名稱。             |
| `role`                | 角色，一律為 `assistant`        |
| `stop_reason`         | 為何停止生成內容（例如： `end_turn`）。 |
| `usage.input_tokens`  | 請求中所使用的 token 數量。         |
| `usage.output_tokens` | 回應中所產生的 token 數量。         |

#### 範例

```json
{
    "id": "msg_bdrk_01FTuLJMy9aYU5TQhK14rMsE",
    "type": "message",
    "role": "assistant",
    "model": "claude-3-7-sonnet-20250219",
    "content": [
        {
            "type": "text",
            "text": "Hello! How can I assist you today? Feel free to ask me any questions or let me know what you'd like to talk about."
        }
    ],
    "stop_reason": "end_turn",
    "stop_sequence": null,
    "usage": {
        "input_tokens": 10,
        "cache_creation_input_tokens": 0,
        "cache_read_input_tokens": 0,
        "output_tokens": 31
    }
}
```

***

### 串流事件 (`stream=true`)

| 事件                    | 載荷內容              |
| --------------------- | ----------------- |
| `content_block_delta` | 部分 token 或工具輸入資料。 |
| `error`               | 錯誤細節。             |

範例：

```
event: content_block_delta
data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"ello frien"}}

event: error
data: {"type":"error","error":{"type":"overloaded_error","message":"Overloaded"}}
```

工具呼叫串流：

```
event: content_block_delta
data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{"location":"San Fra"}"}}
```

***

### 工具呼叫操作說明

```bash
curl https://api.anthropic.com/v1/messages \
  -H "content-type: application/json" \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-3-7-sonnet-20250219",
    "max_tokens": 1024,
    "tools": [
      {
        "name": "get_weather",
        "description": "Get the current weather in a given location",
        "input_schema": {
          "type": "object",
          "properties": {
            "location": {
              "type": "string",
              "description": "The city and state, e.g. San Francisco, CA"
            }
          },
          "required": ["location"]
        }
      }
    ],
    "messages": [
      {
        "role": "user",
        "content": "What is the weather like in San Francisco?"
      }
    ]
  }'
```

***

### 延伸閱讀

<https://docs.anthropic.com/en/api/messages>

### 價格

{% hint style="info" %}
模型價格可能會有所變動，請前往設定[管理頁面](https://console.littlepig.cloud/login)查看最新價格資訊。
{% endhint %}

| Model              | Price / 1 000 input tokens | Price / 1 000 output tokens |
| ------------------ | -------------------------- | --------------------------- |
| claude\_3\_haiku   | $0.00025                   | $0.00125                    |
| claude\_3\_sonnet  | $0.003                     | $0.015                      |
| claude\_3\_opus    | $0.015                     | $0.075                      |
| claude\_35\_haiku  | $0.0008                    | $0.004                      |
| claude\_35\_sonnet | $0.003                     | $0.015                      |
| claude\_37\_sonnet | $0.003                     | $0.015                      |

{% hint style="warning" %}
若要停用 API 存取，請在設定[管理頁面](https://console.littlepig.cloud/login)中點選「關閉服務」按鈕。
{% endhint %}


# Google Workspace


# 谷歌企业邮箱

学习如何于小猪科技中自助下单 Google Workspace。

## 步骤 1

[登入](https://console.littlepig.cloud/login)您的小猪云帐户 → 首页 → 服务项目 → 选取 「Google Workspace」。

或者直接点选左侧菜单栏的 「Google 企业邮箱」。

<figure><img src="/files/FX5m8iHVxUFfgBFYScTN" alt=""><figcaption></figcaption></figure>

## 步骤 2

选取→「创建谷歌企业邮箱」。

<figure><img src="/files/W9d5U2weXYtRLrMncdjo" alt=""><figcaption></figcaption></figure>

## 步骤 3

填入相关资讯，系统会根据填入的联络资讯新增为管理员帐户，初始管理员预设为 admin\@domain。

备用电子邮件地址请输入“不属于” 客户主网域的电子邮件地址。

<figure><img src="/files/uSb90KGVzlAylUn1hZbR" alt=""><figcaption></figcaption></figure>

## 步骤 4

选择想要的版本，点选 ”选择”，可以查看方案细节。

<figure><img src="/files/bRH5gQ2rE4mqasZiIDlw" alt=""><figcaption></figcaption></figure>

## 步骤 5

于空格框中输入欲授权的 user 数量→创建。

<figure><img src="/files/5mv3YFtITiZkZt4J3JLr" alt=""><figcaption></figcaption></figure>


# 谷歌 workspace 激活流程

学习如何于小猪科技中激活谷歌 Workspace。

## 步骤1

前往管理控制台找回(重置)管理员密码

<figure><img src="/files/xiTKDejbzTopw6D4rdAV" alt=""><figcaption></figcaption></figure>

1.1 输入管理员邮箱地址 固定为admin@创建域名，点击下一步

<figure><img src="/files/mRY43qGhHHqGd91dxyXZ" alt=""><figcaption></figcaption></figure>

1.2 点击 ”忘记了密码？”

<figure><img src="/files/12CDYP4Ix2hCLAknPJjh" alt=""><figcaption></figcaption></figure>

1.3 进入账号恢复页面，点击 ”试试其他方式”

<figure><img src="/files/mJjjq8M1IBBOyRFw9KhW" alt=""><figcaption></figcaption></figure>

1.4 输入在littlepig上创建企业邮箱的姓氏，名字。点击下一步。

<figure><img src="/files/dDmuwHzhLfnv61ySjxLV" alt=""><figcaption></figcaption></figure>

1.5 输入在littlepig上企业邮箱详情显示的组织名称，点击下一步

<figure><img src="/files/ZnQUGSSDBs81qjQziLvG" alt=""><figcaption></figcaption></figure>

1.6 输入在littlepig上企业邮箱详情显示的人数，点击下一步

<figure><img src="/files/2J0bpV90R12m43Pl9Bpy" alt=""><figcaption></figcaption></figure>

1.7 域名验证解析，使用创建的域名进行CNAME解析：

记录类型：CNAME

主机记录(域名前缀)：页面显示上3.项的标签

记录值：页面显示上3.项的作为目的

添加解析完成，点击下一步

<figure><img src="/files/zJriasQeMA92UVDf3nEM" alt=""><figcaption></figcaption></figure>

1.7.1 Littlepig解析示例如下，其他DNS服务商根据实际情况进行操作：

<figure><img src="/files/0vdtY9XmyBwPZePPb2Fl" alt=""><figcaption></figcaption></figure>

1.8 成功添加1.7步骤的CNAME解析后进入服务条款确认页面，点击”我了解”继续

<figure><img src="/files/dIKrmnRq5Mt7mkcxNaiY" alt=""><figcaption></figcaption></figure>

1.9 设置管理员新密码，输入后点击”更改密码”进入下一步

<figure><img src="/files/eRrtrAXjfg7t1UwIXTAD" alt=""><figcaption></figcaption></figure>

1.10 同意服务条款，进入下一步

<figure><img src="/files/QCyLUfrEsAtt2G8N3sKZ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/pQzalsGua5akiOG7WXmN" alt=""><figcaption></figcaption></figure>

## 步骤2

进行域名解析验证以域名邮箱激活

2.1 完成1.10后自动跳转到workspace控制台，点击顶部Verify前往域名验证

<figure><img src="/files/tRe7WUbv8jAiG0bUkj8P" alt=""><figcaption></figcaption></figure>

2.2 点击Get started继续

<figure><img src="/files/XfvfeIVzdc0Xf7xpn9ry" alt=""><figcaption></figcaption></figure>

2.3 选择域名DNS服务上，根据自己域名实际情况选择

<figure><img src="/files/I6YtPs5OJcJUNHtntEpm" alt=""><figcaption></figcaption></figure>

2.4 为域名添加页面上显示的对应的TXT和CNAME的解析记录

<figure><img src="/files/4dtcMI1lpstqH3eW22O8" alt=""><figcaption></figcaption></figure>

2.4.1 Littlepig解析示例如下，其他DNS服务商根据实际情况进行操作：

<figure><img src="/files/DZYgg8tCoJJm2GUHmApm" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/0R6cIugl0N1GXfDTSsI7" alt=""><figcaption></figcaption></figure>

2.5 成功添加解析记录后勾选CheckBox点击Confirm进入解析验证

<figure><img src="/files/xfViTwQdXR47WlFhaCN7" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WTUGTBOFzkNeKIGZsf2P" alt=""><figcaption></figcaption></figure>

2.6 域名解析验证通过开始进行邮箱激活

<figure><img src="/files/r65mChI1BvwO6w63lIGE" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dlzvbiX0jrJ6YOpZKg6t" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/F0WNGpTmIyioqkuQqqav" alt=""><figcaption></figcaption></figure>

2.7 为域名添加MX记录值，完成解析记录添加后勾选CheckBox点击Confirm进入解析验证

<figure><img src="/files/SAJ3y4pgrM9kWfO7w3Tj" alt=""><figcaption></figcaption></figure>

2.7.1 Littlepig解析示例如下，其他DNS服务商根据实际情况进行操作：

<figure><img src="/files/ax1LmOQweyTDEyzIvaw2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1PwpEdDaTPn1466uutPS" alt=""><figcaption></figcaption></figure>

2.8 至此完成workspace域名验证和邮箱激活流程，可开始正常使用。

<figure><img src="/files/XP36IsOwE7tsffX7uof3" alt=""><figcaption></figcaption></figure>


# 流量套餐

学习如何在小猪云上购买流量套餐。

### 什么是流量套餐？

举例来说，“实例管理”就是你手机原本内含的“固定的话费”，当话费用罄时，就需要充值才能继续使用，而“流量套餐”就是“你加购的话费”。

### 怎么看是否要加购流量套餐？

当你在“流量套餐”内，看到用量条快满条（用罄）时，就可以购买和您在“实例管理”相符平台的“流量套餐”。\
注意：若您在“实例管理”是购买GCP平台的机器，您的流量套餐就需要买GCP的。

<figure><img src="/files/rHYF9OTsm9HnJB3V4z6f" alt=""><figcaption></figcaption></figure>

### 步骤 1

[登录](https://vps.littlepig.tech/login)您的小猪云服务器账户。进入“流量套餐”页面，点击“购买流量套餐”。<br>

<figure><img src="/files/ORHeXy8HTL8b28IEGUdT" alt=""><figcaption></figcaption></figure>

### 步骤 2&#x20;

选择合适的平台与流量套餐，然后点击“确定”。

<figure><img src="/files/eWxTl11wD7Ds9AJUBmu4" alt=""><figcaption></figcaption></figure>

### 步骤 3&#x20;

通过刷新“流量套餐”页面来确认订单资讯。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf3gBsIv6SfVRFJfdocUbqQuEirr6TgiFMCUWRFquKwQvCKhxxEM0SlO13Yau2JLrMTH8oYQ3PW_nSuOozm9BacPYyyU7wAJG9LTM-ifR1YzuvSKct3JRfYQ0osufVWN839D51cQz5ewp8NRd9d6G3gWSTi?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

<br>


# 客服

小猪云提供7x24小时技术支持。请通过 [Telegram](https://t.me/vpslittlepig)、[WhatsApp](https://wa.me/85294609418) 或[ 电子邮件](mailto:support@littlepig.tech)联系我们。我们的团队将尽快回答您的任何问题！


# 常见问题

关于小猪云的一些常见问题

<details>

<summary>为什么选择小猪云？</summary>

小猪云将多个云服务提供商的资源结合起来，提供最简单的云解决方案。我们的服务简化了云操作，无论是初学者还是专业人士都能轻松使用。

</details>

<details>

<summary>小猪云安全吗？</summary>

当然安全！小猪云只选择顶级的云服务提供商作为合作伙伴，稳定性和安全性在全球都是最顶尖的。

</details>

<details>

<summary>如果我需要的不仅仅是 VPS 怎么办？</summary>

小猪云不仅提供VPS，还有更多服务。请联系我们了解更多详细信息！

</details>

<details>

<summary>AWS（亚马逊云）/GCP（谷歌云） 和小猪云服务器之间有什么区别？</summary>

小猪云提供简易的 AWS（亚马逊云）和 GCP（谷歌云）解决方案，没有复杂的界面，并支持多种支付方式，让您更方便使用。

</details>

<details>

<summary>如何联系小猪云服务器客服？</summary>

小猪云客服提供 24/7 客户服务。请通过 [Telegram](https://t.me/vpslittlepig)、[WhatsApp](https://wa.me/85294609418) 或[ 电子邮件](mailto:support@littlepig.tech)联系我们的客服，我们会尽快回答您的任何问题！

</details>


# 小豬科技教學文件

小豬科技官方教學文件

## 概述

小豬科技是領先的雲端伺服器供應商，直接利用**AWS**和**GCP**的雲端基礎設施，提供高性能的VPS服務。我們不僅提供類似於**EC2**實例的高性能VPS，還為個人用戶提供類似於AWS **Lightsail**實例的普通VPS。<br>

在小豬科技，我們提供靈活的支付選項，包括**USDT、MasterCard、Visa、Apple Pay**等。我們設計了簡易操作的用戶介面，讓您可以輕鬆從全球各地部署伺服器。這確保了您可以選擇最接近客戶或觀眾的伺服器，以獲得最佳性能。

{% embed url="<https://www.youtube.com/watch?v=YI2RYjqV3_4>" %}

## 立即開始

我們精心整理了一些實用指南，幫助您快速、輕鬆地開始使用小豬雲伺服器。

{% content-ref url="/pages/fP2re7B30vFrLJoptzQ7" %}
[註冊帳戶指南](/zh-tw/docs/start-now/register)
{% endcontent-ref %}

{% content-ref url="/pages/6WfzowmcksOWAlTGQIC6" %}
[用USDT進行帳戶儲值](/zh-tw/docs/payment/usdt)
{% endcontent-ref %}

{% content-ref url="/pages/yftco5zN33Q6sBtxR7kS" %}
[用信用卡進行帳戶儲值](/zh-tw/docs/payment/creditcard)
{% endcontent-ref %}

{% content-ref url="/pages/GrIEyB8tKAdGELVBxgpY" %}
[在AWS上創建虛擬伺服器](/zh-tw/docs/instance-management/aws-vps)
{% endcontent-ref %}

{% content-ref url="/pages/L4utf49TQPrhs05nslfk" %}
[在GCP上創建虛擬伺服器](/zh-tw/docs/instance-management/gcp-vps)
{% endcontent-ref %}

{% content-ref url="/pages/rNr0w9l3GgEfKFFkz6hC" %}
[獲取價格實惠的Lightsail套餐虛擬伺服器](/zh-tw/docs/instance-management/lightsail-vps)
{% endcontent-ref %}

{% content-ref url="/pages/xjdnQpvMT8ax69Ec5pJK" %}
[流量套餐](/zh-tw/docs/data-plan)
{% endcontent-ref %}

{% content-ref url="/pages/1za96TouICqHPqTsUPAX" %}
[客服](/zh-tw/docs/support)
{% endcontent-ref %}

{% content-ref url="/pages/XRQabR2lqvkamrYnrOdx" %}
[常見問題](/zh-tw/docs/faqs)
{% endcontent-ref %}


# 我們在做什麼

簡單介紹一下小豬科技以及它的優點。

## 什麼是小豬科技

[**小豬科技**](https://www.littlepig.cloud/)為企業簡化 AI 與雲端解決方案，專注於 AI 應用程式管理、雲端服務（**AWS、騰訊雲、GCP、阿里雲**）以及商業溝通工具，例如**全球簡訊**與**商務電子郵件**。我們的 **「小豬 AI 聚合平台」** 簡化了 AI 部署流程，讓企業無需技術專業即可輕鬆管理應用程式。&#x20;

我們提供安全、靈活且具成本效益的解決方案，協助企業實現數位轉型，降低營運成本、提升效率，並增強市場競爭力。我們的服務包含 雲端部署、直播優化 及 AI 驅動的數據分析，根據企業的獨特需求量身定制。 小豬科技提供[ **24/7 全天候支援**](https://lin.ee/aWknslO)，並接受多種彈性付款方式，包括**加密貨幣、信用卡和 Apple Pay**，讓企業在數位化時代輕鬆茁壯發展。立即[聯絡小豬科技](https://lin.ee/aWknslO)，探索我們如何助力您的企業成功！<br>

{% embed url="<https://www.youtube.com/watch?v=YI2RYjqV3_4>" %}


# 立即開始

按照教程在小豬科技上創建帳號，並開始使用基於AWS和GCP的高性能雲端伺服器。

{% content-ref url="/pages/fP2re7B30vFrLJoptzQ7" %}
[註冊帳戶指南](/zh-tw/docs/start-now/register)
{% endcontent-ref %}

{% content-ref url="/pages/udN7qPWeHFvlpAdHDHDv" %}
[小猪科技介面導覽](/zh-tw/docs/start-now/official-website)
{% endcontent-ref %}


# 註冊帳戶指南

## 如何在小豬科技上註冊賬號

通過簡單幾個步驟，學習如何在小豬科技上註冊帳號。

### 步驟 1

進入[小豬科技首頁](https://www.littlepig.tech/zh-TW)，點擊“註冊”按鈕。

<figure><img src="/files/iUKW11fI1YsrL4Sdwnqy" alt=""><figcaption></figcaption></figure>

### 步驟 2

輸入您的用戶名、信箱和密碼，用戶名和信箱必須是唯一的，並請為您的帳戶選擇一個強大的密碼。

<figure><img src="/files/ZQbTErY7EmrS6iwxsZGA" alt=""><figcaption></figcaption></figure>

### 步驟 3

通過輸入發送到您提供的信箱的OTP驗證碼來驗證您的帳戶。

<figure><img src="/files/Gm5dOyFYOWA9BPLEIFjv" alt=""><figcaption></figcaption></figure>

這是您在信箱中會收到的信件內容。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeWfxKwsqufBdaUj2CSaDk-yWQpmKAseqpF1odh9C6j1Qn9kD_xN1Hceak3GF07RzQE-7bhXDQa6gh5ujfla-jHf4x7Uv08Uw7uyBnQzcfTjP2unuy_sfoOyOrA5mTkRul4pnTH_e3Sxdw6GFCE2RwQt7mq?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 4&#x20;

複製並貼上驗證碼到驗證頁中。然後您將看到“註冊成功”的提示訊息。現在您可以使用創建時的信箱地址和密碼登錄您的帳戶。

<figure><img src="/files/B4f3SSlQTEQ1Y94HBWzt" alt=""><figcaption></figcaption></figure>


# 小猪科技介面導覽

### 帳戶儲值

{% hint style="info" %}
在「創建實例」或買「流量套餐」之前，**請確保你已先儲值**。當你尚未儲值就直接創建實例時，會跳出「帳戶餘額不足」的警訊。
{% endhint %}

帳戶儲值頁面允許您透過USDT和信用卡或簽帳金融卡為您的帳戶儲值。

<figure><img src="/files/M1MQYiJoBNjEFB1pM2ez" alt=""><figcaption></figcaption></figure>

### 實例管理

實例管理頁面允許您查看所有已購買的VPS、它們的狀態和相關訊息。您可以從實例列表中進行搜索和篩選。您還可以在此頁面創建虛擬機並充值帳戶餘額。

<figure><img src="/files/J2AuUnZPK5qRBJLqHLCC" alt=""><figcaption></figcaption></figure>

### 流量套餐

流量套餐頁面允許您監控所有實例的流量使用情況。您可以查看VPS平台、實例名稱、使用情況、狀態、購買日期和到期日期。您還可以在此頁面購買更多的流量套餐。

<figure><img src="/files/tWqOowPKHlmJGrfjGMyp" alt=""><figcaption></figcaption></figure>

### 帳戶紀錄

帳戶紀錄頁面允許您查看所有的儲值記錄。您可以查看儲值日期、儲值金額和支付方式。

<figure><img src="/files/eQh4NDiqvZ7EW05Q18Xk" alt=""><figcaption></figcaption></figure>

### 月帳單

月帳單頁面顯示您從 VPS 到資料計劃的所有支出記錄。您也可以根據特定日期篩選購買歷史。

<figure><img src="/files/Viiigw15ZUJQzmqIMGrc" alt=""><figcaption></figcaption></figure>

### 我的帳號

我的帳號頁面讓您查看帳戶詳細資料，也可以更改密碼。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFAeuhvu58FwCXtdqRpXDFafxpxWU11yUFA5HeI67E1L3qdUfJ_wAStxbubwv1pZMCNMMCjhvVI7SYfn4e2UamvlVt2v15IJXYGgBtBiDU25bixF9nx3lD1d3To1rBgD0JI0BMIw1oftQXc-dMCDHIk9DS?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# 帳戶管理

您可以在以下頁面找到有關恢復密碼和修改密碼的資訊。

{% content-ref url="/pages/mhiU1KLdLSx8uEHagBxk" %}
[恢復密碼](/zh-tw/docs/account-management/find-your-password)
{% endcontent-ref %}

{% content-ref url="/pages/lgMlUUvM32lNJlCSHUWE" %}
[修改密碼](/zh-tw/docs/account-management/change-password)
{% endcontent-ref %}


# 恢復密碼

通過簡單四個步驟，學習如何在小豬科技上找回忘記的密碼。

### 步驟 1

進入[登入頁面](https://vps.littlepig.tech/login)，並點擊“忘記 用戶名/密碼”。

<figure><img src="/files/0Z21VTKWiBwsHsMlatuo" alt=""><figcaption></figcaption></figure>

### 步驟 2&#x20;

輸入您註冊的信箱地址，並提供您的新密碼。

{% hint style="info" %}
在您驗證信箱地址之前，密碼不會被更改。
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc8YhX5HqiXZ81M1TLq-qQiVD_ko0GGAxRmeJGx-qdrR_THziesXOaOzqdWDJeNAnweER-_pX17zWoiAwiKEcgnnbali1oTrFiktMDY9F0mlN4Wqltpb8vMGw6Z-6Vsbh9i9E_qM33eP_UoJKVzUmQU7OE?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 3&#x20;

輸入發送到您信箱的OTP驗證碼。

<figure><img src="/files/9aQw8kf6ZYs8z1PUJX0Q" alt=""><figcaption></figcaption></figure>

你會收到以下信件內容。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmxaXf_254vA5a2fYqiKcJ3lAptf7IoaNeJqUjQukp_1ttGF7Gb94z0fhVFIa_RFXK2uXKPXIpHbCkf1pXyjmFYI9qS5N2YYEdGlo2UBK_wSmm1yBVpv6arLUHbflhMtEo9A9ja5TW-qO6YsX_uBwF7MeG?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 4

輸入驗證碼後，密碼將成功更改。現在您可以使用新密碼登入您的帳號。


# 修改密碼

瞭解如何通過三個簡單的步驟更改小豬科技上的密碼。

### 步驟 1&#x20;

使用您的信箱和密碼[登入帳戶](https://vps.littlepig.tech/login)。進入側邊欄中的“我的帳號”，然後點擊“更改密碼”。

<figure><img src="/files/q6qXAmF12HEWNltRnlKR" alt=""><figcaption></figcaption></figure>

### 步驟 2&#x20;

輸入您的當前密碼和新密碼。請確保使用強大且安全的密碼。

{% hint style="info" %}
密碼長度需為8-20個字符，包括大寫字母、小寫字母、數字和特殊字符。
{% endhint %}

<figure><img src="/files/0yL3TyrSoE5qEq3SbEaE" alt=""><figcaption></figcaption></figure>

### 步驟 3

點擊“確定”，您的密碼將成功更改。現在您可以使用新密碼登入您的帳號。<br>


# 支付和帳單

您可以在這找到所有與支付和餘額相關的資訊。

{% hint style="info" %}
在「創建實例」或買「流量套餐」之前，**請確保你已先儲值**。當你尚未儲值就直接創建實例時，會跳出「帳戶餘額不足」的警訊。
{% endhint %}

{% content-ref url="/pages/6WfzowmcksOWAlTGQIC6" %}
[用USDT進行帳戶儲值](/zh-tw/docs/payment/usdt)
{% endcontent-ref %}

{% content-ref url="/pages/yftco5zN33Q6sBtxR7kS" %}
[用信用卡進行帳戶儲值](/zh-tw/docs/payment/creditcard)
{% endcontent-ref %}

{% content-ref url="/pages/otyqPX5rieLTvNEXRQKP" %}
[帳單資訊和歷史紀錄](/zh-tw/docs/payment/payment-record)
{% endcontent-ref %}


# 用USDT進行帳戶儲值

學習如何使用USDT為小豬雲帳戶儲值。

### 步驟 1&#x20;

登入您的[小豬科技帳號](https://console.littlepig.cloud/login)。登入後，系統將自動將您導向系統首頁。接著，點擊「儲值」按鈕，進入「帳戶儲值」頁面。

<figure><img src="/files/jnct1MJHGQBLbgWVPI9B" alt=""><figcaption></figcaption></figure>

### 步驟 2&#x20;

輸入儲值金額並選擇支付方式為「USDT」。然後點擊「下一步」。

<figure><img src="/files/5ffPAhuw6UIqdAjPLz5d" alt=""><figcaption></figcaption></figure>

### 步驟 3&#x20;

按照指示將USDT轉帳至提供的錢包地址。

{% hint style="info" %}
如果您未被導向至付款頁面，請確認您的瀏覽器沒有阻擋重導或彈出視窗。
{% endhint %}

{% hint style="danger" %}
付款需在規定時間內完成，系統會立即為帳戶儲值。請勿重複付款！！！
{% endhint %}

{% hint style="warning" %}
請按照支付頁面指定的支付方式進行操作。

支付方式:

1. 打開錢包，掃描 QRcode 或複製“提幣地址”複製並貼上到錢包中。
2. 請務必選擇“TRC20”進行支付。
3. 輸入要充值的USDT金&#x984D;**（請自行扣除手續費）**。
4. 確認轉帳的“實際收到金額等於儲值金額”。
5. 轉帳完成後，點擊“我已支付”按鈕完成儲值，請耐心等待積分到帳。
   {% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeqD631wvnCkvovL1MMS_M-5394S27zDrxbENdfaDo_qUKwujsygpRI1-u8iksFyzyYFofuy02CFEVY7r0aSu6SxkCcV2D_u-fzMfvP71qmduV6EzmJvkbWrj5-7evaBjcji-SqIyrjg0uB1wSzJurpcHNE?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

您可以從錢包中掃描 QRcode，或將「提幣地址」複製並貼到錢包中。請確保選擇正確的網路（TRC20或支付頁面顯示的網路）。

<figure><img src="/files/g0H23OfnIILEbAcOIPsZ" alt="" width="209"><figcaption></figcaption></figure>

{% hint style="info" %}
注意：請務必在支付金額中包含網路手續費。
{% endhint %}

### 步驟 4

根據您使用的錢包，完成提幣確認。現在等待USDT轉帳，並在錢包中收到確認。

{% hint style="info" %}
在聯繫客服處理支付問題之前，請確保已從支付提供商處收到確認訊息。
{% endhint %}

<figure><img src="/files/BgBqP9F7RawPZJ9mYN5C" alt="" width="208"><figcaption></figcaption></figure>

### 步驟 5

一旦在錢包中收到確認，返回“小豬科技”頁面，點擊“我已支付”。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_EE_ALjh22xBvsy0Z3Xjqz_LuNXcsFkumKGj46cn5fFzwcyLmHA0dH00DAjZMRL_iprKe4cAfkxRoDoMoQLbwRc2X-GzTTD62E002x0bc-HAHmHoNkk-_6RxPWWYVgnlYC6mVYV8VWqeQPUNa017PIkMr?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 6&#x20;

您應該在“帳戶記錄”中看到您的儲值記錄。請記住，儲值金額到帳可能需要一些時間。切勿重復付款！！！

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcwvVhxvJflk5OYxfar4fTDV1lHjPgEL2JLCtH8249nyDHBXw3xKuYcuflY49jByCoKIcxbIU8l46zFt56O0DQCwAjcBdOQJVffd0TYbm4-RZyzG5-TfRp8yPOP_kAerNXZj7iZVP4FwyKwwZy1LeoEQvI?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# 用信用卡進行帳戶儲值

學習如何使用信用卡為小豬科技帳戶儲值。

## 方法一

### 步驟 1&#x20;

登入您的[小豬科技帳號](https://console.littlepig.cloud/login)。登入後，系統將自動將您導向系統首頁。接著，點擊「儲值」按鈕，進入「帳戶儲值」頁面。

<figure><img src="/files/GfLUGGINrrPWvhYbOybA" alt=""><figcaption></figcaption></figure>

### 步驟 2

輸入儲值金額，選擇支付方式為“信用卡或簽帳金融卡”，然後點擊“下一步”。

<figure><img src="/files/cRZ7hC8vaJ07mhpDLxt0" alt=""><figcaption></figcaption></figure>

### 步驟 3

輸入帳單信箱和信用卡信息，然後點擊“支付”。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdq0sabEIxQGmbWMI4yeCfEplb1BZP2TM1wgtm0ERL-XvI44NxQyTNM5qluh4HRho4csKagSamMvlgS3J-UBxAlSfI5MZ6e4Xt7tBWB3OTAH_mJVBUePmLVQU9O63KUbyuAxvwiU0ViYaXF-YdR2R2-tnQ?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 4&#x20;

支付成功後，您將被重新導向到“帳戶記錄”頁面，並看到如下的支付成功訊息。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_dD_H6PYFPWcmGhl8SM7iVf29rMNFoSp7zZX8X5vlACGwKFjmG2axP_fF8jQX0dTToVwyBAcx5Ha-xjsZ6pJBEXSQOzh9BIErlJr-9x5s1iVNUmz8buBOugi0S42PAVRCzRp7eisytj4pP9E4f1pCBKU?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

您將在您的信用卡帳戶中收到如下的帳單收據。

<figure><img src="/files/kyDSJjdLIlnCqhVHFnBL" alt="" width="211"><figcaption></figcaption></figure>

### 步驟 5&#x20;

確認付款狀態。要確認付款是否完成，您可以從「系統首頁」檢查您的帳戶餘額。

<figure><img src="/files/dX65tXYtkyyVypqgt9rj" alt=""><figcaption></figcaption></figure>

或檢查「帳戶記錄」頁面。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcAseHifqTY2Z2hCf3mAkXUene-9KjFvGTO5_DCJSocbESaZIa2WCAXnJ0ZbNoW7OS5U30aM9CHoeglWi0LAxNg75g0YHO8547asUxNPlXBwX1l-xGKwUeOSwKjlaT77RPBajc_5AK9pAzIjukUkhRCrXqu?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

## 方法二

### 步驟1

登入您的[小豬科技帳號](https://console.littlepig.cloud/login)。登入後，從側邊欄導航至「帳戶儲值」頁面。登入後，系統會自動將您導向首頁。接著，點擊「儲值」按鈕，進入帳戶儲值頁面。

### 步驟2

輸入儲值金額，選擇付款方式為「international card」，然後點擊「下一步」。

<figure><img src="/files/9ZMSjqsThG9Miv9HnMQ3" alt=""><figcaption></figcaption></figure>

### 步驟3

現在，您將被導向至「GoAllPay Cashier」支付通道。在那裡，您可以查看有關您的付款資訊。接著，填寫付款資訊並點擊「確認付款」。

{% hint style="info" %}
您必須在30分鐘內完成付款。
{% endhint %}

<figure><img src="/files/RcpXuUNrKgfGL68pEvMM" alt=""><figcaption></figcaption></figure>

完成付款後，您應該會看到金額已新增至您的帳戶餘額中。


# 帳單資訊和歷史紀錄

如何查看帳戶儲值記錄和月帳單。

### 帳戶儲值記錄

[​登入](https://console.littlepig.cloud/login)您的小豬科技帳戶。現在將滑鼠移至右上角個人檔案，然後導航至「付款記錄」頁面。

<figure><img src="/files/g58oiOY3p3RZJF5lXypM" alt=""><figcaption></figcaption></figure>

### 月帳單

[登入](https://vps.littlepig.tech/login)您的小豬科技帳戶。進入側邊欄中的“月帳單”頁面。<br>

<figure><img src="/files/z3Wp36rnxO0VQnRGpoKA" alt=""><figcaption></figcaption></figure>


# 伺服器管理

您將在此部分找到所有與伺服器相關的資訊。

{% hint style="info" %}
在「創建實例」或買「流量套餐」之前，**請確保你已先儲值**。當你尚未儲值就直接創建實例時，會跳出「帳戶餘額不足」的警訊。
{% endhint %}

### 什麼是伺服器管理？

“伺服器管理”就是你購買“手機”，且不同機型內建不同的“固定的話費”。

{% content-ref url="/pages/GrIEyB8tKAdGELVBxgpY" %}
[在AWS上創建虛擬伺服器](/zh-tw/docs/instance-management/aws-vps)
{% endcontent-ref %}

{% content-ref url="/pages/L4utf49TQPrhs05nslfk" %}
[在GCP上創建虛擬伺服器](/zh-tw/docs/instance-management/gcp-vps)
{% endcontent-ref %}

{% content-ref url="/pages/rNr0w9l3GgEfKFFkz6hC" %}
[獲取價格實惠的Lightsail套餐虛擬伺服器](/zh-tw/docs/instance-management/lightsail-vps)
{% endcontent-ref %}


# 在AWS上創建虛擬伺服器

學習如何在小豬科技中從AWS創建虛擬伺服器。

### 步驟 1

[登入](https://vps.littlepig.tech/login)您的小豬雲帳戶。從側邊欄進入“伺服器管理”頁面，點擊“創建伺服器”按鈕。

<figure><img src="/files/dZRqbUXAMUECMUkEz7xe" alt=""><figcaption></figcaption></figure>

### 步驟 2&#x20;

從平台中選擇“AWS”。為您的VPS輸入名稱並選擇區域。

<figure><img src="/files/M7OJptxpd2zAkC5W9wVr" alt=""><figcaption></figcaption></figure>

選擇適合您使用場景的VPS配置。

<figure><img src="/files/eyJBZpIL5ysoGTSL9d0w" alt=""><figcaption></figcaption></figure>

選擇作業系統、磁碟大小和購買時長。<br>

<figure><img src="/files/ygDCWB2NQTO4xfl6mMKT" alt=""><figcaption></figcaption></figure>

為您的VPS實例輸入密碼，然後點擊“確認”。

{% hint style="info" %}
密碼長度需為8-20個字符，包括大寫字母、小寫字母、數字和特殊字符。
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcLrc4eMO91VUgd7zTxnSVsTIPPg_LlrI4bq71kxg5IuAwOm01__TbrYzZhzG8CFStFuMPViPjMVe4NRTj0QxtysoCqwvO-35MRQWx1Ii3X1Rh10oj2fTpUH1Z-V1pRk5yu3pTiLEIQEOamQbLGYRbAr_57?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 3

完成確認操作。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXezM8EcWHq4Jt6GPmvdMMZ08Ct28xRGkZEKsAHA6OkYlCRQiJtnYw4XskwXMLNFbYHoHhwvTEEV__WnRymn-5VkxEQbopEXu-j_6H1nJXUrdc5Z9WVU8A7iR29jv9alXbkHD6CNJVebOUwSOlNduaCYTfkY?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 4

從“伺服器管理”頁面訪問VPS。您可以使用用戶名“root”和您提供的密碼通過SSH登錄。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfLThdLmjKxkDDeActdouBUa2tonu18veEYulpky3ZQoFfjEslEn2tBIKBfAgupSIsHRoobiREhNjReX4ZMwcFcYDood5b51G0bpw-u0kRhx9VH3Sjr3U_RsjRWWB41i6B_a9SEp9VLi3Vji9vSV8Vao7LY?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# 在GCP上創建虛擬伺服器

學習如何在小豬科技中從GCP創建虛擬伺服器。

### 步骤 1

[登入](https://vps.littlepig.tech/login)您的小豬科技帳戶。從側邊欄進入“伺服器管理”頁面，點擊“創建伺服器”按鈕。

<figure><img src="/files/dZRqbUXAMUECMUkEz7xe" alt=""><figcaption></figcaption></figure>

### 步驟 2

從平台中選擇“GCP”。為您的VPS輸入名稱並選擇區域。<br>

<figure><img src="/files/bx28czSMfBVjBZ0OBKRq" alt=""><figcaption></figcaption></figure>

選擇所需的伺服器類型。<br>

<figure><img src="/files/QQBjnvNZpUF4djW8FhSL" alt=""><figcaption></figcaption></figure>

選擇作業系統、磁碟大小和購買時長。<br>

<figure><img src="/files/yDOrLkMyBBQRI4YrWpb7" alt=""><figcaption></figcaption></figure>

為您的 VPS 伺服器輸入密碼，然後點擊“確認”。

{% hint style="info" %}
密碼長度需為8-20個字符，包括大寫字母、小寫字母、數字和特殊字符。
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeXDEBlHPKXSiElARjiYn31Zcld4jJGahi0JORz3IdvMqlmHdP24P-YVYTUq9ULPFeFAIkZd3ruPdIyTeVGEnhuiNu2YKzGTt4wPZgH1294EJcPNYJaxTjzIAq3oS-06v0TcouXArBZIFa-9DJpo3a4H7w?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步骤 3

完成確認操作。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcdQnkbBGbWFgjAlntdxrxSXAtxM5IvkecdBGxKbqgsdHYYLEsB6kP7O78NVGOk-bMeE4PIwR1PPaujBcNBIXi7r1f4o-MgtAJGHwEfdegrWHK8G7WGlOYXrI5JmhNSVKylC6oKf9ujHA_d3MfhCivuVynT?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

<br>


# 獲取價格實惠的Lightsail套餐虛擬伺服器

在小豬科技上獲取AWS的價格實惠的VPS套餐。

### 步驟 1:

[登入](https://vps.littlepig.tech/login)您的小豬科技帳戶。進入側邊欄中的“伺服器管理”頁面。點擊“創建伺服器”按鈕。

<figure><img src="/files/dZRqbUXAMUECMUkEz7xe" alt=""><figcaption></figcaption></figure>

### 步驟 2

從平台中選擇“AWS”。為您的VPS主機輸入名稱，並選擇區域。<br>

<figure><img src="/files/MGtA0eCZawEX0acOVpoI" alt=""><figcaption></figcaption></figure>

### 步驟 3

從規格中選擇“套餐型”。挑選最符合您需求的伺服器類型。<br>

<figure><img src="/files/PC19kRlxF3qksStd3lSo" alt=""><figcaption></figcaption></figure>

根據您的需求選擇作業系統。<br>

<figure><img src="/files/ZVEfSZsASijU6H1bWFJf" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
在”套餐型“中，磁碟大小是預設好的。
{% endhint %}

根據您的需求選擇購買時長。<br>

<figure><img src="/files/E7o5V1xN9lR4Gdt4RPdF" alt=""><figcaption></figcaption></figure>

為您的VPS實例輸入密碼，然後點擊“確認”。

{% hint style="info" %}
密碼長度需為8-20個字符，包括大寫字母、小寫字母、數字和特殊字符。
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd-2sxdS2WNeSoqgyPvXBEYycVpu-wRfvFDYVTVwgF0QKD7YHzEP3GmQ2kMG9ONUHQCzZer8yugvkDMACPDLMiRHKpG9lhjgMCiVVy-WbnkQjxIlqdtOPhrwcmh6s8ZCLU7Ua_xofxII3yuNHVuDf48v4I_?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 4

完成確認提示，您將成功創建您的VPS。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXddp5aHg5q5bIzVE2g56993i0aElAxW0mcf2pVZDzMUWZtSvq775N07BosnZD7737LlXXzTOnbZOUGldw9_faByDZw4JzjJx6Ge_3T7cbHnx0RVmkjSAXUCVHw5hxE7K3CNMcPNtERNyr3J2dP-YBgoLILg?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

### 步驟 5&#x20;

從“伺服器管理”頁面訪問您的VPS。您可以使用用戶名“root”和您提供的密碼通過SSH登錄。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmPGVr8UYP5Q34y7lenxTZ69zs0PSo7IHNNo-G-M1bwM1dt0fqExdRuP0YDHNhNAbb0Gerjs_iqNa8RZY2Fxya5RwG2-BZbgQl41cFZnv5Fw4ysg5g3YdniB8-z2-y-S1ASZVksUOjdMnM71Dx5rWvaXxd?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>


# AI 智慧平台

「設定生成式AI API」的相關資訊

## 取得 API 金鑰

請從「 [AI API串接](https://console.littlepig.cloud/config_manage) 」標籤中進入「AI 設定管理」頁面，點選「開通服務」按鈕進入設定頁，並依指示完成確認流程。

<figure><img src="/files/YlJpc5wCxjRnjG3py12X" alt=""><figcaption></figcaption></figure>

&#x20;要取得 API 金鑰，請點選「查看」。系統可能會要求您輸入帳戶密碼以進行驗證。

## 設定 AI API

**API 網域：** `https://sgai.littlepig.cloud`\
**端點（Endpoint）：** `/anthropic/v1/messages`\
**通訊協定：**&#x48;TTPS\
**請求方式：**&#x50;OST\
**請求內容格式：**&#x53;erialized JSON format

### 請求結構

#### 必要的標頭 Headers

| 標頭名稱           | 類型         | 說明                       |
| -------------- | ---------- | ------------------------ |
| `x-api-key`    | 字串（string） | 從後台管理系統取得的驗證金鑰。          |
| `Content-Type` | 字串（string） | 一定要是 `application/json`. |

#### 請求資料定義

<table><thead><tr><th width="187">參數</th><th>類型</th><th>是否必填</th><th>說明</th></tr></thead><tbody><tr><td><code>model</code></td><td>字串（string）</td><td><strong>是</strong></td><td>使用的 Claude 模型。</td></tr><tr><td><code>max_tokens</code></td><td>整數（integer）</td><td><strong>是</strong></td><td>生成的最大 token 數。</td></tr><tr><td><code>messages</code></td><td>物件陣列（object[]）</td><td><strong>是</strong></td><td>對話歷史紀錄（請參見「<strong>訊息格式</strong>」說明）。</td></tr><tr><td><code>stream</code></td><td>布林值（boolean）</td><td>否</td><td>以 Server-Sent Events（SSE）方式串流回應。</td></tr><tr><td><code>system</code></td><td>字串（string）</td><td>否</td><td>系統級提示詞System-level prompt.）</td></tr><tr><td><code>temperature</code></td><td>數值（number）</td><td>否</td><td>0.0 至 1.0；數值越低越具決定性，數值越高越具創造力。</td></tr><tr><td><code>top_p</code></td><td>數值（number）</td><td>否</td><td>Nucleus sampling 比例。請根據需求調整 <code>temperature</code> <strong>或</strong> <code>top_p</code>.</td></tr><tr><td><code>tools</code></td><td>物件陣列（object[]）</td><td>否</td><td>模型可能呼叫的外部工具定義。</td></tr></tbody></table>

***

### 單一使用情境 — 基本對話功能

```bash
curl https://sgai.littlepig.cloud/anthropic/v1/messages   -H "x-api-key: $API_KEY"   -H "anthropic-version: 2023-06-01"   -H "Content-Type: application/json"   -d '{
    "model": "claude_37_sonnet",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Hello, world" }
    ]
  }'
```

***

### 訊息格式

#### 純文字格式（簡化版）

```json
{ "role": "user", "content": "Hello, Claude" }
```

#### 明確內容區塊（Explicit Content Blocks）

每則輸入訊息的內容可以是單一字串，或是一組具有特定類型的內容區塊陣列。\
若直接使用字串作為內容，則等同於只含有一個類型為 `"text"` 的內容區塊。\
以下兩種輸入訊息格式是等效的：

```json
 {"role": "user", "content": "Hello, Claude"}
```

```json
{ "role": "user", "content": [ { "type": "text", "text": "Hello, Claude" } ] }
```

#### 多輪對話（Multiple Conversational Turns）

```json
[
  { "role": "user", "content": "Hello there." },
  { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
  { "role": "user", "content": "Can you explain LLMs in plain English?" }
]
```

#### 部分回應填充（Partially‑filled Response）

```json
[
  { "role": "user", "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun" },
  { "role": "assistant", "content": "The best answer is (" }
]
```

#### 圖片 + 文字

```json
{
  "role": "user",
  "content": [
    {
      "type": "image",
      "source": {
        "type": "base64",
        "media_type": "image/jpeg",
        "data": "/9j/4AAQSkZJRg..."
      }
    },
    { "type": "text", "text": "What is in this image?" }
  ]
}
```

支援的圖片格式： `image/jpeg`, `image/png`, `image/gif`, `image/webp`.

***

### 工具定義結構（**Tool Definition Schema）**

若您在 API 請求中包含工具（tools），模型可能會回傳 `tool_use` 類型的內容區塊，表示模型正在使用這些工具。\
接著，您可以依照模型所產生的工具輸入（tool input）來執行對應的工具，並可選擇性地透過 `tool_result` 類型的內容區塊，將執行結果回傳給模型。

| 欄位名稱（Field）    | 類型         | 是否必填  | 說明               |
| -------------- | ---------- | ----- | ---------------- |
| `name`         | 字串（string） | **是** | 工具名稱。            |
| `description`  | 字串（string） | 否     | 工具的用途說明。         |
| `input_schema` | 物件（object） | **是** | 工具輸入的 JSON 結構描述。 |

```json
[
    {
        "name": "get_stock_price",
        "description": "Get the current stock price for a given ticker symbol.",
        "input_schema": {
            "type": "object",
            "properties": {
                "ticker": {
                    "type": "string",
                    "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
                }
            },
            "required": [
                "ticker"
            ]
        }
    }
]
```

***

### 回應資料定義（Response Data Definition）

| 欄位名稱                  | 說明                       |
| --------------------- | ------------------------ |
| `content`             | Claude 所產生的內容區塊。         |
| `id`                  | 訊息 ID。                   |
| `model`               | 回應內容所使用的模型名稱。            |
| `role`                | 角色，一律為 `assistant`.      |
| `stop_reason`         | 為何停止生成內容（例如： `end_turn`) |
| `usage.input_tokens`  | 請求中所使用的 token 數量。        |
| `usage.output_tokens` | 回應中所產生的 token 數量。        |

#### 範例

```json
{
    "id": "msg_bdrk_01FTuLJMy9aYU5TQhK14rMsE",
    "type": "message",
    "role": "assistant",
    "model": "claude-3-7-sonnet-20250219",
    "content": [
        {
            "type": "text",
            "text": "Hello! How can I assist you today? Feel free to ask me any questions or let me know what you'd like to talk about."
        }
    ],
    "stop_reason": "end_turn",
    "stop_sequence": null,
    "usage": {
        "input_tokens": 10,
        "cache_creation_input_tokens": 0,
        "cache_read_input_tokens": 0,
        "output_tokens": 31
    }
}
```

***

### 串流事件 (`stream=true`)

| 事件                    | 載荷內容              |
| --------------------- | ----------------- |
| `content_block_delta` | 部分 token 或工具輸入資料。 |
| `error`               | 錯誤細節。             |

範例：

```
event: content_block_delta
data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"ello frien"}}

event: error
data: {"type":"error","error":{"type":"overloaded_error","message":"Overloaded"}}
```

工具呼叫串流：

```
event: content_block_delta
data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{"location":"San Fra"}"}}
```

***

### 工具呼叫操作說明

```bash
curl https://api.anthropic.com/v1/messages \
  -H "content-type: application/json" \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-3-7-sonnet-20250219",
    "max_tokens": 1024,
    "tools": [
      {
        "name": "get_weather",
        "description": "Get the current weather in a given location",
        "input_schema": {
          "type": "object",
          "properties": {
            "location": {
              "type": "string",
              "description": "The city and state, e.g. San Francisco, CA"
            }
          },
          "required": ["location"]
        }
      }
    ],
    "messages": [
      {
        "role": "user",
        "content": "What is the weather like in San Francisco?"
      }
    ]
  }'
```

***

### 延伸閱讀

<https://docs.anthropic.com/en/api/messages>

### 價格

{% hint style="info" %}
模型價格可能會有所變動，請前往設定 [管理頁面](https://console.littlepig.cloud/config_manage) 查看最新價格資訊。
{% endhint %}

| Model              | Price / 1 000 input tokens | Price / 1 000 output tokens |
| ------------------ | -------------------------- | --------------------------- |
| claude\_3\_haiku   | $0.00025                   | $0.00125                    |
| claude\_3\_sonnet  | $0.003                     | $0.015                      |
| claude\_3\_opus    | $0.015                     | $0.075                      |
| claude\_35\_haiku  | $0.0008                    | $0.004                      |
| claude\_35\_sonnet | $0.003                     | $0.015                      |
| claude\_37\_sonnet | $0.003                     | $0.015                      |

{% hint style="warning" %}
若要停用 API 存取，請在設定 [管理頁面](https://vps.littlepig.tech/config_manage) 中點選「關閉服務」按鈕。
{% endhint %}


# Google Workspace


# Google 企業郵件

學習如何於小豬科技中自助下單Google Workspace。

## 步驟 1

[登入](https://console.littlepig.cloud/login)您的小豬雲帳戶→系統首頁→服務項目→選取 ”Google Workspace”。\
或者直接點選左側菜單欄的 “Google 企業郵件”。

<figure><img src="/files/XHQ6XYb30u6qYRo3iWZO" alt=""><figcaption></figcaption></figure>

## 步驟 2

選取→“創建 Google 企業郵件”。

<figure><img src="/files/KLJ5XtcDHso8pt8ZDuNx" alt=""><figcaption></figcaption></figure>

## 步驟 3

填入相關資訊，系統會根據填入的聯絡資訊新增為管理員帳戶，初始管理員預設為admin\@domain。

備用電子郵件地址請輸入“不屬於” 客戶主網域的電子郵件地址。

<figure><img src="/files/dTRH9pDftf55lDf5lBho" alt=""><figcaption></figcaption></figure>

## 步驟 4

選擇想要的版本，點選 ”選擇”，可以查看方案細節。

<figure><img src="/files/FxnGHNm022QLG86K6BAM" alt=""><figcaption></figcaption></figure>

## 步驟 5

於空格框中輸入欲授權的 user 數量→創建。

<figure><img src="/files/xnyQwV4bFbumUe0hNC9z" alt=""><figcaption></figcaption></figure>


# Google Workspace 激活流程

學習如何於小豬科技中激活Google Workspace。

## 步驟1

前往管理控制台找回(重置)管理員密碼

<figure><img src="/files/aQRWZW85DX2LCzIPp0MB" alt=""><figcaption></figcaption></figure>

1.1 輸入管理員郵箱地址 固定為admin@創建域名，點擊下一步

<figure><img src="/files/as2nexA1A2UxM3k9g0Ep" alt=""><figcaption></figcaption></figure>

1.2 點擊 ”忘記了密碼？”

<figure><img src="/files/kpzbxCKawDMI6xduDLvx" alt=""><figcaption></figcaption></figure>

1.3 進入賬號恢復頁面，點擊 ”試試其他方式”

<figure><img src="/files/J8v1dcxo2TtYIsMHe4Ib" alt=""><figcaption></figcaption></figure>

1.4 輸入在littlepig上創建企業郵箱的姓氏，名字。點擊下一步。

<figure><img src="/files/FObeG4fU06ndgaTOrgYl" alt=""><figcaption></figcaption></figure>

1.5 輸入在littlepig上企業郵箱詳情顯示的組織名稱，點擊下一步

<figure><img src="/files/PvId2V1cp79ZpndYH9mV" alt=""><figcaption></figcaption></figure>

1.6 輸入在littlepig上企業郵箱詳情顯示的人數，點擊下一步

<figure><img src="/files/lZk8D0Q42f5T23hV52XX" alt=""><figcaption></figcaption></figure>

1.7 域名驗證解析，使用創建的域名進行CNAME解析，

記錄類型：CNAME

主機記錄(域名前綴)：頁面顯示上3.項的標籤

記錄值：頁面顯示上3.項的作為目的

添加解析完成，點擊下一步

<figure><img src="/files/rPKHGOfh54ts0UToGVeY" alt=""><figcaption></figcaption></figure>

1.7.1 Littlepig解析示例如下，其他DNS服務商根據實際情況進行操作：

<figure><img src="/files/rNLo7nBdZ1icl8BgXeWw" alt=""><figcaption></figcaption></figure>

1.8 成功添加1.7步驟的CNAME解析後進入服務條款確認頁面，點擊”我瞭解”繼續

<figure><img src="/files/uZG5RcIn31PCLDwfu7ZV" alt=""><figcaption></figcaption></figure>

1.10 同意服務條款，進入下一步

<figure><img src="/files/Zm2N9s6RsiY5J7bXA9nP" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/RaMXSTqIFI2Gs8Ruu4RY" alt=""><figcaption></figcaption></figure>

## 步驟2&#x20;

進行域名解析驗證以域名郵箱激活

2.1 完成1.10後自動跳轉到workspace控制台，點擊頂部Verify前往域名驗證

<figure><img src="/files/DXc61WhPLqq0wiYLUVIr" alt=""><figcaption></figcaption></figure>

2.2 點擊Get started繼續

<figure><img src="/files/ju8EOexklxhFhlhuDCN6" alt=""><figcaption></figcaption></figure>

2.3 選擇域名DNS服務上，根據自己域名實際情況選擇

<figure><img src="/files/4EKVf2JMAlQ03TuGDONW" alt=""><figcaption></figcaption></figure>

2.4 為域名添加頁面上顯示的對應的TXT和CNAME的解析記錄

<figure><img src="/files/PDEISji4rxyxThcrETW9" alt=""><figcaption></figcaption></figure>

2.4.1 Littlepig解析示例如下，其他DNS服务商根据实际情况进行操作：

<figure><img src="/files/po2x1SkJ4UNkDE9kOXr0" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LFeu9HYRKXbOO9hHikYt" alt=""><figcaption></figcaption></figure>

2.5 成功添加解析記錄後勾選CheckBox點擊Confirm進入解析驗證

<figure><img src="/files/o7RxtSYOhZgGOKmCHUme" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/zdXBxQM9tX5xTrFA2WPV" alt=""><figcaption></figcaption></figure>

2.6 域名解析驗證通過開始進行郵箱激活

<figure><img src="/files/vw3YGBEn1GJzcS2NEOer" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/yWAKh34fuicEXvm1wy5Z" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/akn2QPkPxgqMlgAWeCBT" alt=""><figcaption></figcaption></figure>

2.7 為域名添加MX記錄值，完成解析記錄添加後勾選CheckBox點擊Confirm進入解析驗證

<figure><img src="/files/mjLX3T197mww3rTBQmJe" alt=""><figcaption></figcaption></figure>

2.7.1 Littlepig解析示例如下，其他DNS服務商根據實際情況進行操作：

<figure><img src="/files/kQBozK9UbHx7rKWUoj5G" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/NbYviTfoRwTA5zanAcld" alt=""><figcaption></figcaption></figure>

2.8 至此完成workspace域名驗證和郵箱激活流程，可開始正常使用。

<figure><img src="/files/MFwWxcJJVXOCy8ndaq2D" alt=""><figcaption></figcaption></figure>


# 流量套餐

學習如何在小豬雲上購買流量套餐。

### 什麼是流量套餐？

舉例來說，“伺服器管理”就是你手機原本內含的“固定的通話費”，當話費用罄時，就需要充值才能繼續使用，而“流量套餐”就是“你加購的通話費”。

### 怎麼看是否要加購流量套餐？

當你在“流量套餐”內，看到用量條快滿條（用罄）時，就可以購買和您在“伺服器管理”相符平台的“流量套餐”。\
注意：若您在“伺服器管理”是購買GCP平台的機器，您的流量套餐就需要買GCP的。<br>

<figure><img src="/files/M0ds02ckTZLnq2YdBvE4" alt=""><figcaption></figcaption></figure>

### 步骤 1

​[登入](https://vps.littlepig.tech/login)您的小豬科技帳戶。進入“流量套餐”頁面，點擊“購買流量套餐”。<br>

<figure><img src="/files/ORHeXy8HTL8b28IEGUdT" alt=""><figcaption></figcaption></figure>

### 步骤 2&#x20;

選擇合適的平台與流量套餐，然後點擊“確定”。

<figure><img src="/files/eWxTl11wD7Ds9AJUBmu4" alt=""><figcaption></figcaption></figure>

### 步驟 3&#x20;

通過刷新“流量套餐”頁面來確認訂單資訊。

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf3gBsIv6SfVRFJfdocUbqQuEirr6TgiFMCUWRFquKwQvCKhxxEM0SlO13Yau2JLrMTH8oYQ3PW_nSuOozm9BacPYyyU7wAJG9LTM-ifR1YzuvSKct3JRfYQ0osufVWN839D51cQz5ewp8NRd9d6G3gWSTi?key=leD-CHDFe7ZFJW1bhcmaQw" alt=""><figcaption></figcaption></figure>

<br>


# 客服

小豬科技提供7x24小時技術支援請通過 [Telegram](https://t.me/vpslittlepig)、[WhatsApp](https://wa.me/85294609418) 或[ ](mailto:support@littlepig.tech)[電子郵件](mailto:support@littlepig.tech)聯繫我們。我們的團隊將盡快回答您的任何問題！


# 常見問題

關於小豬科技的一些常見問題

<details>

<summary>為什麼選擇小豬科技？</summary>

小豬科技將多個雲端服務供應商的資源整合起來，提供最簡單的雲端解決方案。我們的服務簡化了雲端操作，無論是初學者還是專業人士都能輕鬆使用。

</details>

<details>

<summary>小豬科技安全嗎？</summary>

當然安全！小豬科技只選擇頂級的雲端服務提供商作為合作夥伴，穩定性和安全性在全球都是最頂尖的。

</details>

<details>

<summary>如果我需要的不僅僅是 VPS 怎麼辦？</summary>

小豬科技不僅提供VPS，還有更多服務。請聯繫我們瞭解更多詳細信息！

</details>

<details>

<summary>AWS（亞馬遜雲）/GCP（谷歌雲） 和小豬科技之間有什麼區別？</summary>

小豬科技提供簡易的 AWS（亞馬遜雲）和 GCP（谷歌雲）解決方案，沒有複雜的介面，並支持多種支付方式，讓您更方便使用。

</details>

<details>

<summary>如何聯繫小豬科技服務器客服？</summary>

小豬科技客服提供 24X7 客戶服務。請通過 [Telegram](https://t.me/vpslittlepig)、[WhatsApp](https://wa.me/85294609418) 或[ ](mailto:support@littlepig.tech)[電子郵件](mailto:support@littlepig.tech) 聯繫我們的客服，我們會盡快回答您的任何問題！

</details>


