Skip to main content
POST
OpenAI-compatible chat completion (Sunflower)

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Request body for POST /tasks/chat/completions (OpenAI format).

messages
ChatMessage · object[]
required

Conversation messages

Minimum array length: 1
model
string
default:Sunbird/Sunflower-14B

Model to use. Supported: Sunbird/Sunflower-14B

temperature
number
default:0.3

Sampling temperature

Required range: 0 <= x <= 2
max_tokens
integer | null

Maximum tokens to generate

Required range: x >= 1
top_p
number | null

Nucleus sampling probability

Required range: 0 < x <= 1
stop

Stop sequence(s)

stream
boolean
default:false

Stream the response as Server-Sent Events

Response

Successful Response

Non-streaming response body, OpenAI chat.completion object.

id
string
required
created
integer
required
model
string
required
choices
ChatCompletionChoice · object[]
required
object
string
default:chat.completion
Allowed value: "chat.completion"
usage
ChatCompletionUsage · object

Token usage statistics, OpenAI field names.