How to use Obscurify with curl

First, create an account:

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

Note: accept_tos only needs to be included once when creating your account.

Response:

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

Then, generate a BTC deposit address:

curl -X POST https://obscurify.ai/generate_deposit_address \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer 5d68e5723b5613cbf243a15569a0d3de282f2dea' \
-d '{"currency": "BTC"}'

Response:

{"invoice_id": "...", "addresses": {"BTC": "bc1q..."}}

After deposit, use curl to interact with the API:

curl -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": "openai/gpt-3.5-turbo"
}'

Response:

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