CG

Migration Guides

Updated May 29, 2026, 12:30 PM

Migration Guides

Migration Guides

Three migration paths are available depending on your current setup. Full migration guides with complete code examples are in the plugin's migration/ directory.


1. From OpenAI

Concept Mapping

OpenAIChainGPT Equivalent
Assistants API / Chat CompletionsChainGPT LLM Chat
DALL-ENFT Generator (VeloGen, Nebula, Visionary, Dale3)
Custom fine-tuned modelsSolidity LLM (self-hosted, open-source)

Code Migration

OpenAI (before):

const response = await openai.chat.completions.create({
  model: "gpt-4",
  messages: [{ role: "user", content: "Explain ERC-721" }]
});

ChainGPT (after):

const response = await fetch("https://api.chaingpt.org/chat", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${CHAINGPT_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ question: "Explain ERC-721" })
});

Pricing Comparison

  • OpenAI GPT-4: ~$0.03-0.06 per 1K tokens
  • ChainGPT LLM Chat: $0.005-0.01 per request (flat rate, Web3-optimized)

ChainGPT offers predictable per-request pricing rather than token-based billing, with responses specifically tuned for blockchain and Web3 use cases.


2. From Alchemy AI

Two strategies are available:

Complementary approach -- Keep Alchemy for on-chain data and indexing, add ChainGPT for AI capabilities (LLM, NFT generation, contract auditing). The two services cover different needs and work well together.

Replacement approach -- ChainGPT covers AI chat, smart contract generation/auditing, NFT creation, and blockchain news. Migrate AI-specific workloads to ChainGPT while retaining Alchemy for raw blockchain data if needed.


3. From Custom AI Solutions

Cost Comparison

ApproachMonthly Cost (typical)
Self-hosted LLM (GPU infra)$500-5,000+
Custom fine-tuned model (cloud)$200-2,000+
ChainGPT API (equivalent usage)$5-50

Hybrid Approach

You don't have to migrate everything at once:

  1. Start with ChainGPT for new features (NFT generation, contract auditing)
  2. Run your existing solution in parallel with ChainGPT LLM Chat
  3. Compare quality and cost over 30 days
  4. Gradually shift traffic based on results

The mock server lets you test the full integration at zero cost before committing.


Full Migration Guides

The plugin's migration/ directory contains detailed guides with:

  • Step-by-step migration checklists
  • Complete code examples for each platform
  • Configuration templates
  • Rollback procedures
View original source