Y
Hacker News
new
|
ask
|
show
|
jobs
by
strnisa
282 days ago
Definitely! The API lets you authorize the maximum your AI request might cost (+ margin), then capture the actual cost (+ margin). For some example code, see our Next.js Starter project:
https://github.com/smalltransfers/nextjs-starter