Quickstart
From a project to your first AI call paid by a token's fees, in four steps.
1. Make a project
Sign in at Fuel with your email or a Solana wallet, and make a project. Name the payout wallet your part of each token's creator fees goes to.
Every project starts with the Standard fee strategy: of your part of each creator fee, 60% becomes the token's AI credit, 20% goes to its creator and 20% to your payout wallet.
2. Make a secret key
Open Keys in the project and make a secret key. It starts with fl_sk_ and is shown once. Keep it on your server, never in a browser or an app:
export FUEL_SECRET_KEY="fl_sk_..."No server? Launch from the dashboard's Launch page with a wallet in your browser, and skip to step 4.
3. Launch a token
Your server prepares the launch for your user's wallet, which signs it last and pays for it: about 0.05 SOL, our 0.02 SOL fee included.
// npm i @fuelpad/sdk
import { Fuel } from "@fuelpad/sdk";
const fuel = new Fuel(); // reads FUEL_SECRET_KEY
const launch = await fuel.launches.prepare({
creator: "<the user's wallet address>",
name: "Acme",
symbol: "ACME",
image: await fuel.files.dataUri(imageFile),
});The answer carries the launch's id, its mint, its route and a transaction. Have the wallet sign it in the browser, then submit the signed copy (fuel.launches.submit(), or POST /launches/{id}/submit). Its state turns confirmed within seconds.
4. Make a router key and call a model
Every token has its own credit account. Make a router key on it for your agent, here with a $5 daily limit:
const { key } = await fuel.keys.create({
account: "<the token mint>",
name: "agent-1",
limit: { usd: "5", reset: "daily" },
});The answer carries the key (fl_ai_...) this once. On the dashboard it's Credit, then the token's account, then New router key. Point any OpenAI or Anthropic SDK at the Fuel Router with it:
import OpenAI from "openai";
const ai = new OpenAI({
baseURL: "https://fuel.domain/api/v1",
apiKey: process.env.FUEL_ROUTER_KEY,
});
const reply = await ai.chat.completions.create({
model: "anthropic/claude-sonnet-5.5",
messages: [{ role: "user", content: "Plan today's three posts for $ACME." }],
max_tokens: 512,
});
console.log(reply.choices[0].message.content);A new token's account fills with its first payout, once trading has paid 0.01 SOL of creator fees. To start sooner, buy credit in USDC, from $20. Until then a call answers 402 insufficient_balance.
Next
Set your fee strategyDecide how each token's fees split, and what creators may pick. Get eventsHear about launches, payouts and low credit as they happen. Pick a modelEvery model and its price per million tokens. The Fuel RouterOne address for hundreds of models.