The faucet mints test `APT` so you can develop before Mainnet. **Devnet** is programmable with no Google login. **Testnet** requires Google sign-in (the [mint page](/network/faucet) or `POST /fund` with a Firebase ID token). There is no Mainnet faucet.

Amounts are in [Octas](/network/glossary#octa) (`1 APT = 100,000,000` Octas).

<table><thead><tr><th>Network</th><th>Endpoint</th><th>How to mint</th></tr></thead><tbody><tr><td>Devnet</td><td><code dir="auto">https://faucet.devnet.aptoslabs.com</code></td><td>SDKs, CLI, or <code dir="auto">POST /fund</code> with no auth</td></tr><tr><td>Testnet</td><td><code dir="auto">https://faucet-e2.testnet.aptoslabs.com</code></td><td><a href="/network/faucet">Mint page</a>, or <code dir="auto">POST /fund</code> with a Google ID token</td></tr><tr><td>Mainnet</td><td>—</td><td>Not available</td></tr></tbody></table>

OpenAPI (live): [Devnet spec](https://faucet.devnet.aptoslabs.com/spec.yaml) and [Testnet spec](https://faucet-e2.testnet.aptoslabs.com/spec.yaml). Explorer: [Devnet `/spec`](https://faucet.devnet.aptoslabs.com/spec). Source: [crates/aptos-faucet/doc/spec.yaml](https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos-faucet/doc/spec.yaml).

The current operation is **`POST /fund`** with a JSON `FundRequest` body (`address`, `auth_key`, or `pub_key`, and optional `amount`). Devnet still accepts a legacy **`POST /mint?amount=&address=`** query; new integrations should use `/fund`.

## Using the faucet in a wallet

[](#using-the-faucet-in-a-wallet)

Most wallets, such as [Petra](https://aptosnetwork.com/ecosystem/directory/petra), have a Devnet faucet button. See the [Aptos wallets directory](https://aptosnetwork.com/ecosystem/projects/wallets).

## Using the faucet in the Aptos CLI

[](#using-the-faucet-in-the-aptos-cli)

After [CLI setup](/build/cli/setup-cli), fund an account on **Devnet**:

```
aptos account fund-with-faucet --account 0xd0f523c9e73e6f3d68c16ae883a9febc616e484c4998a72d8899a1009e5a89d6 --amount 100000000
```

On Testnet, use the [mint page](/network/faucet) instead of this command.

## Using the faucet in the TypeScript SDK

[](#using-the-faucet-in-the-typescript-sdk)

This example funds `0xd0f523c9e73e6f3d68c16ae883a9febc616e484c4998a72d8899a1009e5a89d6` with 1 APT on Devnet.

```
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
const aptos = new Aptos(new AptosConfig({ network: Network.DEVNET }));await aptos.fundAccount({  accountAddress: "0xd0f523c9e73e6f3d68c16ae883a9febc616e484c4998a72d8899a1009e5a89d6",  amount: 100_000_000,});
```

See each [SDK](/build/sdks) for more client examples.

## Using the faucet in the Python SDK

[](#using-the-faucet-in-the-python-sdk)

```
from aptos_sdk.v2 import Aptos, AptosConfig, Network
async with Aptos(AptosConfig(network=Network.DEVNET)) as aptos:    await aptos.faucet.fund_account(        "0xd0f523c9e73e6f3d68c16ae883a9febc616e484c4998a72d8899a1009e5a89d6",        100_000_000,    )
```

## Using the faucet in the Go SDK

[](#using-the-faucet-in-the-go-sdk)

```
package main
import (  "github.com/aptos-labs/aptos-go-sdk")
func main() {  client, err := aptos.NewClient(aptos.DevnetConfig)  if err != nil {    panic("Failed to create client: " + err.Error())  }
  address := aptos.AccountAddress{}  err = address.ParseStringRelaxed("0xd0f523c9e73e6f3d68c16ae883a9febc616e484c4998a72d8899a1009e5a89d6")  if err != nil {    panic("Failed to parse address: " + err.Error())  }
  err = client.Fund(address, 100_000_000)  if err != nil {    panic("Failed to fund account: " + err.Error())  }}
```

## Calling the faucet without an SDK

[](#calling-the-faucet-without-an-sdk)

`POST /fund` on Devnet:

```
curl -X POST "https://faucet.devnet.aptoslabs.com/fund" \  -H "Content-Type: application/json" \  -d '{"address":"0xd0f523c9e73e6f3d68c16ae883a9febc616e484c4998a72d8899a1009e5a89d6","amount":100000000}'
```

A successful response looks like `{"txn_hashes":["..."]}`. If `amount` is omitted, the faucet uses its configured default (capped at the maximum mint).

Note

You can generate a typed client from the [OpenAPI spec](https://faucet.devnet.aptoslabs.com/spec.yaml) if you are not using an official SDK.

### Testnet: Google sign-in

[](#testnet-google-sign-in)

Testnet `POST /fund` requires a human Google login. The [mint page](/network/faucet) does this for you. To call the API directly, send a Firebase ID token for project `aptos-api-gateway-prod` (scopes `openid`, `email`, `profile`):

```
curl -X POST "https://faucet-e2.testnet.aptoslabs.com/fund" \  -H "Authorization: Bearer FIREBASE_ID_TOKEN" \  -H "x-is-jwt: true" \  -H "Content-Type: application/json" \  -d '{"address":"0xd0f523c9e73e6f3d68c16ae883a9febc616e484c4998a72d8899a1009e5a89d6"}'
```

There is no agent-registration shortcut. See [`/auth.md`](/auth.md) for the OAuth discovery documents.