Chat Completions
by AiSpace Venice in AI models & inference
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.
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
Reliability
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
| Parameter | Type | Required | Description |
|---|---|---|---|
choices[].message.extra_content | string | No | Provider-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_content | string | No | On 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_details | string | No | Structured thought signatures (Claude Opus / GPT-5.4 Pro etc). Pass back unchanged on the next turn. |
choices[].message.thought_signature | string | No | Gemini 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_tokens | integer | No | Optional. 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). |
messages | array of object | Yes | OpenAI 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.… |
model | string | Yes | Venice 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)… |
reasoning | object | No | Optional 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_effort | string | No | Optional 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. |
stream | boolean | No | If true, stream tokens via SSE. Default false. |
venice_parameters | object | No | |
venice_parameters.disable_thinking | string | No | Set true to skip chain-of-thought on reasoning models (forces a normal content reply). |
venice_parameters.strip_thinking_response | string | No | If 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 --decodeJavaScript: 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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 371 ms | $0.01 |
| 12 h ago | Passed | 402 | 318 ms | $0.01 |
| 22 h ago | Passed | 402 | 659 ms | $0.01 |
| 33 h ago | Passed | 402 | 351 ms | $0.01 |
| 46 h ago | Passed | 402 | 309 ms | $0.01 |
Show 10 older checks
| 4 days ago | Timed out | - | - | - |
| 5 days ago | Passed | 402 | 1.1 s | $0.01 |
| 6 days ago | Passed | 402 | 363 ms | $0.01 |
| 6 days ago | Passed | 402 | 359 ms | $0.01 |
| 6 days ago | Passed | 402 | 279 ms | $0.01 |
| 7 days ago | Passed | 402 | 277 ms | $0.01 |
| 7 days ago | Passed | 402 | 361 ms | $0.01 |
| 8 days ago | Passed | 402 | 247 ms | $0.01 |
| 8 days ago | Passed | 402 | 344 ms | $0.01 |
| 8 days ago | Passed | 402 | 301 ms | $0.01 |