POST /v1/chat/completions
Needs a key
Chat, the OpenAI way. Send the request body you would send to OpenAI; the reply comes back in the same shape.
model- A hosted id, such as
dulus-b-27b. An unknown id gets404. messages- OpenAI-style messages, from 1 to 512 per request.
tools, …- Extra fields like these are passed through to the model.
What every call goes through
-
Reserve
An upper bound of Fuel is held, atomically. Not enough Fuel? The call stops here with
402, before any model runs. -
Run
The model answers your request.
-
Settle
The charge is computed from input, output and reasoning tokens. Cached tokens are free.
-
Return
The unused hold goes straight back to your balance. A failed call is refunded in full.