Skip to main content
KiosAPI lets you call Claude models using the standard OpenAI request format — the same endpoint, headers, and SDK you already use for GPT models. You send requests to /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.
If you need prompt caching, use the Claude native format instead — the OpenAI-compatible format does not support PDF caching. See the Claude (Native) page for details.

Request

POST https://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 passing content as an array, each element uses one of the following types:
For PDF files, Claude recommends base64 encoding for faster results. Use the format data:application/pdf;base64,JVBERi0xLjQK....

Examples

Response