---
title: "Text Completions (legacy)"
method: POST
path: "/v1/completions"
---

# Text Completions (legacy)

`POST /v1/completions`

## Request

- Base URL: `https://api.jarvisclaw.ai`
- URL: `https://api.jarvisclaw.ai/v1/completions`
- Auth: HTTP x402

Legacy OpenAI text completions endpoint. For older clients that use prompt-based completion instead of chat messages.

## Request body

- object
  - `max_tokens` integer: Maximum tokens to generate
  - `model` string, required: Model ID
  - `prompt` string, required: Text prompt to complete
  - `stream` boolean: Enable streaming responses
  - `temperature` number: Sampling temperature (0-2)

## Response `200`

Successful response

- object
  - `data` object

## Other responses

- `402`: Payment Required

---

[API](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api.md) · [All operations](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api/revisions/2011c77f4e4f?raw)
