chaingpt
它能做什么
这项技能是 ChainGPT 的开发参考资料。ChainGPT 是一个面向区块链应用的 AI 工具平台。内容涵盖每个产品的 API 细节、计费单位和 SDK 包,适合为应用添加 AI 聊天、NFT、智能合约或加密新闻功能的开发者。
适用场景
- ✓当你想在区块链应用中添加 Web3 AI 聊天机器人的时候。
- ✓当你需要用 ChainGPT 生成 NFT 图像或智能合约代码时。
- ✓当你想使用 ChainGPT API 审计智能合约或添加加密新闻的时候。
技能链接
https://github.com/internet-court/internet-court-skill/blob/main/vendored/chaingpt/chaingpt/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想在我的应用中添加 ChainGPT 智能合约审计功能。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会使用每个产品的参考细节,例如端点、请求格式和对应的 SDK。它会在请求头中附上你的 API 密钥发送请求,并遵循平台关于安全保存密钥的建议。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
ChainGPT Developer Skill
You are an expert at building with the ChainGPT Web3 AI platform. When a developer asks you to integrate any ChainGPT product, you know the exact endpoints, SDK methods, parameters, pricing, and best practices.
Platform Overview
ChainGPT provides AI infrastructure for Web3 via APIs, SDKs, and whitelabel SaaS. All API products share:
- Base URL:
https://api.chaingpt.org - Auth:
Authorization: Bearer <API_KEY>header - Rate Limit: 200 requests/minute per key
- Credits: 1 CGPTc = $0.01 USD (never expire). Purchase at https://app.chaingpt.org/addcredits
- API Dashboard: https://app.chaingpt.org/apidashboard
- SDKs: JavaScript/TypeScript (Node.js) + Python for all products
Getting an API Key
- Visit https://app.chaingpt.org — connect a crypto wallet to sign up
- Navigate to API Keys → "Create New Secret Key"
- Store the key securely (env var or secret manager — shown only once)
- Ensure sufficient credits (crypto, $CGPT token, or credit card)
- 15% bonus when paying with $CGPT or via monthly auto-top-up
Products at a Glance
| Product | NPM Package | Model ID / Endpoint | Cost per Request |
|---|---|---|---|
| Web3 AI Chatbot & LLM | @chaingpt/generalchat |
general_assistant via POST /chat/stream |
0.5 credits (+0.5 w/ history) |
| AI NFT Generator | @chaingpt/nft |
POST /nft/generate-image + 5 more |
1-14.25 credits (model/upscale) |
| Smart Contract Generator | @chaingpt/smartcontractgenerator |
smart_contract_generator via POST /chat/stream |
1 credit (+1 w/ history) |
| Smart Contract Auditor | @chaingpt/smartcontractauditor |
smart_contract_auditor via POST /chat/stream |
1 credit (+1 w/ history) |
| AI Crypto News | @chaingpt/ainews |
GET /news |
1 credit per 10 records |
| AgenticOS | Open-source (GitHub) | Self-hosted | 1 credit per generated tweet |
| Solidity LLM | Open-source (HuggingFace) | Local inference | Free (self-hosted) |
Python: pip install chaingpt (unified package for all products)
Quick Starts
1. Web3 AI Chatbot & LLM
The LLM is fine-tuned for crypto/blockchain with live on-chain data, Nansen Smart Money, token analytics, and 33+ chain support.
JavaScript:
import { GeneralChat } from '@chaingpt/generalchat';
const chat = new GeneralChat({ apiKey: process.env.CHAINGPT_API_KEY });
// Buffered response
const res = await chat.createChatBlob({
question: 'What is the current ETH price and market sentiment?',
chatHistory: 'off'
});
console.log(res.data.bot);
// Streaming response
const stream = await chat.createChatStream({
question: 'Analyze the top DeFi protocols by TVL',
chatHistory: 'on',
sdkUniqueId: 'session-123'
});
stream.on('data', chunk => process.stdout.write(chunk.toString()));
Python:
from chaingpt.client import ChainGPTClient
from chaingpt.models import LLMChatRequestModel
from chaingpt.types import ChatHistoryMode
async with ChainGPTClient(api_key=API_KEY) as client:
res = await client.llm.chat(LLMChatRequestModel(
question="Explain yield farming strategies",
chatHistory=ChatHistoryMode.OFF
))
print(res.data.bot)
REST (single endpoint for all chat-based products):
curl -X POST "https://api.chaingpt.org/chat/stream" \
-H "Authorization: Bearer $CHAINGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"general_assistant","question":"How do Ethereum smart contracts work?","chatHistory":"off"}'
For full parameter reference (context injection, custom tones, blockchain enums, chat history retrieval), read
reference/llm-chatbot.md.
2. AI NFT Generator
Generate images from text prompts, mint as NFTs across 22+ chains. Four models: VeloGen (fast), NebulaForge XL (detailed), VisionaryForge (general), Dale3 (DALL-E 3).
JavaScript:
import { Nft } from '@chaingpt/nft';
const nft = new Nft({ apiKey: process.env.CHAINGPT_API_KEY });
// Generate image
const img = await nft.generateImage({
prompt: 'A cyberpunk dragon guarding a blockchain vault',
model: 'nebula_forge_xl', height: 1024, width: 1024, steps: 25, enhance: '1x'
});
// Generate + mint NFT
const gen = await nft.generateNft({
prompt: 'Cosmic whale swimming through DeFi protocols',
model: 'velogen', height: 512, width: 512, steps: 3,
walletAddress: '0xYOUR_WALLET', chainId: 56, amount: 1
});
const mint = await nft.mintNft({
collec
常见问题
我在哪里获得 ChainGPT API 密钥?
在 ChainGPT 应用中,于 API 部分创建新的密钥。密钥只显示一次。
费用如何计算?
请求使用额度。每个额度值一美分,额度永不过期。
有请求次数限制吗?
有。该技能列出每个密钥每分钟 200 次请求的限制。
详情
作者的原始描述
Build with the ChainGPT Web3 AI developer platform. Full API/SDK reference and project scaffolding for: Web3 AI Chatbot & LLM, AI NFT Generator, Smart Contract Generator, Smart Contract Auditor, AI Crypto News, AgenticOS Twitter agents, and Solidity LLM. Use when building blockchain apps, Web3 chatbots, NFT tools, smart contract tools, crypto news feeds, AI agents, or integrating any ChainGPT API. Triggers: chaingpt, web3 ai, nft generator, smart contract audit, crypto news api, agenticos, solidity llm, cgpt, blockchain ai, token analytics.
热度
- GitHub 星标
- 7.0k
- 排名
- #13621
- 许可证
- —
- 更新时间
- 2026/10/26
评论
- …
同一仓库的更多技能
internet-court
7.0k帮你的智能体安全地向其他 AI 智能体或付费服务付款、雇用或进行交易,并指引它找到合适的专业指南。
genlayer-erc7710-connector
7.0k帮你的智能体把 AI 审核结果与权限系统连接起来,使不合格的审核可以限制或取消智能体的权限。
genlayer-intelligent-contracts
7.0k帮你的智能体定义 AI 裁判的规则、证据和输出,用于检查另一个智能体是否遵循了其授权范围。
x402-erc7710
7.0k帮你的智能体按次为网络服务付款,并设置在权限预算范围内的持续支出。