# x402.orth.sh Baseten Chat Completions

> x402.orth.sh Baseten Chat Completions is a paid API for AI agents from x402.orth.sh, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Send a conversation to a large language model and receive a text completion, with support for streaming, tool calling, structured outputs, and reasoning depth control.

## Facts

- Endpoint: POST https://x402.orth.sh/baseten/v1/chat/completions?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-orth-sh-baseten-chat-completions-9edfd466
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GvyUyAlxub8iVOfdG4bU4

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 x402-orth-sh-baseten-chat-completions-9edfd466 -d '<json body>'
```

Example prompt: Using the DeepSeek-V3-0324 model, send this conversation to the chat completions endpoint and get a response: system says 'You are a helpful assistant', user asks 'Explain the concept of entropy in thermodynamics in three paragraphs' — stream the reply back as tokens arrive.

## When to prefer this

Choose this endpoint when you need access to models not available on OpenAI directly (DeepSeek, GLM, Kimi families) via a drop-in OpenAI-compatible interface, or when you want pay-per-call micropayment billing via the x402 protocol rather than a subscription. Especially useful when you need long-context reasoning models (up to 262k tokens) or controllable reasoning depth, and want to avoid vendor lock-in.

## Known failure modes

- Unsupported model slug returns an error or empty response
- Exceeding the model's context window (e.g. 128k or 262k tokens) causes truncation or rejection
- Tool definition schema errors cause tool_calls to fail or be ignored
- Payment failure or x402 protocol error blocks the request before inference
- Rate limiting or quota exhaustion returns a 429 or equivalent error
- Structured output (response_format) incompatible with chosen model returns unformatted text

## How this service works

Send a conversation to a model and get a completion back. Works exactly like the OpenAI chat completions endpoint. Pass messages and a model slug, get a response with the assistant's reply. Supports streaming for real-time token delivery, tool calling for function execution, structured outputs via response_format, and controllable reasoning depth on supported models. | ERROR: Unable to calculate price.

## Output

Returns an OpenAI-compatible chat completion object containing one or more choices, each with a message (role: assistant, content: string), optional tool_calls for function invocations, finish_reason, and usage statistics (prompt tokens, completion tokens, total tokens). When streaming is enabled, returns server-sent events with delta chunks.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "number",
   "description": "Number of completions to generate. Currently only supports 1."
  },
  "bad": {
   "type": "string",
   "description": "Words or phrases the model should avoid generating. Passed as a string."
  },
  "echo": {
   "type": "boolean",
   "description": "If true, prepends the last input message to the generated output."
  },
  "seed": {
   "type": "number",
   "description": "Integer for deterministic sampling. Same seed with same parameters should return the same result. Not guaranteed across model versions."
  },
  "stop": {
   "type": "string",
   "description": "Up to 4 sequences where the model will stop generating. Can be a string or array of strings."
  },
  "user": {
   "type": "string",
   "description": "A unique string identifying the end user. Useful for abuse monitoring and rate limiting."
  },
  "min_p": {
   "type": "number",
   "description": "Minimum probability threshold. Tokens below this probability relative to the most likely token are filtered out."
  },
  "model": {
   "type": "string",
   "description": "Model slug to run inference against. Available models: deepseek-ai/DeepSeek-V3-0324 (164k context, reasoning), deepseek-ai/DeepSeek-V3.1 (164k context, reasoning), zai-org/GLM-4.6 (200k context, reasoning), zai-org/GLM-4.7 (200k context, reasoning), moonshotai/Kimi-K2-Instruct-0905 (128k context), moonshotai/Kimi-K2-Thinking (262k context, always-on reasoning), moonshotai/Kimi-K2.5 (262k context), openai/gpt-oss-120b (128k context). Reasoning models support the reasoning_effort parameter for controlling thinking depth."
  },
  "tools": {
   "type": "array",
   "description": "Array of tool/function definitions the model can call. Each tool has {\"type\": \"function\", \"function\": {\"name\": \"...\", \"description\": \"...\", \"parameters\": {...}}}. The model may respond with tool_calls instead of content."
  },
  "top_k": {
   "type": "number",
   "description": "Top-K sampling. Only the K most likely next tokens are considered. Lower values make output more focused."
  },
  "top_p": {
   "type": "number",
   "description": "Nucleus sampling threshold between 0 and 1. Only tokens within this cumulative probability mass are considered. 0.1 means only the top 10%. Use as an alternative to temperature."
  },
  "stream": {
   "type": "boolean",
   "description": "If true, returns server-sent events (SSE) with partial message deltas as tokens are generat
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-orth-sh-baseten-chat-completions-9edfd466/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.orth.sh](https://www.zero.xyz/host/x402.orth.sh/llms.txt)
