# AGISHub LLM Chat

> AGISHub LLM Chat is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Sends a prompt (and optional system instruction) to a general-purpose LLM and returns a text response, with no external API key required.

## Facts

- Endpoint: GET https://api.agishub.com/v1/chat
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-llm-chat-4270caf3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Ec4jJvd8BKg-0eqBNWFe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agishub-llm-chat-4270caf3
```

Example prompt: Ask the AI: 'Explain the difference between supervised and unsupervised learning in simple terms' — use a system prompt of 'You are a friendly teacher who explains concepts clearly' and limit the response to 300 tokens.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call LLM text generation without managing your own API keys or subscriptions — ideal for agent pipelines that need occasional AI responses, prototyping, or cost-controlled one-off queries. Prefer this over self-hosted or subscription-based LLM APIs when you want zero credential management and micro-payment billing via x402.

## Known failure modes

- Missing required 'prompt' parameter returns an error
- max_tokens set to 0 or exceeding 2048 causes a validation error
- Ambiguous or very long prompts may result in truncated or low-quality responses
- Payment not fulfilled (x402) causes a 402 response before the LLM is called
- Network timeouts if the LLM takes too long to respond

## How this service works

Ask a general-purpose LLM a question or give it an instruction, with an optional system prompt. No external API key required.

## Output

A JSON object with a 'result' field containing the LLM's generated text response to the prompt, up to the specified max_tokens limit (default 512).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "minLength": 1,
       "description": "The user's message or question for the assistant."
      },
      "system": {
       "type": "string",
       "description": "Optional system instruction to steer the assistant's behaviour/persona."
      },
      "max_tokens": {
       "type": "integer",
       "maximum": 2048,
       "minimum": 0,
       "description": "Maximum tokens to generate (default 512).",
       "exclusiveMinimum": true
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "Ask a general-purpose LLM a question or give it an instruction, with an optional system prompt. No external API key requ"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-llm-chat-4270caf3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agishub.com](https://www.zero.xyz/host/api.agishub.com/llms.txt)
