Skip to main content

Endpoints

AtlasFlux provides two main API endpoints:

Request body

Both endpoints accept similar parameters:

Response structure

Responses endpoint

Chat Completions endpoint

Cost display

All costs are returned as strings in MYR (Malaysian Ringgit). The cost_myr field shows the settled request cost with six decimal places. For example, "0.000431" means RM0.000431, not RM0.00. cached_tokens is a provider-reported subset of input usage. It is shown separately for observability and is billed at the standard input-token rate. Failed requests return an error instead of a completion response and are recorded with zero cost. output_tokens (or Chat Completions completion_tokens) counts visible generated tokens and excludes reasoning_tokens; total_tokens adds input, visible output, and reasoning exactly once. A finish_reason of length means the generated-token limit was reached and the response may be incomplete.