FLOP developer quickstart: @flop-labs/sdk and the public models API
Official developer quickstart for @flop-labs/sdk 0.9.0 and GET api.flop.network/v1/models, with the three devnet models we saw on 24 November 2026.
@flop-labs/sdk 0.9.0 is the current TypeScript SDK on npm. It was published on 23 November 2026 at 06:02 UTC. The official SDK and package references page, last updated 20 November, still lists a 0.7.1 baseline, so treat the registry, not that table, as the version source. The same docs page says these packages "target the development network today."
We listed models with a read-only GET to https://api.flop.network/v1/models at about 13:50 Lisbon time on 24 November 2026. We did not create API keys, call chat completions, or sign a transaction.
For the longer package map (CLI, Python, Pi, fake-package warnings), see our FLOP SDK and CLI guide. This page is the current versions and a minimal, copyable start.
Install
From the 0.9.0 README:
npm install @flop-labs/sdk
React is optional and only needed for the React hooks:
npm install @flop-labs/sdk react
The package is dual-licensed MIT or Apache-2.0. It is an ES module ("type": "module"). The README homepage points at the docs SDK page, and the source listing is github.com/flop-labs/flop-core (directory sdk/typescript). Bugs go to github.com/flop-labs/network/issues/new/choose. The docs say the source repository is private.
Documented subpath exports on 0.9.0 include ., ./a2a, ./ton, ./react, ./browser, ./experimental, ./direct-swap/core-node, ./direct-swap/maker-node, ./experimental/cloudflare, ./experimental/node-store and ./compute-channel/fcu-store-node. The 20 November docs page mentions /react, /browser, /a2a, /ton and /experimental.
List models (no API key)
The docs say the default gateway base URL is https://api.flop.network/v1. "Model discovery needs no key; chat completions do." Two official snippets cover listing.
Using @flop-labs/contracts, from the docs page:
import { assertModelList } from "@flop-labs/contracts";
const value: unknown = await fetch("https://api.flop.network/v1/models").then((r) => r.json());
assertModelList(value);
Using @flop-labs/client, also from the docs. This example goes on to call createChatCompletion, which official docs say needs an API key. Stop after listModels unless you have a key and intend to spend:
import { FlopClient } from "@flop-labs/client";
const client = new FlopClient({ apiKey: process.env.FLOP_API_KEY });
const models = await client.listModels();
GET /v1/models returned HTTP 200, Content-Type: application/json, CORS access-control-allow-origin: *, and a rate-limit header of 200 (199 remaining on our first request). The body shape was:
- top-level:
object("list"),data(array),total_count(3),links({ "next": null }) - each model:
id,object,created,owned_by,name,canonical_slug,context_length,architecture(input_modalities,output_modalities,modality),default_parameters,links.details,per_request_limits(prompt_tokens,completion_tokens),pricing(prompt,completion,input_cache_read),supported_parameters,supported_voices,top_provider, and anx-flopextension object x-flopfields includedregistry_model,registry_version,model_hash,precision,registry_precision,quantization,precision_detail,decode_policy,decode_policy_hash,backend,backend_model_name,capacity_tpm,capacity_rule,datacenters,price_sourcesandmeasurements
The three models, all owned_by: "flop-network", were:
| id | name | context_length | pricing.prompt / completion | supported_parameters | price_sources | datacenters (country codes) |
|---|---|---|---|---|---|---|
qwen/qwen2.5-0.5b-instruct | Qwen2.5 0.5B Instruct (devnet-ts) | 32768 | 0.000001 / 0.000001 | max_tokens | 29, all source: "devnet-nominal" | BH, CA, CN, CZ, DE, FI, FR, HK, ID, JP, KR, KZ, NO, SG, TR, US, UY |
qwen/qwen3-14b | Qwen3 14B (FLOP devnet) | 40960 | 0.000015 / 0.000015 | max_tokens, temperature, top_p, tools, tool_choice, parallel_tool_calls | 7, devnet-nominal | CA, CZ, FR, IN, US |
qwen/qwen3-coder-30b-a3b-instruct-fp8 | Qwen3 Coder 30B A3B Instruct FP8 (FLOP devnet) | 40960 | 0.0000035 / 0.0000035 | same as Qwen3 14B | 1, devnet-nominal | IN |
Price sources also carried flop_per_gn, gn_per_prompt_token, gn_per_completion_token, flop_usd, miner SS58 addresses, and a version of chain:4532657 at the time of the check. Those figures expire quickly in the payload (our samples had a two-minute expires_at window). We are reporting the field names and the values we saw, not converting them into a USD price.
GET https://api.flop.network/health reported "status":"ok", API "version":"2.0.0", "connected":true, "syncing":false, and "network":"devnet" with genesis hash 0x99c172c095340ace980631f9123544c6bebd4839f3437e463533422d8be2d631, the same hash as the devnet faucet. The OpenAPI document at /openapi.json titles the service "FLOP Public Inference Data Plane" version 2.0.0 and describes an OpenAI-compatible REST API. Public paths include GET /models and GET /models/{model_id}, plus completions routes (/chat/completions, /completions, /responses, /messages) and several key, connect and enroll routes we did not call.
Connect the chain SDK (read first)
The 0.9.0 README's health() example, with the documented defaults:
import { FlopClient } from '@flop-labs/sdk';
const client = await FlopClient.create({ endpoint: 'ws://127.0.0.1:9944', signer: '//Alice' });
const health = await client.health();
// Returns: { isSyncing: boolean, peers: number, shouldHavePeers: boolean }
FlopClient.create takes an optional endpoint (default ws://127.0.0.1:9944) and an optional signer. The README says the //Alice default is for disposable local development only. For the public devnet, the faucet's /chain document lists wss://rpc.devnet.flop.network. createWithKeypair(endpoint, keypair) connects with an existing decoded keypair.
The README also documents getBalance, getAccountInfo, HTLC helpers, agent wallets, x402, named-miner sessions and compute-channel estimates. Several of those sign or spend. The docs say HTLC creation "requires a registered TEE appraisal profile." The README warns that a live-devnet HTLC example checked on 3 November 2026 could not run until governance registered the appraisal policy, and that buyInferenceSession should persist the original intent and not be retried blindly. Do not run those examples against a funded key until you have read the README for 0.9.0 and decided to sign.
health() and a public GET /v1/models are enough to confirm you are talking to the expected network.
Other official packages (registry versions on 24 Nov 2026)
The 20 November docs baseline is already stale against the registries:
| Package | Docs baseline (20 Nov) | Registry latest we saw (24 Nov) |
|---|---|---|
@flop-labs/client | 0.2.2 | 0.2.2 |
@flop-labs/contracts | 0.1.2 | 0.1.2 |
@flop-labs/sdk | 0.7.1 | 0.9.0 |
@flop-labs/pi | 0.3.3 | 0.3.5 |
@flop-labs/cli | 0.7.0 | 0.8.1 |
flop-sdk (PyPI) | 0.3.2 | 0.3.4 (Python >=3.10) |
The docs still say FLOP has not published Rust crates, a Go module, or the agent SDK, gateway core, x402 types or Hermes plugin packages, and that a package with one of those names on a public registry is not FLOP's. No official package sells or claims a token.
FAQ
Does this API serve the testnet?
/health said devnet when we checked, and every model name we saw included "devnet". Official docs say the packages target the development network today.
Do I need an API key to list models?
No, according to the official SDK page. Chat completions do.
Which SDK version should I pin?
npm latest was 0.9.0. The docs page still documents 0.7.1. Pin a version in your lockfile, and read that version's README. The 0.9.0 README also lists exact runtime spec versions the SDK will admit, and says an unsupported runtime raises RUNTIME_INCOMPATIBLE.