01 / Quickstart

Quickstart

One command to connect, or 7 steps by hand. The first call uses the free model gemma3:1b, so no money moves until you choose a paid one.

We're a new seller. Default routing picks sellers with a trust score of 60 or more; ours is 5. Pin our peer to reach us. Pins are strict, with no failover.

02 / One command

Connect with one command

One click copies it. Paste it into a terminal. It installs the AntSeed CLI, starts the buyer proxy on your own machine at http://localhost:8377/v1, and pins that buyer to our peer. Needs Node.js. Leave it running and make the first call from a second terminal.

connect untested
npm install -g @antseed/cli && antseed buyer start --peer e44566555a6bcd118832097445e49277db4ba675

Pins are strict, with no failover: while the pin is set, every request goes to this peer, and if we are unavailable the request fails instead of moving to another seller. The buyer runs in the foreground: stop it with Ctrl+C. To drop the pin and keep the buyer running, use antseed buyer connection clear.

Then make the first call

gemma3:1b costs $0 and needs no wallet balance. Type the model id exactly, colon included. Free tier: 50 requests per address and 100 per IP per 24 hours (seller free-tier setting, as of Dec 6, 11:01 AM PT).

shell untested
curl -sS http://localhost:8377/v1/chat/completions \
  -H "content-type: application/json" \
  -d '{"model":"gemma3:1b","messages":[{"role":"user","content":"Reply with one word: ready"}]}'

03 / Human track

Run it by hand

  1. Install the AntSeed CLI

    Needs Node.js. The CLI commands in these steps were checked against @antseed/cli 0.1.274. The curl call is marked untested until it has been run end to end. So is the one-command form above.

    shell
    npm install -g @antseed/cli
  2. Start the local buyer

    This runs an OpenAI-compatible proxy on your machine at http://localhost:8377/v1. 8377 is the AntSeed CLI's default buyer port on your own machine. Change it with antseed buyer start --port <port>. The local proxy needs no API key. If a client insists on one, send the dummy string antseed (verified from @antseed/cli 0.1.274, Dec 6, 11:05 AM PT).

    shell
    antseed buyer start
  3. Pin General Inference

    Default routing will not pick a new seller yet, so tell your buyer to use our peer. Pins are strict, with no failover: while the pin is set, every request goes to this peer, and if we are unavailable the request fails instead of moving to another seller.

    shell
    antseed buyer connection set --peer e44566555a6bcd118832097445e49277db4ba675
  4. Check the pin

    Shows the peer your buyer is pinned to.

    shell
    antseed buyer connection get
  5. Make a first call on the free model

    gemma3:1b costs $0 and needs no wallet balance. Type the model id exactly, colon included. Free tier: 50 requests per address and 100 per IP per 24 hours (seller free-tier setting, as of Dec 6, 11:01 AM PT).

    shell untested
    curl -sS http://localhost:8377/v1/chat/completions \
      -H "content-type: application/json" \
      -d '{"model":"gemma3:1b","messages":[{"role":"user","content":"Reply with one word: ready"}]}'
  6. Unpin when you are done

    Returns your buyer to default routing.

    shell
    antseed buyer connection clear

One request without changing the pin

Prefix the model with our peer id: e44566555a6bcd118832097445e49277db4ba675@<model>. For the free model that is e44566555a6bcd118832097445e49277db4ba675@gemma3:1b.

A command marked untested has not yet been run end to end by us. The badge comes off once it has.

04 / Agent track

If you are an agent

The same connection, read from machine files instead of this page.

  1. Read https://generalinference.org/.well-known/antseed.json for connect_command, pin_command, check_command, unpin_command and the single-request prefix.

  2. Run connect_command from that file: it installs the CLI and starts the local buyer already pinned to this peer. To pin a buyer that is already running, use pin_command. Pins are strict, with no failover: while the pin is set, every request goes to this peer, and if we are unavailable the request fails instead of moving to another seller.

  3. Read /models.json and use the exact id strings. Read /pricing.json and compare as_of with stale_after_seconds before spending.

  4. Send OpenAI-format chat completions to http://localhost:8377/v1 on the local machine. There is no hosted inference API at generalinference.org.

  5. Make the first call on gemma3:1b ($0). Run antseed buyer connection clear when the work is done.

This page as Markdown: /quickstart.md. Index for language models: /llms.txt.

05 / Next

After the first call

Framework snippets

9 copy-paste snippets for SDKs and agent frameworks live on the agent hub. Each shows whether it has been tested.

Models and prices

Exact model ids, prices and their as-of date are in the models table.

Verify us first

The DNS proof, our AntSeed identity and how to check each one are on the trust page.