ChainGPTChainGPTHelp Center

AI NFT Generator

Updated Nov 28, 2026, 01:46 AM

AI NFT Generator

NFT generation, minting, collections and prompt enhancement are not available on the API right now. These endpoints return 404. Image generation (/nft/generate-image, /nft/generate-multiple-images) works.

AI NFT Generator

Generate images from text prompts and mint them as NFTs on-chain across 22+ blockchains. Two generation models are available today: VeloGen (velogen) and NebulaForge XL (nebula_forge_xl).

Key Facts

Generate EndpointPOST /nft/generate-image
Mint EndpointPOST /nft/mint
Full NFT EndpointPOST /nft/generate-nft
Enhance PromptPOST /nft/enhancePrompt
List ChainsGET /nft/get-chains
Check ProgressGET /nft/progress/{id}
Cost1 credit per prompt
SDK@chaingpt/nft
Chains22+ supported for minting

Generation Models

ModelStyleSpeedStepsBest For
VeloGenFast generationVery fast1--4Rapid prototyping, previews, high-volume generation
NebulaForge XLHighly detailedSlowerMorePremium artwork, detailed illustrations, showcase pieces
VisionaryForgeGeneral purposeMediumMediumCurrently unavailable (returns 400 "Image model unavailable")
Dale3DALL-E 3MediumN/ACurrently unavailable (returns 400 "Image model unavailable")

Credit Costs

Costs vary by model and generation options. See NFT API Pricing & Credits for pricing details.

Endpoints

MethodPathDescription
POST/nft/generate-imageGenerate an image from a text prompt (returns image URL)
POST/nft/generate-nftGenerate image and prepare NFT metadata in one call
POST/nft/mintMint a generated image as an NFT on a supported chain
POST/nft/enhancePromptAI-enhance a rough prompt into a detailed generation prompt
GET/nft/get-chainsList all supported chains for minting
GET/nft/progress/{id}Check the progress of an in-flight generation or mint

Quick Start -- JavaScript

Install the SDK:

npm install @chaingpt/nft

Generate an Image

import { Nft } from "@chaingpt/nft";

const client = new Nft({
  apiKey: process.env.CHAINGPT_API_KEY,
});

const image = await client.generateImage({
  prompt: "A cyberpunk city skyline with neon blockchain nodes floating above the buildings",
  model: "nebula_forge_xl",
});

console.log("Image URL:", image.data.imageUrl);

Generate + Mint Flow

import { Nft } from "@chaingpt/nft";

const client = new Nft({
  apiKey: process.env.CHAINGPT_API_KEY,
});

// Step 1: Enhance the prompt
const enhanced = await client.enhancePrompt({
  prompt: "a dragon guarding a vault of crypto coins",
});
console.log("Enhanced prompt:", enhanced.data.enhancedPrompt);

// Step 2: Generate the image
const image = await client.generateImage({
  prompt: enhanced.data.enhancedPrompt,
  model: "nebula_forge_xl",
});
console.log("Image URL:", image.data.imageUrl);

// Step 3: List available chains
const chains = await client.getChains();
console.log("Available chains:", chains.data);

// Step 4: Mint the NFT
const mintResult = await client.mint({
  imageUrl: image.data.imageUrl,
  name: "Dragon Vault Guardian",
  description: "A dragon guarding a vault of crypto coins",
  chain: "BSC",
  walletAddress: "0xYourWalletAddress",
});

console.log("Mint transaction:", mintResult.data.transactionHash);

// Step 5: Check progress if needed
const progress = await client.getProgress(mintResult.data.id);
console.log("Status:", progress.data.status);

Tips

  • Use enhancePrompt before generating -- it significantly improves output quality, especially with short or vague prompts.
  • Start with VeloGen during development and switch to NebulaForge XL for production artwork.
  • The generate-nft endpoint combines generation and metadata preparation into a single call, which is simpler for basic flows.
  • Poll progress/{id} for long-running generations or mints rather than blocking.
  • Pair with the Smart Contract Auditor if you are deploying custom minting contracts alongside the generated NFTs.
View original source