WormGPT API

OpenAI-compatible REST API for powerful AI completions. Drop-in replacement — just change the base URL.

Authentication

All API requests require authentication using a Bearer token. Get your API key from the Dashboard.

ℹ️ Include your API key in the Authorization header as Bearer YOUR_API_KEY
Authorization: Bearer fgpt-your-api-key-here

Pricing

$16
per 1,000,000 tokens (input + output combined)

WormGPT charges by the total number of tokens processed — both input (prompt) and output (completion) tokens are counted together. No subscriptions, no hidden fees. Top up anytime via crypto or Telegram Stars.

TokensCostExample
1,000$0.016~750 words
100,000$1.60~75,000 words
1,000,000$16.00~750,000 words

Top Up Methods

💎 Crypto — Pay $16+ via CryptoCloud (BTC, ETH, USDT, TON and more). Tokens credited instantly after confirmation.
Telegram Stars — Send 1000 Stars ⭐ in @WormGPT_PW_bot → get 1,000,000 tokens instantly.

Quickstart

WormGPT is fully OpenAI-compatible. Just change the base_url to our endpoint and use your API key from the Dashboard.

# Python — using openai library
from openai import OpenAI

client = OpenAI(
    api_key="wgpt-your-api-key",
    base_url="https://api.wormgpt.pw/v1"
)

response = client.chat.completions.create(
    model="wormgpt-uncensored",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)

Chat Completions

Generate text completions from a list of messages. Fully compatible with the OpenAI Chat Completions API.

POST /v1/chat/completions
Create a chat completion based on a list of messages.
ParameterTypeRequiredDescription
messages array required Array of message objects with role and content
model string required Model ID. Use wormgpt-uncensored
stream boolean optional If true, stream partial message deltas via SSE
temperature number optional Sampling temperature 0–2. Default: 1.0
max_tokens integer optional Maximum tokens to generate

Request Example

{
  "model": "wormgpt-uncensored",
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "Explain quantum computing in simple terms."
    }
  ],
  "temperature": 0.7,
  "max_tokens": 1000
}

Response Example

{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "wormgpt-uncensored",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Quantum computing uses quantum bits..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 42,
    "completion_tokens": 158,
    "total_tokens": 200
  }
}

Streaming

Set stream: true to receive partial results via Server-Sent Events as they're generated.

# Python streaming example
stream = client.chat.completions.create(
    model="wormgpt-uncensored",
    messages=[{"role": "user", "content": "Tell me a story"}],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content is not None:
        print(chunk.choices[0].delta.content, end="", flush=True)

Models

Model IDContextStatusDescription
wormgpt-uncensored 128K ✓ Available High-performance general purpose model
GET /v1/models
List all available models.

Error Codes

StatusCodeDescription
401unauthorizedInvalid or missing API key
402insufficient_tokensNot enough token balance — top up in dashboard
429rate_limitedToo many requests. Slow down.
500server_errorInternal error. Please retry.

Python SDK

WormGPT is fully compatible with the official OpenAI Python library.

# Install
pip install openai

# Usage
from openai import OpenAI

client = OpenAI(
    api_key="wgpt-your-key",
    base_url="https://api.wormgpt.pw/v1"
)

response = client.chat.completions.create(
    model="wormgpt-uncensored",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Node.js SDK

// Install: npm install openai
const OpenAI = require('openai');

const client = new OpenAI({
  apiKey: 'wgpt-your-key',
  baseURL: 'https://api.wormgpt.pw/v1'
});

const response = await client.chat.completions.create({
  model: 'wormgpt-uncensored',
  messages: [{ role: 'user', content: 'Hello!' }]
});
console.log(response.choices[0].message.content);

cURL

curl https://api.wormgpt.pw/v1/chat/completions \
  -H "Authorization: Bearer wgpt-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wormgpt-uncensored",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Telegram Bot

Manage your account directly from Telegram — top up balance, get your API key, and access the dashboard without a browser.

🤖 Bot: @WormGPT_PW_bot — send /start to create your account and get your API key instantly.
ActionHow
Get API keyTap 🔑 API ключ
Check balanceTap 💰 Мой баланс
Top up with cryptoTap 💳 Пополнить → 💎 Крипто
Top up with StarsTap 💳 Пополнить → ⭐ Звёзды (1,600 Stars = 1M tokens)
Open dashboardTap 🌐 Открыть WormGPT