CryptoTalks.ai is now Obscurify.ai. Sign in with your same username, password, and tokens.

How to use Obscurify with curl

First, create an account:

curl -k -X POST https://obscurify.ai/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://obscurify.ai/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://obscurify.ai/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",
...}}],...}