83trust / 100
Chat Completions
by AiSpace Venice in AI models & inference
x402 APIPassing, checked 3 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
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 222 ms typical, 222 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.aispace.bot/api/v1/chat/completions" \
-H "content-type: application/json" \
-d '{"messages":[{"content":"Say hello in one sentence.","role":"user"}],"model":"zai-org-glm-5-2"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.aispace.bot%2Fapi%2Fv1%2Fchat%2Fcompletions
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(await res.json());Example input
{
"messages": [
{
"content": "Say hello in one sentence.",
"role": "user"
}
],
"model": "zai-org-glm-5-2"
}Example output
{
"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": []
}
}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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 222 ms | $0.01 |