Chat Completions
Endpoint
POST https://api.dos.ai/v1/chat/completionsAuthentication
Authorization: Bearer dos_sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRequest Headers
Header
Required
Description
Request Body
Parameter
Type
Required
Default
Description
Message Format
Field
Type
Required
Description
Response Body
Response Fields
Field
Type
Description
Streaming
Tool Calling
Defining Tools
Tool Call Response
Error Responses
Status Code
Error
Description
Examples
Basic Chat Completion (cURL)
Streaming (cURL)
Using the OpenAI Python SDK
Using the OpenAI Node.js SDK
JSON Mode
Tool Calling Example
Last updated