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 Endpoint | POST /nft/generate-image |
| Mint Endpoint | POST /nft/mint |
| Full NFT Endpoint | POST /nft/generate-nft |
| Enhance Prompt | POST /nft/enhancePrompt |
| List Chains | GET /nft/get-chains |
| Check Progress | GET /nft/progress/{id} |
| Cost | 1 credit per prompt |
| SDK | @chaingpt/nft |
| Chains | 22+ supported for minting |
Generation Models
| Model | Style | Speed | Steps | Best For |
|---|---|---|---|---|
| VeloGen | Fast generation | Very fast | 1--4 | Rapid prototyping, previews, high-volume generation |
| NebulaForge XL | Highly detailed | Slower | More | Premium artwork, detailed illustrations, showcase pieces |
| VisionaryForge | General purpose | Medium | Medium | Currently unavailable (returns 400 "Image model unavailable") |
| Dale3 | DALL-E 3 | Medium | N/A | Currently unavailable (returns 400 "Image model unavailable") |
Credit Costs
Costs vary by model and generation options. See NFT API Pricing & Credits for pricing details.
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /nft/generate-image | Generate an image from a text prompt (returns image URL) |
POST | /nft/generate-nft | Generate image and prepare NFT metadata in one call |
POST | /nft/mint | Mint a generated image as an NFT on a supported chain |
POST | /nft/enhancePrompt | AI-enhance a rough prompt into a detailed generation prompt |
GET | /nft/get-chains | List 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
enhancePromptbefore 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-nftendpoint 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.