Chat
Chat Completions
Create chat completions using OpenAI-compatible format
POST
Create conversational AI responses using our chat completions endpoint.
Create Chat Completion
POST /chat/completions
Generate responses for conversational AI applications.
Request Body
Model to use for completion (e.g., “gpt-4”, “gpt-3.5-turbo”, “claude-3-sonnet-20240229”)
Array of message objects forming the conversation
Maximum number of tokens to generate
Sampling temperature between 0 and 2
Enable streaming responses
Example
Streaming
Enable real-time responses with streaming:
Function Calling
Use function calling for tool integration:
Authorizations
Enter your API key (starts with 'ek-')
Body
application/json
Response
200 - application/json
Success
The response is of type object
.