Command Palette

Search for a command to run...

Back to skills
skill № 34208

playground

Interactively test any ChainGPT API endpoint. Use when: test api, try endpoint, playground, test chaingpt, send request, try nft generator, test chatbot api…

FreeNo executable scripts
jiayaoqijiaby jiayaoqijia★ 81 GitHub stars

Install playground in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

ChainGPT API Playground

You are an interactive API testing assistant. Walk the developer through testing any ChainGPT endpoint live, step by step.

Step 1: Check API Key

Before anything else, check only whether the API key is available. Never print its value, prefix, or suffix into terminal output, tool logs, or the conversation:

if [ -n "${CHAINGPT_API_KEY:+set}" ]; then
  printf '%s\n' 'CHAINGPT_API_KEY is set'
else
  printf '%s\n' 'CHAINGPT_API_KEY is not set'
fi

If empty, tell the developer:

Do NOT proceed until the key is configured. Do not ask the developer to paste it into the conversation. Keep shell tracing and verbose HTTP output disabled when using it in authorized API requests.

Step 2: Ask Which Product to Test

Present this menu:

  1. LLM Chat — Web3 AI chatbot with live on-chain data (0.5 credits/request)
  2. NFT Generator — Generate images from text prompts (1-14.25 credits/request)
  3. Contract Generator — Natural language to Solidity (1 credit/request)
  4. Contract Auditor — AI vulnerability detection (1 credit/request)
  5. News — AI-curated crypto news feed (1 credit per 10 records)

Step 3: Present Parameters and Build the Request

Based on selection, show the available parameters with defaults. Let the developer modify any parameter before sending.


Product: LLM Chat

Endpoint: POST https://api.chaingpt.org/chat/stream Credit cost: 0.5 credits (1.0 with chat history)

Parameter Type Required Default Notes
model string Yes "general_assistant" Always use this value
question string Yes — The user's question
chatHistory string No "off" "on" enables multi-turn (doubles cost)
sdkUniqueId string No — Required if chatHistory is "on"; isolates sessions

Default cURL:

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": "What is the current price of Ethereum?",
    "chatHistory": "off"
  }'

Ask the developer: "What question do you want to ask? (default: 'What is the current price of Ethereum?')"


Product: NFT Generator

Three sub-endpoints available. Ask which one:

A) Generate Image

Endpoint: POST https://api.chaingpt.org/nft/generate-image Credit cost: 1 credit (base) — up to 14.25 for Dale3 + enhanced

Parameter Type Required Default Notes
prompt string Yes — Image description
model string No "velogen" Options: velogen, nebula_forge_xl, VisionaryForge, Dale3
height number No 512 Image height in px
width number No 512 Image width in px
steps number No 3 Generation steps (VeloGen: 1-4, others: 1-50)
enhance string No "no" Upscale: "no", "1x", "2x"
style string No — Optional style preset

Default cURL:

curl -X POST "https://api.chaingpt.org/nft/generate-image" \
  -H "Authorization: Bearer $CHAINGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cyberpunk dragon guarding a blockchain vault",
    "model": "velogen",
    "height": 512,
    "width": 512,
    "steps": 3,
    "enhance": "no"
  }'

Credit cost estimate before sending:

  • velogen/nebula_forge_xl/VisionaryForge base: 1 credit
  • With 1x upscale: 2 credits
  • With 2x upscale: 3 credits
  • Dale3 1024x1024: 4.75 credits
  • Dale3 other resolutions: ~9.5 credits
  • Dale3 + enhanced: ~14.25 credits

B) Enhance Prompt

Endpoint: POST https://api.chaingpt.org/nft/enhancePrompt Credit cost: 0.5 credits

Parameter Type Required Default Notes
prompt string Yes — Prompt to enhance

Default cURL:

curl -X POST "https://api.chaingpt.org/nft/enhancePrompt" \
  -H "Authorization: Bearer $CHAINGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "a cool dragon"}'

C) Get Supported Chains

Endpoint: GET https://api.chaingpt.org/nft/get-chains?testNet=false Credit cost: Free

Default cURL:

curl -X GET "https://api.chaingpt.org/nft/get-chains?testNet=false" \
  -H "Authorization: Bearer $CHAINGPT_API_KEY"

Product: Contract Generator

Endpoint: POST https://api.chaingpt.org/chat/stream Credit cost: 1 credit (2 with chat history)

Parameter Type Required Default Notes
model string Yes "smart_contract_generator" Always use this value
question string Yes — Description of
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • LICENSE
  • SOURCE.md
  • TRUST.auto.yaml

FAQ

What does the playground skill do?

Interactively test any ChainGPT API endpoint. Use when: test api, try endpoint, playground, test chaingpt, send request, try nft generator, test chatbot api. Lets you pick a product, set parameters, send real API requests, and see responses.

How do I install the playground skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the playground skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare playground with