How to use CryptoTalks with curl

First, create an account:

curl -k -X POST https://cryptotalks.ai/v1/create_user/ \
-H 'Content-Type: application/json' \
-d '{"username":"testuser3@example.com","password":"testpassword","confirm_password":"testpassword"}'

Response:

{"message": "User created successfully! Save this token, do not share it.", 
"token": "5d68e5723b5613cbf243a15569a0d3de282f2dea"}

Then, generate a BTC deposit address:

curl -k -X POST https://cryptotalks.ai/v1/generate_deposit_address/ \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer 5d68e5723b5613cbf243a15569a0d3de282f2dea'

Response:

{"addresses": {"BTC": "1BitcoinEaterAddressDontSendf59kuE", ...}}

After deposit, use curl to interact with the API:

curl -k -X POST https://cryptotalks.ai/v1/chat/completions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer 5d68e5723b5613cbf243a15569a0d3de282f2dea'
-d '{"messages": [{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, AI!"}],
"model": "gpt-3.5-turbo"
}'

Response:

{... "choices": [{..., "message": 
{"content": "Hello! How can I assist you today?", "role": "assistant", 
...}}],...}