Skip to main content

Endpoint

This endpoint is fully compatible with OpenAI’s chat completions API. Drop in the official openai SDK by changing baseURL.

Request body

Streaming

Set stream: true to get token-by-token SSE chunks (OpenAI format with data: {…}\n\n events ending in data: [DONE]).

Billing

1 credit per 10,000 tokens (input + output, minimum 1 per call). For streamed responses, the final chunk includes the usage block we use to compute the bill.

Errors