cURL
OpenAI
completions
POST
cURL
The TTAPI proxy for the OpenAI Chat Completion API uses the TTAPI platform key in the request header, while all other request and response parameters remain consistent with the official API. For details,
refer to the OpenAI official documentation.
Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
application/json
Example:
[{ "role": "user", "content": "Hello!" }]Model to use, see Supported Models
Whether to use server-sent events for progressive response transmission
Last modified on June 12, 2026