---
title: "Create completion (Anthropic legacy format)"
method: POST
path: "/anthropic/v1/complete"
tags: ["Anthropic Integration"]
---

# Create completion (Anthropic legacy format)

`POST /anthropic/v1/complete`

Creates a text completion using Anthropic's legacy Complete API.
Supports streaming via SSE.

## Request body

- AnthropicTextRequest
  - `model` string, required — Model identifier
  - `prompt` string, required — The prompt to complete
  - `max_tokens_to_sample` integer, required — Maximum tokens to generate
  - `stream` boolean
  - `temperature` number
  - `top_p` number
  - `top_k` integer
  - `stop_sequences` string[]
  - `fallbacks` string[]

## Response `200`

Successful response

- object
  - `type` string
  - `id` string
  - `completion` string
  - `stop_reason` string
  - `model` string
  - `usage` object
    - `input_tokens` integer — Number of input tokens used
    - `output_tokens` integer — Number of output tokens generated

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
