Skip to main content
POST
Create a chat completion

Authorizations

Authorization
string
header
required

AtlasFlux API key. Get yours from the Developer Dashboard.

Body

application/json
messages
object[]
required
Minimum array length: 1
model
enum<string>
default:atlasflux/nenas-flash
Available options:
atlasflux/nenas-flash
temperature
number
default:1
Required range: 0 <= x <= 2
max_tokens
integer
Required range: 1 <= x <= 32000
stream
boolean
default:false
reasoning
object
max_total_cost_myr
number

Hard per-request cost cap in MYR. Requests whose estimated maximum exceeds this value are rejected before execution.

Required range: x > 0

Response

Chat completion created successfully.

id
string
object
string
Example:

"chat.completion"

created
integer
model
string
choices
object[]
usage
object
cost_myr
string

Settled request cost in MYR with six decimal places.

Pattern: ^[0-9]+\.[0-9]{6}$
Example:

"0.000431"