Skip to main content
POST
Use this endpoint when your application, SDK, or gateway expects the OpenAI Chat Completions request and response format. Send a standard Chat Completions payload with model and messages. Capriole AI resolves latest aliases to the selected provider model ID before upstream dispatch, forwards compatible fields such as messages, tools, tool_choice, response_format, and stream, and returns the upstream JSON or SSE stream unchanged, except for the GLM SSE correction and the heartbeat comments described below. For streaming requests, Capriole AI sets stream_options.include_usage=true before forwarding so usage can be recorded. For some SSE responses with model="zai/glm-5.3-flash", Capriole AI removes only the empty legacy function_call={"name":"","arguments":""} field from streamed deltas. Real or partial function calls, tool_calls, text, and usage remain intact. This exception does not change non-streaming responses or other models. POST /v1/chat/completions accepts openai-latest, claude-latest, google-latest, and public concrete model IDs returned by GET /v1/models. Use a latest alias to let Capriole AI choose our recommended flagship model for that provider. Latest aliases are input shortcuts. Usage is recorded against the resolved model, while the response body keeps the model naming behavior of the selected compatible endpoint.

Kimi K3.1 Pro

Kimi K3.1 Pro fixes temperature at 1 and top_p at 0.95. Omit temperature, top_p, n, presence_penalty, and frequency_penalty for this model, and send instructions with the system role rather than developer.

Gemini 4 Carbon

google-latest resolves to google/gemini-4-carbon. This endpoint forwards the rest of your request unchanged, so Gemini 4 Carbon thinks at Google’s default level, medium, which in our test used about 3 to 4 times the output tokens of Gemini 4 Argon for the same prompt. OpenAI’s reasoning_effort does not change Carbon’s thinking level. To set it, send Google’s field with low, medium, or high:
With the OpenAI Python SDK, pass extra_body={"extra_body": {"google": {"thinking_config": {"thinking_level": "low"}}}}. Google notes that hard prompts on Carbon can take several minutes, so stream them as described in Long tasks; for shorter waits, set thinking_level to low or call google/gemini-4-argon.

Gemini 4 Neon

Call google/gemini-4-neon to select Neon. Google documents a shared input and output window of 1,048,576 tokens, a default synchronous output limit of 65,536 tokens, and JSON Schema support. Its thinking levels are low, medium, high (default), and xhigh. Google’s model documentation. This endpoint does not provide web search. For Grok models, a request with a non-null web_search_options or search_parameters field fails with HTTP 400:
Function tools that your client defines, even one named web_search, are forwarded unchanged. To search the web with GPT or Grok, use POST /v1/responses with "tools": [{"type": "web_search"}].

Long tasks

For long tasks such as long reasoning, set "stream": true. Without streaming, the connection can time out after about 2 minutes. While a stream waits for the model, Capriole AI sends an SSE : heartbeat comment every 15 seconds, and streamed google/* requests can wait up to 20 minutes for the first token. If the model has not answered within 60 seconds, the 200 response has already started, so a later upstream error arrives as one final SSE event with an error object.

Authorizations

Authorization
string
header
required

Use an API key created in the Capriole AI page. Send it as Authorization: Bearer sk-....

Body

application/json
model
enum<string>
required

Public model identifier or latest alias returned by GET /v1/models

Available options:
openai-latest,
openai/gpt-6.2-astra,
openai/gpt-6.2-sol,
openai/gpt-6-astra,
openai/gpt-6.1-sol,
openai/gpt-6-sol,
openai/gpt-6-luna,
openai/gpt-5.6-terra,
openai/gpt-5.6-luna,
claude-latest,
anthropic/claude-fable-5-2,
anthropic/claude-fable-5-1,
anthropic/claude-opus-5-5,
anthropic/claude-fable-5,
anthropic/claude-opus-5,
anthropic/claude-opus-4-8,
anthropic/claude-opus-4-7,
anthropic/claude-opus-4-6,
anthropic/claude-sonnet-4-6,
google-latest,
google/gemini-4-carbon,
google/gemini-4-argon,
google/gemini-4-neon,
google/gemini-3.8-flash,
xai/grok-4.7,
xai/grok-4.6,
xai/grok-4.5,
zai/glm-5.3-flash,
zai/glm-5.2,
moonshot/kimi-k3.1-pro,
moonshot/kimi-k3
messages
object[]
required

OpenAI-compatible conversation messages.

tools
object[]

OpenAI-compatible tool definitions.

tool_choice

OpenAI-compatible tool choice.

response_format
object

OpenAI-compatible response format.

stream
boolean
default:false

Stream the response as OpenAI-compatible server-sent events.

stream_options
object

OpenAI-compatible stream options. For streaming requests, Capriole AI sets include_usage=true before upstream dispatch for usage accounting.

Response

OpenAI-compatible Chat Completions response or SSE stream. Response model fields follow the selected compatible endpoint and may differ from the input alias.

id
string
required
object
string
required
Example:

"chat.completion"

created
integer
required
model
string
required
choices
object[]
required
usage
object
Last modified on November 26, 2026