Skip to main content
Create a token on PumpFun with Launchpad Trade API
POST/pumpfun/create
Deploy a new token on PumpFun with a single API call. Optionally include a dev buy in the same transaction to secure the first position on the bonding curve.

Quick Start

curl -X POST https://api.launchpad.trade/pumpfun/create \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "devPrivateKey": "YOUR_PRIVATE_KEY",
    "name": "My Token",
    "symbol": "MYTOKEN",
    "image": "https://ipfs.io/ipfs/QmExample.../image.png",
    "description": "A sample token on PumpFun",
    "devBuy": 0.5
  }'
See all parameters, dev buy, pumpfun modes, and image sources details below.

Parameters

Required

ParameterTypeDescription
devPrivateKeystringPrivate key of the wallet that creates the token. Pays the creation cost (~0.02 SOL) and executes the dev buy if set
namestringToken name displayed on PumpFun and explorers. Max 32 characters
symbolstringToken ticker symbol (e.g. MYTOKEN). Max 10 characters, alphanumeric
imagestringToken image URL. Must be from a whitelisted source. Accepted formats: PNG, JPG, GIF, WebP

Optional

ParameterTypeDefaultDescription
descriptionstringToken description displayed on PumpFun. Max 200 characters
twitterstringTwitter/X profile URL (https://twitter.com/... or https://x.com/...)
telegramstringTelegram group or channel URL (https://t.me/...)
websitestringProject website URL
devBuynumber0Amount in SOL for the initial dev buy. See Dev Buy
isMayhembooleanfalseEnable AI-driven post-launch activity for 24h. Irreversible. See Mayhem Mode
isCashbackbooleanfalseRedirect creator fees (0.3%) to traders instead of the creator. Irreversible. See Cashback Mode
priorityFeeobjectFAST (0.00015 SOL)Transaction priority level. See Priority Fee
platformTagobject | falseNo attributionTag the transaction with a DEX source. See Platform Attribution

Dev Buy

When devBuy is set to a value greater than 0, the initial purchase happens in the same transaction as the token creation.
  • The dev wallet is always the first buyer on the bonding curve
  • No slippage risk — you buy at the initial price before anyone else
  • The response includes a devBuy object with the SOL spent and tokens received
Creation and dev buy share the same signature, slot, and latency. There is no gap between creation and first buy.

PumpFun Modes

PumpFun offers two optional modes that are configured at creation and cannot be changed afterwards.

Mayhem Mode

When isMayhem: true, PumpFun’s AI agent Agent Pumpy automatically trades your token for 24 hours after launch with random buy and sell transactions.
  • An additional 1B tokens are minted at creation (total supply temporarily 2B)
  • Agent Pumpy trades the token for 24h with randomized activity
  • All unsold tokens are burned at the end of the 24h period
  • Generates consistent on-chain activity during the critical post-launch window
isMayhem is irreversible — it must be set at creation and cannot be disabled. PumpFun does not guarantee any economic outcome from Mayhem Mode. See PumpFun’s Mayhem Mode disclaimer.

Cashback Mode

When isCashback: true, the standard 0.3% creator fees generated by trades are redirected to traders instead of being paid to the token creator. Each trader receives cashback proportional to their swap volume on that token.
  • Traders accumulate cashback on every swap they make on the token
  • The creator wallet receives no fees from trading activity
  • Community Takeovers (CTOs) are not possible on cashback-enabled tokens
  • Signals long-term commitment from the creator — no economic incentive to abandon the project
isCashback is irreversible — once enabled at creation, the creator will never receive trading fees for this token.
Both modes are independent and can be combined. You are responsible for ensuring your use complies with applicable laws and regulations.

Image Sources

Token images must be hosted on a whitelisted source:
SourceAccepted URL pattern
IPFS.iohttps://ipfs.io/ipfs/*
Pinatahttps://*.mypinata.cloud/ipfs/*
Images from other sources will be rejected. Upload to IPFS before calling the API.

Upload to IPFS

You can upload your token image to IPFS using PumpFun’s free upload endpoint. The returned metadataUri is the URL to use as the image parameter when creating your token.
Upload a local image file to IPFS.
curl -X POST https://pump.fun/api/ipfs \
  -F "file=@./image.png"
The endpoint returns an IPFS URL you can use directly:
{
  "metadataUri": "https://ipfs.io/ipfs/QmXkFh..."
}

More Examples

Full token creation with all social links, dev buy, and platform attribution.
curl -X POST https://api.launchpad.trade/pumpfun/create \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "devPrivateKey": "YOUR_PRIVATE_KEY",
    "name": "My Token",
    "symbol": "MYTOKEN",
    "image": "https://ipfs.io/ipfs/QmExample.../image.png",
    "description": "A sample token on PumpFun",
    "twitter": "https://x.com/mytoken",
    "telegram": "https://t.me/mytoken",
    "website": "https://mytoken.xyz",
    "devBuy": 1.0,
    "priorityFee": {
      "mode": "ULTRA"
    },
    "platformTag": {
      "platform": "PHOTON"
    }
  }'
Token creation with AI-driven post-launch activity and fee redistribution to traders. Both flags are irreversible.
curl -X POST https://api.launchpad.trade/pumpfun/create \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "devPrivateKey": "YOUR_PRIVATE_KEY",
    "name": "My Token",
    "symbol": "MYTOKEN",
    "image": "https://ipfs.io/ipfs/QmExample.../image.png",
    "description": "A sample token on PumpFun",
    "devBuy": 0.5,
    "isMayhem": true,
    "isCashback": true,
    "priorityFee": {
      "mode": "FAST"
    }
  }'

Response

{
  "success": true,
  "data": {
    "tokenAddress": "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr",
    "signature": "5UfDuX7nPqR3kLm8vYz...",
    "slot": 234567890,
    "networkLatency": 48,
    "confirmLatency": 535,
    "devBuy": {
      "amountSol": 0.5,
      "tokensReceived": 1000000000
    }
  }
}

Errors

{
  "success": false,
  "error": {
    "code": "INVALID_IMAGE",
    "message": "Image URL must be from a whitelisted source"
  }
}
CodeMessageCause
INVALID_WALLETInvalid private keyDev wallet private key is invalid
INVALID_NAMEToken name too longName exceeds 32 characters
INVALID_SYMBOLToken symbol too longSymbol exceeds 10 characters
INVALID_IMAGEImage URL must be from a whitelisted sourceImage URL not from an accepted source
INVALID_IMAGEInvalid image formatImage format not supported (use PNG, JPG, GIF, or WebP)
INVALID_SOCIALInvalid Twitter URLTwitter URL format is incorrect
INVALID_SOCIALInvalid Telegram URLTelegram URL format is incorrect
INSUFFICIENT_SOLInsufficient SOL balanceNot enough SOL for creation cost + dev buy
RATE_LIMITRate limit exceededToo many requests — see Rate Limits
INTERNAL_ERRORInternal server errorRetry or contact support

Notes

Use ULTRA priority fee for time-sensitive launches where first-block positioning matters. See Priority Fee for details.
  • Token creation costs ~0.02 SOL (paid by the dev wallet)
  • The dev wallet needs enough SOL to cover creation cost + dev buy amount + priority fee

What’s Next?

Buy Tokens

Buy more tokens after creation

Claim Creator Fees

Collect accumulated trading fees from your token

Update Fee Shares

Configure fee recipients and percentages

Priority Fee

Configure transaction speed and cost