Quickstart

Quickstart

From zero to your first real API call in a few minutes.

Sign in to start the quickstart.

Your trial credit

New accounts get bonus credit to spend on trial models. Recharge anytime to unlock paid models.

Bonus
—
Recharge / payment progress
Balance
—

1. Create an API key

…

Create your first key to authenticate requests.

2. Copy an example

Send your key in the Authorization header. Replace the placeholder — never paste a real key into shared files.

Base URL
https://api.mafdet.ai/v1
Model
gemini-3-flash-lite
curl https://api.mafdet.ai/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_MAFDET_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3-flash-lite",
    "messages": [{"role": "user", "content": "Hello from Mafdet AI"}]
  }'

3. Make your first call

…

The key stays in page memory and is sent to the Mafdet AI API gateway to authenticate this request. Reload or leave the page to clear it.

Response
Send the request to see the model response.

4. View your usage

Every call is metered. Check tokens, cost, and history.