Skip to main content
KiosAPI supports Claude’s native /v1/messages endpoint format — use it directly with the Anthropic SDK to get full access to prompt caching and extended thinking. Prompt caching lets you mark large, repeated blocks of context (such as lengthy PDFs or system prompts) so they are cached server-side and reused across requests, significantly reducing both latency and cost.
The native format only lists commonly used parameters. For the complete parameter reference, see the Claude official documentation.

Supported Models

Claude native format supports models with the cld- or claude- prefix. It also supports kimi-k2-0711-preview, qwen3-coder-plus, and glm-4.5+.

Request

POST https://kiosapi.com/v1/messages

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.
number
Nucleus sampling. Use as an alternative to temperature.
integer
Only sample from the top K options for each subsequent token.
boolean
Set to true to stream the response using server-sent events.
object
Function calling tools available to the model.
object
Extended thinking configuration. Available on claude-3-7-sonnet only.

Content Types for PDF and Image Analysis

When passing content as an array, each element uses one of the following structures:

Cache Control

To cache a file or block of content across multiple requests, add a cache_control field to the content object. This is especially useful for large PDFs or system prompts you send repeatedly:

Examples

Response

Response Fields

string
Unique message identifier.
string
Always "message".
string
Always "assistant".
array
Array of content blocks in the response.
string
The model that generated the response.
string
Reason the model stopped generating. One of end_turn, max_tokens, or tool_use.
object
Token usage for the request.