> ## Documentation Index
> Fetch the complete documentation index at: https://incredible-42686482-cursor-create-detailed-ai-agent-cookboo.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Conversation (Multi‑turn)

> Build a short back‑and‑forth with remembered context

Send the whole conversation each turn so the model keeps context.

```bash
# 1) Ask the first question
curl -X POST "https://api.incredible.one/v1/chat-completion" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $INCREDIBLE_API_KEY" \
  -d '{
    "model": "small-1",
    "stream": false,
    "messages": [
      { "role": "user", "content": "What\'s the capital of France?" }
    ]
  }'

# 2) Add the assistant reply to your local history, then ask a follow‑up
# Replace ASSISTANT_REPLY with the text from result.response[0].content
curl -X POST "https://api.incredible.one/v1/chat-completion" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $INCREDIBLE_API_KEY" \
  -d '{
    "model": "small-1",
    "stream": false,
    "messages": [
      { "role": "user", "content": "What\'s the capital of France?" },
      { "role": "assistant", "content": "ASSISTANT_REPLY" },
      { "role": "user", "content": "What\'s the population of that city?" }
    ]
  }'
```

<Note>
  View source on GitHub → [3\_conversation.py](https://github.com/Norditech-AB/Incredible-API-Cookbook/blob/main/01-getting-started/3_conversation.py)
</Note>
