Getting started
Your first request
From a new workspace to a working response, without changing how you build.
Create your API key
#Create an account
Register with a username and password, or continue with GitHub or Discord. Password registration asks you to repeat the password and solve the verification image.
Add token credit
Open Overview and choose Top up tokens. Select an amount, optionally apply a promo code, and continue to the secure NOWPayments crypto checkout. Tokens are credited after the payment reaches its final successful status.
Create a key
Open Dashboard → API keys, choose a name and create the key. Copy it when shown; the full secret is displayed only once.
Check access
Your workspace shows whether API generation is enabled. An account awaiting activation receives
403for generation; a zero or negative token balance returns402. Check your token balance in Overview.
Set a key for this terminal
#$env:XEDOC_API_KEY = "sk-xedoc-YOUR_KEY"export XEDOC_API_KEY="sk-xedoc-YOUR_KEY"export XEDOC_API_KEY="sk-xedoc-YOUR_KEY"Keep the key on the server
Verify the connection
#Listing models checks authentication without generating content.
Invoke-RestMethod -Uri "https://api.xedoc.top/v1/models" -Headers @{ Authorization = "Bearer $env:XEDOC_API_KEY" }curl "https://api.xedoc.top/v1/models" \
-H "Authorization: Bearer $XEDOC_API_KEY"curl "https://api.xedoc.top/v1/models" \
-H "Authorization: Bearer $XEDOC_API_KEY"The response contains a data array with the available canonical model IDs. Use those IDs exactly as returned.
Send a request
#$body = @{
model = "gpt-5.6-terra"
input = "Reply with a short hello."
} | ConvertTo-Json
Invoke-RestMethod -Uri "https://api.xedoc.top/v1/responses" -Method Post -Headers @{ Authorization = "Bearer $env:XEDOC_API_KEY" } -ContentType "application/json" -Body $bodycurl "https://api.xedoc.top/v1/responses" \
-H "Authorization: Bearer $XEDOC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-terra","input":"Reply with a short hello."}'curl "https://api.xedoc.top/v1/responses" \
-H "Authorization: Bearer $XEDOC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-terra","input":"Reply with a short hello."}'Generation deducts model-weighted tokens from your balance. Open Requests to inspect raw token usage and the actual charge separately. If the model is unavailable, select another ID from your current model list.