Skip to main content
Use this to send a simple message and get a complete response.
curl -X POST "https://api.incredible.one/v1/chat-completion" \
-H "Content-Type: application/json" \
-d '{
  "model": "small-1",
  "stream": false,
  "messages": [
    { "role": "user", "content": "Hello! Can you say hi back to me?" }
  ]
}'
View source on GitHub → 0_hello_world.py

Add a system instruction

Guide the assistant with a system message and adjust generation controls:
{
  "model": "small-1",
  "stream": false,
  "messages": [
    { "role": "system", "content": "You are a concise assistant." },
    { "role": "user", "content": "Summarize the Incredible API in one sentence." }
  ],
  "temperature": 0.4,
  "top_p": 0.9,
  "max_output_tokens": 120
}
Need tokens as they generate? Try → Streaming Chat