Skip to main content
POST
Create a text completion (legacy)

Authorizations

Authorization
string
header
required

Your PrimaLabs API key, sent as Authorization: Bearer <key>.

Body

application/json
model
string
required
Example:

"primalabs-ai/DeepSeek-V4.1-Flash-1017"

prompt
required
max_tokens
integer
stream
boolean
default:false

Response

A text completion.

id
string
object
string
Example:

"text_completion"

created
integer
model
string
choices
object[]
usage
object