Create Chat Completion

Create a chat completion. Supports synchronous response (default), streaming SSE response (stream: true), function calling (tools array), and persistent conversations (conversation_id extension).

Model Field Formats

FormatExampleDescription
Bot ULID01KQ07QSSST2TSZV5WT2YQ6BPMTargets a specific bot with its system prompt, KB, and guardrails
Bot ULID + override01KQ07QSSST2TSZV5WT2YQ6BPM/claude-v4.6-sonnetBot config + specific underlying model
Raw modelclaude-v4.6-sonnetDirect Bedrock model, no bot context
OpenAI aliasgpt-4Maps to nearest Claude tier

Available Raw Models: claude-v4.6-sonnet, claude-v4.6-opus, claude-v4.5-haiku, claude-v3.7-sonnet, amazon-nova-pro, amazon-nova-lite, amazon-nova-micro, llama-4-maverick-17b-instruct, llama-4-scout-17b-instruct, deepseek-r1, qwen3-32b, openai-gpt-oss-20b, openai-gpt-oss-120b, mistral-large-2

OpenAI Aliases: gpt-4 / gpt-4o / gpt-4-turbo → claude-v4.6-sonnet, gpt-3.5-turbo → claude-v4.5-haiku

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Model identifier. Accepts: Bot ULID (01KQ07QSSST2TSZV5WT2YQ6BPM), Bot ULID + override (01KQ07.../claude-v4.6-sonnet), raw model literal (claude-v4.6-sonnet), or OpenAI alias (gpt-4).

messages
array of objects
required

Conversation history. Must contain at least one user message.

messages*
number
0 to 2

Sampling temperature (0.0-2.0). Normalized internally to Bedrock range 0.0-1.0 by dividing by 2.

integer
≥ 1

Maximum number of output tokens. Response truncated with finish_reason length if hit.

number
0 to 1

Nucleus sampling — considers only the top top_p probability mass.

integer
≥ 0

Top-K sampling — limits the model to K most probable next tokens.

boolean
Defaults to false

If true, returns Server-Sent Events (SSE) stream of incremental chunks ending with data: [DONE].

tools
array of objects

List of function definitions for client-side tool calling.

tools
enum

Controls tool selection. Values: auto (model decides), required (must call a tool), none (no tools), or object to force a specific function.

string
^[0-9A-HJKMNP-TV-Za-z]{26}$

Non-standard extension. A 26-character ULID to continue an existing conversation. Omit to start a new conversation. Returns 400 if malformed or if the conversation was started with a different bot.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json