Agentic Usage
Agent Frameworks
Use BazaarLink with popular agent frameworks. Since BazaarLink is OpenAI-compatible, most frameworks work out of the box — just set the base URL and API key.
Vercel AI SDK
CrewAI
AutoGen
Environment Variables
Most agent frameworks support configuration via environment variables:
# .env
OPENAI_API_KEY=sk-bl-YOUR_API_KEY
OPENAI_BASE_URL=https://bazaarlink.ai/api/v1Environment Variables
Any framework that supports the OpenAI API or custom base URLs can work with BazaarLink. Just set the base URL and use a BazaarLink API key.
AI Agent Auto-Registration
BazaarLink's auto-registration endpoint lets AI agents self-register and obtain an API key in a single API call. The agent also generates a "claim link" for its human owner — the owner logs in, claims the key, and it transfers to their account.
Flow
STEP 1
Bot Self-Registration
Call POST /api/v1/agents/register to receive api_key and upgrade_url
STEP 2
Bot Shares Link
Pass upgrade_url to the human owner (via chat message or notification)
STEP 3
Owner Claims
Log in, go to /keys, paste the link or token, and click "Claim"
STEP 4
Key Transfer
API key is bound to the owner's account; usable after topping up credits
Bot Self-Registration API
POST
/api/v1/agents/registercurl -X POST https://bazaarlink.ai/api/v1/agents/register \
-H "Content-Type: application/json" \
-d '{"name": "MyBot"}'Request Parameters
Usage Notes
- The API key has no trial credits after registration; the owner must claim it and top up manually
- claim_token is valid for 7 days; the link expires after that
- Each IP is limited to 1 registration per 24 hours
- After the owner claims, the key is automatically renamed to "BotName (claimed)"
- Referral codes allow both parties to earn bonus credits during future promotional periods
Native LLM Support
BazaarLink provides documentation in llms.txt format so AI agents can read the API reference directly. Visit https://bazaarlink.ai/llms.txt for the full machine-readable API documentation.