# LLM API Chat Completions (agents.llmapi.ai)

> LLM API Chat Completions (agents.llmapi.ai) is a paid API for AI agents from agents.llmapi.ai, paid per call via MPP, price unknown, status unknown (last checked 2026-10-17).

Generates a chat completion response from a curated set of frontier LLMs (GPT, Claude, Gemini, DeepSeek, Grok, Kimi, GLM) via an OpenAI-compatible interface, billed per call.

## Facts

- Endpoint: POST https://agents.llmapi.ai/zc/v1/chat/completions?utm_source=zero.xyz
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Provider: agents.llmapi.ai
- Website: https://agents.llmapi.ai
- Canonical page: https://www.zero.xyz/c/agents-llmapi-ai-llm-api-chat-completions-agents-llmapi-ai-a12a148b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ubSbEbMEthhRETUIs-JYg

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 agents-llmapi-ai-llm-api-chat-completions-agents-llmapi-ai-a12a148b -d '<json body>'
```

Example prompt: Using deepseek-v4-flash, send this message and give me the response with a max of 200 tokens: 'Summarize the concept of entropy in two sentences.'

## When to prefer this

Choose this endpoint when you need pay-per-call access to a curated set of frontier models (GPT-5, Claude, Gemini, DeepSeek, Grok, Kimi, GLM) through a single OpenAI-compatible interface without managing per-provider subscriptions. It is especially useful for agents that need to dynamically select among multiple frontier models, want transparent per-call billing, or operate in environments where committing to a single provider subscription is impractical.

## Known failure modes

- Invalid or unsupported model ID returns a validation error
- Exceeding max_tokens limit for the chosen model causes a truncation or error
- stream:true is rejected — must be false or omitted
- Missing required fields (model or messages) returns a 400 bad request
- Payment/authentication failure returns a 401 or 402 error
- Model-specific context length exceeded returns an error
- Network timeout if the upstream LLM is slow to respond

## How this service works

Proxies chat completion requests to upstream providers.

## Output

Returns an OpenAI-style chat completion object containing the assistant's generated message, the model used, finish reason, and token usage counts (prompt tokens, completion tokens, total tokens). The response is synchronous (non-streaming).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "model": "deepseek-v4-flash",
  "stream": false,
  "messages": [
   {
    "role": "user",
    "content": "Say hello in five words."
   }
  ],
  "max_tokens": 32
 },
 "required": [
  "model",
  "messages"
 ],
 "properties": {
  "model": {
   "enum": [
    "claude-opus-5",
    "claude-sonnet-5",
    "gpt-5.2",
    "gpt-5.1",
    "gpt-5-mini",
    "gemini-3.1-pro-preview",
    "gemini-3.7-flash",
    "deepseek-v4-pro",
    "deepseek-v4-flash",
    "grok-4.6",
    "kimi-k2.6",
    "glm-5.3"
   ],
   "type": "string",
   "description": "One of the storefront model ids."
  },
  "stream": {
   "type": "boolean",
   "description": "Must be false or omitted on this storefront."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "role": {
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   },
   "description": "OpenAI style message list."
  },
  "max_tokens": {
   "type": "integer",
   "description": "Output token ceiling for this call."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-llmapi-ai-llm-api-chat-completions-agents-llmapi-ai-a12a148b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.llmapi.ai](https://www.zero.xyz/host/agents.llmapi.ai/llms.txt)
