Skip to main content
← All apps that work with AICredits
Agent frameworks & SDKsTypeScript, Next.js

Use Vercel AI SDK with AICredits

Stream model responses in a Next.js app with the OpenAI-compatible provider pointed at AICredits.

Settings to enter

Base URLhttps://api.aicredits.in/v1
API keyYour AICredits key (starts with sk-)
Model IDAny model from the model catalog, for example provider/model-name

Menu labels can differ between versions of Vercel AI SDK. The setup guide lists what to look for and how to confirm the connection works.

Why run Vercel AI SDK on AICredits

  • Pay with UPI, net banking or a card in ₹. No international card needed.
  • One key reaches every model in the catalog, so you can switch models without a new account.
  • Each request has its cost recorded in ₹, and a GST invoice is issued for every top-up.
  • Give Vercel AI SDK its own API key with a budget, so it cannot spend more than you set.

Frequently asked questions

How do I use Vercel AI SDK with AICredits?

Open Vercel AI SDK's provider settings, choose a custom or OpenAI-compatible provider, set the base URL to https://api.aicredits.in/v1 and paste your AICredits API key. The setup guide has the exact steps and a way to check it works.

Can I pay for Vercel AI SDK usage in rupees?

Yes. Model usage is billed to your AICredits wallet, which you top up with UPI, net banking or a card from ₹50. You do not need an international card, and a GST invoice is issued for every top-up.

Can I limit what Vercel AI SDK spends?

Create a dedicated API key for Vercel AI SDK and set a budget on it. When the key reaches its budget, its requests stop, and your other keys keep working.

Similar apps