# Get paid

Set a price on your offer, fund the fee payer with test SOL, and see where your test USDC arrives.

Source: https://docs.gyblos.com/en/sellers/get-paid

In the beta, a seller can charge for its model on Solana **devnet**, in Circle devnet USDC. Devnet USDC has no
market value: the beta tests the payment path, not real income. Mainnet is not open yet: see
[Mainnet pilot](#mainnet-pilot).

## What you can sell

| How you sell             | Who can buy             | Tools (agents) | Availability                |
| ------------------------ | ----------------------- | -------------- | --------------------------- |
| **Free**                 | Any buyer               | Yes            | Every seller                |
| Priced, reusable channel | Any authenticated buyer | Yes            | Sellers with a priced offer |

Reusable channels support conversations with tools.

## Prerequisites

- A registered seller ([Register and publish](/en/sellers/register-publish)).
- An offer for any model your engine serves. For the catalog's Qwen3 models (`qwen3-0.6b`, `1.7b`, `4b`,
  `8b`, `14b`, `32b`, `30b-a3b`, `235b-a22b`), which share one public tokenizer, the buyer recounts the tokens. For any other model you are paid the usage your provider reports, and the
  buyer only approves a bill that the text's size allows: never more tokens than bytes, and never past the
  answer's maximum. A larger bill is not paid.
- The seller's payment keys, which the installer creates: the **owner** receives your USDC and the
  **fee payer** pays the transaction costs. What each key does, and how to back them up, is in
  [Identity and backups](/en/sellers/identity#keys).

You need no USDC to sell. Buyers pay you in devnet USDC.

## 1. Set a price

In the offer in `config.toml`, replace the `free = {...}` line with a `price` in USDC per million tokens:

```toml
[[offers]]
model = "qwen3:0.6b"
reasoning = ["off"]
engine = { kind = "ollama", url = "http://127.0.0.1:11434/" }
price = { input_per_mtok = "0.05", output_per_mtok = "0.20", currency = "USDC" }
```

Prices have at most 6 decimals, and input and output cannot both be zero. An offer is either free or priced,
never both. You set the net price; buyers see it **plus the 4% Gyblos fee**.

## 2. Fund the fee payer

Run `gyblos doctor` (Docker seller: `docker compose run --rm seller gyblos doctor`) and copy the `fee payer`
address. Send it about 0.05 devnet SOL from [the devnet faucet](https://faucet.solana.com).

The fee payer needs devnet SOL for channel transactions. With less than 0.01 SOL, `gyblos doctor --online`
reports `FEE_PAYER_UNFUNDED`: a failure if the balance is zero and startup still has to create
payment token accounts, a warning otherwise.

A seller that charges needs a dependable devnet RPC: see [Your own devnet RPC](/en/sellers/beta-guide#own-rpc) before the first install, or [change it later](/en/sellers/beta-guide#change-rpc).

## 3. Apply and verify

Apply the change as described in
[Operate and update](/en/sellers/operate#apply-configuration-or-environment-changes). Before restarting,
`gyblos config validate` shows the price on the offer line, for example `0.05 in / 0.20 out USDC per Mtok`. After the restart,
`gyblos doctor` lists it under `Listing:` as `offer[1] paid qwen3:0.6b`, and `gyblos seller status` reports
`RUNNING`.

## How a buyer pays you

The buyer opens a channel with your seller. Each answer is priced by usage. At settlement you receive your share in USDC and the buyer receives the unused deposit.

## See your earnings

Your earnings are the devnet USDC balance of the **owner** address. Search for that address on
[Solana Explorer](https://explorer.solana.com/?cluster=devnet) with the devnet cluster selected. A payment
can take a few minutes to appear.

<span id="reusable-channel-pilot" aria-hidden="true" />

## Reusable channels

New channels require a deposit of at least 0.01 USDC. Each answer costs its metered price, even when that price is below 0.01 USDC.

A reusable channel lets one deposit pay for many answers, with tools. It settles when the buyer asks, the
deposit runs out, the terms expire or the channel is idle. Buyers can open a channel on Windows, macOS and Linux.

`max_sessions` in `config.toml` sets how many reusable sessions your seller keeps open at once, from 1 to 16
(default 16). It counts open payment sessions, not connections:

```toml
[limits]
max_sessions = 16
```

## Long requests

Coding agents send long conversations and ask for long answers. A reusable channel accepts up to 256 KiB of
conversation and tools and up to 4,096 output tokens per answer. A request above 128 output tokens or 64 KiB
of input is a long request, and only an updated seller accepts one: update your seller before buyers send
them, or buyers go to another seller.

When your model is recounted with its public tokenizer (Ollama models, for example), your seller sends a long
answer in parts, and the buyer pays for each part before it gets the next one. A long request that is not paid
in parts is refused. Tool calls, and text with no spaces between words, come in the last part. The buyer pays
for the last part before your seller sends it, at the count your seller states, and then checks that count. A
model whose usage its provider reports, such as a hosted API, answers in one piece and is billed at the end.

Paying the last part first changed the protocol, and this version and earlier ones can't pay each other in parts.
Update your seller before buyers update their apps.

Each answer has a time limit that grows with its size, up to 20 minutes. The input is billed with the first
part of the answer, so a buyer that cuts a long request while your seller is still reading it pays nothing.
Your seller counts that unpaid time per buyer, at least 75 seconds for each long request that ends without
payment. After 10 minutes of it in one hour, it refuses that buyer's long requests until the hour passes.

To refuse long requests altogether:

```toml
[limits]
long_requests = false
```

Shorter requests keep working, and `gyblos doctor` shows the setting.

## Back to free

An all-free seller does not run payment recovery or cleanup. Before you switch your last priced offer back to
free, let pending payments settle and close any reusable channels. Keep your payment data and keys, and contact
Gyblos if anything stays unresolved.

Then replace `price = {...}` with `free = {...}` and apply the change.

## Mainnet pilot

Gyblos is preparing a pilot on Solana mainnet, with real USDC and real SOL. It is **not open until Gyblos
announces it**, and only sellers that Gyblos approves can join. Until then, keep `network = "devnet"`.

When you join, the seller works like this:

- `config.toml` says `network = "mainnet"` under `[node]`.
- The seller keys are set up for mainnet USDC in a new seller home, with new keys:
  `gyblos setup --role seller --mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`. Setup never changes the token of an
  existing seller, so a devnet seller keeps its own home and keys.
- The seller uses an RPC that answers as mainnet. Set it with `gyblos seller rpc set`. The public mainnet RPC
  is slow and limited, so use your own provider.
- `gyblos seller register` registers the seller in the **mainnet** 8004 registry, paid by the owner in real SOL. Until the
  mainnet discovery index is live, it refuses a mainnet seller with `REGISTER_MAINNET_NOT_OPEN` and sends or signs nothing.
- The fee payer holds real SOL.
- A payment channel holds **at most 1 USDC**. The buyer and the seller each refuse a larger deposit, or any
  token other than mainnet USDC.

If the RPC answers as another network, or a mainnet seller is set up with another token, the seller refuses to
sell with `SELLER_PAYMENT_NETWORK_MISMATCH` before it creates any account.

## Next steps

- [Back up your keys](/en/sellers/identity#back-up-keys)
- [Operate and update](/en/sellers/operate)
