Api Endpoint

Chat completions (LLM)

Chat completions (LLM). 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.

Open interactive test console

Offering

Provider
agent-data-tools.revmesh2074.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agent-data-tools.revmesh2074.workers.dev/ai/chat
MIME type
application/json
First seen
2026-10-23T22:18:31.909Z
Last seen
Tags
chat-completions, llm-chat-completion, chat, completion, llama

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.003 USDC
Atomic price: 3000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 3
0.003 USDC
Atomic price: 3000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 4
0.003 USDC
Atomic price: 3000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "3000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "3000",
    "payTo": "0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "3000",
    "payTo": "82wfSCZhCmZA7zwqqt6Q3FG8nqYBwUvbThP6M97fa9Q6"
  }
]

Observed health

Status
Healthy
Latest latency
191 ms
Average latency
357 ms
HTTP status
402
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "prompt": {
          "type": "string",
          "description": "User prompt, up to 8,000 characters. With no input at all the default prompt is \"Explain HTTP status code 402 in one sentence.\"",
          "examples": [
            "Explain HTTP status code 402 in one sentence."
          ]
        },
        "system": {
          "type": "string",
          "description": "Optional system prompt, up to 2,000 characters",
          "examples": [
            "You are a concise assistant."
          ]
        },
        "maxTokens": {
          "type": "integer",
          "description": "Maximum output tokens, 1-1024 (default 400)",
          "examples": [
            200
          ]
        },
        "temperature": {
          "type": "number",
          "description": "0-1.5 (default 0.6)",
          "examples": [
            0.6
          ]
        },
        "messages": {
          "type": "string",
          "description": "Optional OpenAI messages array as JSON (system, user, assistant with tool_calls, tool); replaces prompt and system. Together with tools, at most 20,000 characters",
          "examples": [
            "[{\"role\":\"user\",\"content\":\"What is the weather in Stockholm?\"}]"
          ]
        },
        "tools": {
          "type": "string",
          "description": "Optional OpenAI tools array as JSON (function calling, up to 32 functions); the answer then carries tool_calls",
          "examples": [
            "[{\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}}}]"
          ]
        },
        "tool_choice": {
          "type": "string",
          "description": "Optional: auto, none, required, or a JSON object naming one function",
          "examples": [
            "auto"
          ]
        },
        "response_format": {
          "type": "string",
          "description": "Optional OpenAI response_format as JSON: {\"type\":\"json_object\"} or a json_schema",
          "examples": [
            "{\"type\":\"json_object\"}"
          ]
        }
      },
      "required": [
        "prompt"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "maxTokens": {
              "description": "Maximum output tokens, 1-1024 (default 400)",
              "examples": [
                200
              ],
              "type": "integer"
            },
            "messages": {
              "description": "Optional OpenAI messages array as JSON (system, user, assistant with tool_calls, tool); replaces prompt and system. Together with tools, at most 20,000 characters",
              "examples": [
                "[{\"role\":\"user\",\"content\":\"What is the weather in Stockholm?\"}]"
              ],
              "type": "string"
            },
            "prompt": {
              "description": "User prompt, up to 8,000 characters",
              "examples": [
                "Explain x402 in one sentence."
              ],
              "type": "string"
            },
            "response_format": {
              "description": "Optional OpenAI response_format as JSON: {\"type\":\"json_object\"} or a json_schema",
              "examples": [
                "{\"type\":\"json_object\"}"
              ],
              "type": "string"
            },
            "system": {
              "description": "Optional system prompt, up to 2,000 characters",
              "examples": [
                "You are a concise assistant."
              ],
              "type": "string"
            },
            "temperature": {
              "description": "0-1.5 (default 0.6)",
              "examples": [
                0.6
              ],
              "type": "number"
            },
            "tool_choice": {
              "description": "Optional: auto, none, required, or a JSON object naming one function",
              "examples": [
                "auto"
              ],
              "type": "string"
            },
            "tools": {
              "description": "Optional OpenAI tools array as JSON (function calling, up to 32 functions); the answer then carries tool_calls",
              "examples": [
                "[{\"type\":\"function\",\"function\":{\"name\":\"get_weather\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}}}]"
              ],
              "type": "string"
            }
          },
          "required": [
            "prompt"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "finish_reason": {
              "type": "string"
            },
            "model": {
              "type": "string"
            },
            "response": {
              "type": "string"
            },
            "tool_calls": {
              "items": {},
              "type": "array"
            },
            "usage": {
              "properties": {
                "completion_tokens": {
                  "type": "number"
                },
                "prompt_tokens": {
                  "type": "number"
                },
                "total_tokens": {
                  "type": "number"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}