{% extends "base.html" %} {% block title %}API Tokens - AISBF{% endblock %} {% block content %} {% if success %}
{{ success }}
{% endif %} {% if error %}
{{ error }}
{% endif %}

Your Tokens

Token created successfully

Copy this token now — it won't be shown again.

How to use your token

Show / Hide  

Add the token to every request in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Token scopes:

ScopeDescription
apiProxy API endpoints only (/api/u/…)
mcpMCP tool endpoints only (/mcp/u/…)
bothBoth API and MCP endpoints

Available endpoints:

MethodEndpointScopeDescription
GET /api/u/{{ session.username }}/models apiList your models
GET /api/u/{{ session.username }}/providers apiList your providers
GET /api/u/{{ session.username }}/rotations apiList your rotations
GET /api/u/{{ session.username }}/autoselects apiList your autoselects
POST/api/u/{{ session.username }}/chat/completionsapiChat using your configs
GET /mcp/u/{{ session.username }}/tools mcpList MCP tools
POST/mcp/u/{{ session.username }}/tools/call mcpCall MCP tools

Example curl commands:

# List your models curl -H "Authorization: Bearer YOUR_TOKEN" \ {{ request.base_url }}api/u/{{ session.username }}/models # Send a chat request curl -X POST \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"model":"user-rotation/myrotation","messages":[{"role":"user","content":"Hello"}]}' \ {{ request.base_url }}api/u/{{ session.username }}/chat/completions
{% endblock %}