Skip to main content
POST
Post completions v1
This endpoint has been deprecated. Use the Completions V2 API instead for better performance, auto-routing, and lower costs.

Authorizations

Authorization
string
header
default:<api-key>
required

Bearer authentication header of the form Bearer <api-key>, where <api-key> is your API key.

Body

application/json
messages
LlmMessage · object[]
required

Messages to send to the LLM

model
string
default:us.meta.llama3-3-70b-instruct-v1:0

Model to use for generating responses

max_tokens
integer
default:1024

Max tokens to use for generating responses

Required range: x >= 1024
stream
boolean
default:false

Stream response as soon as tokens are generated by the model.

temperature
number
default:0.7

Temperature to use for generating responses

Required range: 0 <= x <= 1
tools
Tool · object[]

List of tools you want the LLM to leverage.

tool_choice
default:none

Which tool your LLM should use among the list.

Available options:
none,
auto,
required

Response

Non-streaming successful response

The response is of type Response Post-Completions · object.