/v1/chat/completions with your Claude model name, and PDFs and other files are supported by passing structured objects in the content array of each message.
Request
POSThttps://kiosapi.com/v1/chat/completions
Headers
Request Body
string
required
Claude model name (e.g.
claude-sonnet-4-6).array
required
Array of message objects forming the conversation.
number
Maximum number of tokens to generate in the response.
number
Sampling temperature between 0 and 2.
boolean
Set to
true to stream the response using server-sent events.object
Enable extended thinking. Available on
claude-3-7-sonnet only.Content Types for PDF and File Analysis
When passingcontent as an array, each element uses one of the following types:
Examples
- cURL (Chat)
- cURL (PDF)
- Python (PDF Analysis)
- Python (Extended Thinking)