The NLAPI Docs
  • Agent_List
  • Authentication
  • Devii
  • Documentation
  • Guides
  • Portal
  • Pricing
  • Upcoming Roadmap
  • Schemas
  • NLAPI Training Data and Calls Documentation
Powered by GitBook
On this page
  • Setup Billing Information:
  • Setup Limits and Auto Billing

Pricing

PreviousPortalNextUpcoming Roadmap

Last updated 6 months ago

For a limited time, every new developer gets $25 when creating an account in the NLAPI portal. Billing is tied to a developer, and the same billing will be used across all the developer's applications.

Pricing is based on a per-token basis. Each NLAPI response has a "token_count": some_int, key for your understanding. In the near future, we will allow developers to see all their past calls. Tokens consumed are based on message history length, complexity of the query, data returned from your API endpoints, and the number of tokens in the response message.

Current Price: $2.5/million tokens

Average calls are 3-15k tokens. Cost Breakdown:

  • 3k tokens: 0.75 cents

  • 10k tokens: 2.5 cents

  • 15k tokens: 3.75 cents

Setup Billing Information:

Check out our .

After logging into the portal (see ), make a GET request to https://api.nlapi.io/portal/billing/portal_link. A portal URL will be returned that will take you to a Stripe Billing Details Page to fill out your information.

curl -X GET https://api.nlapi.io/portal/billing/portal_link \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \

Setup Limits and Auto Billing

By default, auto_refill is set to false. To automatically refill your credit balance, use the PATCH https://api.nlapi.io/portal/billing/details method. If you have your billing information set up, this will now auto-fill your account.

curl -X PATCH https://api.nlapi.io/portal/billing/details \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
  "refill_target": 50,
  "refill_threshold": 10,
  "auto_refill": true
}'
Swagger docs
Portal Documentation