Glyphcall
AIUpdated 26 November 2026From $0.003 per call · failed calls are never charged

Pay-per-call LLM chat API (Llama 3.1 8B), no subscription

$0.003 per call · failed calls are never charged · no account needed: a card key or USDC

Send a prompt, get an answer from Meta's Llama 4 Scout (17B active, 16 experts), with an optional system prompt, up to 1,024 output tokens and adjustable temperature. Fast and cheap. Use for drafting, reasoning steps, Q&A and any quick LLM call without an AI provider account; other open models by name at /v1/chat/completions, harder reasoning at ai_chat_large.

When to use it

Guide: Chat completions API, pay per call

Buy credits by card (from $1) Example result (JSON)

Inputs

NameTypeDescription
prompt (required)stringUser prompt, up to 8,000 characters. With no input at all the default prompt is "Explain HTTP status code 402 in one sentence."
systemstringOptional system prompt, up to 2,000 characters
maxTokensintegerMaximum output tokens, 1-1024 (default 400)
temperaturenumber0-1.5 (default 0.6)
messagesstringOptional OpenAI messages array as JSON (system, user, assistant with tool_calls, tool); replaces prompt and system. Together with tools, at most 20,000 characters
toolsstringOptional OpenAI tools array as JSON (function calling, up to 32 functions); the answer then carries tool_calls
tool_choicestringOptional: auto, none, required, or a JSON object naming one function
response_formatstringOptional OpenAI response_format as JSON: {"type":"json_object"} or a json_schema

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/ai/chat?prompt=Explain%20HTTP%20status%20code%20402%20in%20one%20sentence."

Node.js

const r = await fetch("https://glyphtools.com/ai/chat?prompt=Explain%20HTTP%20status%20code%20402%20in%20one%20sentence.", {
  headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header

Python

import requests

r = requests.get("https://glyphtools.com/ai/chat?prompt=Explain%20HTTP%20status%20code%20402%20in%20one%20sentence.", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "model": "@cf/meta/llama-4-scout-17b-16e-instruct",
  "response": "HTTP 402 Payment Required is a status code that tells a client it must pay before the server will fulfil the request.",
  "tool_calls": [],
  "finish_reason": "stop",
  "usage": {
    "prompt_tokens": 24,
    "completion_tokens": 22,
    "total_tokens": 46
  }
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is ai_chat, paid from the first call:

https://glyphtools.com/mcp

Questions

Is there an OpenAI-compatible endpoint?

Yes: /v1/chat/completions, /v1/responses and /v1/embeddings take the same payment methods.

How do I pay?

Each successful call costs $0.003; failed calls are not charged. This tool is not in the free calls (they run tools that only compute or look up public data); from the first call pay with card credits (from $1; the key goes in an Authorization header or, for clients that can only fetch a URL, as api_key= in the URL) or per call in USDC over x402 or MPP. No account is needed.

Related tools