Skip to content

Changelog

Each entry identifies an API change or a documentation update. A documentation date is the date the guide was updated.

Method: POST /v1/chat/completions.

The streaming guide now covers reading delta.content, collecting usage and tool arguments, and handling errors and interrupted connections. It includes a Python parser.

Check your integration. The client collects event data until a blank line, checks error and finish_reason, and distinguishes a normal [DONE] marker from a dropped connection. A [DONE] marker alone does not confirm successful generation.

Methods: POST /v1/chat/completions and POST /v1/obfuscate.

The documentation now covers masking personal data in a model request and masking text in a separate request on two pages. Each page has its own request parameters and response examples.

Check your integration. Chat Completions takes obfuscate: true and obfuscate_patterns. The standalone method takes text and custom_patterns. In a model reply, GPTunneL restores the original values. The standalone method returns the masked text and a mapping between original values and placeholders.

Method: POST /api/v2/media/price.

The price quote reference explains where to put prompt, when the API reads input files, when it can estimate rather than measure, and how submitted parameters relate to the values used for the calculation. Python, cURL, and JavaScript send the same request for the selected duration.

Check your integration. For Kling, send a non-empty prompt at the top level, beside model. Use the same parameters you will pass when creating the task. Read your current quote in price and currency. The example amount is illustrative. A quote creates no task and incurs no charge.