SDKs & libraries
Halfbill Developer Resources
Build AI applications on Halfbill with the AI SDK or any OpenAI- or Anthropic-compatible SDK
This section is for developers building applications on top of Halfbill — with the Vercel AI SDK via the provider package @llmgateway/ai-sdk-provider, or with any OpenAI- or Anthropic-compatible SDK.
API entry points
- OpenAPI specification — typed request, response, and error schemas
- Authentication — API keys and access control
- Developer dashboard — projects, keys, usage, and budgets
- API versioning and deprecation policy — compatibility and retirement notices
Guides
- Halfbill Code Usage API — Show monthly and weekly Halfbill Code allowance meters in your application
- Using the AI SDK — Install the provider, generate and stream text, call tools, and wire up Next.js routes
Why the AI SDK
The AI SDK gives you one TypeScript interface for text generation, streaming, and tool calling. Combined with Halfbill, a single provider instance and one API key reach every Claude and GPT model in the catalog — see the models page for what's available.
Other ways to integrate
If you're not using the AI SDK:
- Use any OpenAI-compatible SDK against
https://api.halfbill.uk/v1— see the Quickstart - Use the Anthropic SDK against the Anthropic-compatible endpoint
- Call the REST API directly — see the API reference in the sidebar
How is this guide?