80trust / 100

Chat Completions

by AiSpace Venice in AI models & inference

x402 APIPassing, checked 2 h ago

OpenAI-compatible chat on 100+ Venice models via x402 USDC (Base). Model from GET /api/v1/models?type=text; personas via /characters. Thinking models: empty content + reasoning_content is success; use venice_parameters.disable_thinking for plain text.

POST
https://x402.aispace.bot/api/v1/chat/completions
Price
$0.01
per call in USDC
Uptime
98.9%
last 30 days
Response time
337 ms
507 ms slowest 5%
Last check
Passed
2 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://x402.aispace.bot/api/v1/chat/completions

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://x402.aispace.bot/api/v1/chat/completions
content-type: application/json

{
  "messages": [
    {
      "content": "Say hello in one sentence.",
      "role": "user"
    }
  ],
  "model": "zai-org-glm-5-2"
}

Parameters

ParameterTypeRequiredDescription
choices[].message.extra_contentstringNoProvider-specific content. google.thought_signature is the same Gemini signature as top-level thought_signature. Pass either form back exactly as received. Not billed as prompt tokens.
choices[].message.reasoning_contentstringNoOn thinking models, chain-of-thought text. content may be empty if max_tokens is spent on thinking first (finish_reason=length). Check this field as well as content.
choices[].message.reasoning_detailsstringNoStructured thought signatures (Claude Opus / GPT-5.4 Pro etc). Pass back unchanged on the next turn.
choices[].message.thought_signaturestringNoGemini thought signature (native GCP transport). Pass back exactly as received on the next turn, including on tool calls. Same value as extra_content.google.thought_signature. Not billed as prompt tokens.
max_tokensintegerNoOptional. Buyer-chosen completion cap — this gateway does not set a default. Omit unless you want to bound output. On thinking models a small value can exhaust on reasoning_content and leave content empty (finish_reason=length).
messagesarray of objectYesOpenAI chat messages: array of {role:'system'|'user'|'assistant', content:string}. Content parts and messages may include cache_control ({ type: "ephemeral", ttl: "5m" (default) or "1h" }). Tokens inside those blocks are quoted at cache_write (5m) or cache_write_1h (1h), never below the input rate.…
modelstringYesVenice text model id. Resolve live defaults via GET /api/v1/models/traits (illustrative: default / function_calling_default → zai-org-glm-5-2, default_reasoning → kimi-k3, most_intelligent → grok-4-7). List ids at GET /api/v1/models?type=text (e.g. zai-org-glm-5-2, kimi-k3, kimi-k3-1-pro, grok-4-7)…
reasoningobjectNoOptional object. reasoning.effort is an alias some clients send instead of top-level reasoning_effort. adaptive is valid on GLM-5.3 and DeepSeek V4.1 Flash.
reasoning_effortstringNoOptional effort: none | minimal | low | medium | high | xhigh | max | adaptive. GLM-5.3 (`z-ai-glm-5-3`, `z-ai-glm-5-3-flash`) and DeepSeek V4.1 Flash (`deepseek-v4-1-flash*`) accept adaptive. Forwarded as-is.
streambooleanNoIf true, stream tokens via SSE. Default false.
venice_parametersobjectNo
venice_parameters.disable_thinkingstringNoSet true to skip chain-of-thought on reasoning models (forces a normal content reply).
venice_parameters.strip_thinking_responsestringNoIf true, hide thinking from the client while still running it server-side.

Example response

The provider's example. We can't check it without paying.

Example response, 39 lines
{
  "choices": [
    {
      "finish_reason": "length",
      "index": 0,
      "message": {
        "content": "",
        "reasoning_content": "The user said \"hi\". A brief greeting — I should reply in kind.",
        "role": "assistant"
      }
    }
  ],
  "cost": {
    "diem": 0,
    "usd": 0
  },
  "created": 1791357300,
  "id": "chatcmpl-kimi-k3-reasoning-fixture",
  "model": "kimi-k3",
  "object": "chat.completion",
  "usage": {
    "completion_tokens": 32,
    "prompt_tokens": 16,
    "total_tokens": 48
  },
  "venice_parameters": {
    "disable_thinking": false,
    "enable_e2ee": true,
    "enable_web_citations": false,
    "enable_web_scraping": false,
    "enable_web_search": "off",
    "enable_x_search": false,
    "include_search_results_in_stream": false,
    "include_venice_system_prompt": true,
    "return_search_results_as_documents": false,
    "strip_thinking_response": false,
    "web_search_citations": []
  }
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://x402.aispace.bot/api/v1/chat/completions' \
  -H 'content-type: application/json' \
  --data-raw '{"messages":[{"content":"Say hello in one sentence.","role":"user"}],"model":"zai-org-glm-5-2"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://x402.aispace.bot/api/v1/chat/completions' \
  -H 'content-type: application/json' \
  --data-raw '{"messages":[{"content":"Say hello in one sentence.","role":"user"}],"model":"zai-org-glm-5-2"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.aispace.bot%2Fapi%2Fv1%2Fchat%2Fcompletions&method=POST
const res = await pay("https://x402.aispace.bot/api/v1/chat/completions", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "messages": [
      {
        "content": "Say hello in one sentence.",
        "role": "user"
      }
    ],
    "model": "zai-org-glm-5-2"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://x402.aispace.bot/api/v1/chat/completions",
        json={
            "messages": [
                {
                    "content": "Say hello in one sentence.",
                    "role": "user",
                },
            ],
            "model": "zai-org-glm-5-2",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402371 ms$0.01
12 h agoPassed402318 ms$0.01
22 h agoPassed402659 ms$0.01
33 h agoPassed402351 ms$0.01
46 h agoPassed402309 ms$0.01
Show 10 older checks
4 days agoTimed out---
5 days agoPassed4021.1 s$0.01
6 days agoPassed402363 ms$0.01
6 days agoPassed402359 ms$0.01
6 days agoPassed402279 ms$0.01
7 days agoPassed402277 ms$0.01
7 days agoPassed402361 ms$0.01
8 days agoPassed402247 ms$0.01
8 days agoPassed402344 ms$0.01
8 days agoPassed402301 ms$0.01