Live pricing
Check input, output, and capability pricing before larger usage.
For Vercel AI SDK applications, use the OpenAI-compatible provider package so your app can keep a familiar model interface while TackleKey handles model naming, project keys, request logs, and live pricing.
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { generateText } from "ai";
const tacklekey = createOpenAICompatible({
name: "tacklekey",
apiKey: process.env.TACKLEKEY_API_KEY,
baseURL: "https://api.tacklekey.com/v1",
});
const result = await generateText({
model: tacklekey("openai/gpt-4o-mini"),
prompt: "Return one health-check sentence.",
});
console.log(result.text);
| Item | How to verify |
|---|---|
| Provider package | Use @ai-sdk/openai-compatible for OpenAI-compatible providers. |
| Server environment | Store the project key in server-side environment variables. |
| Model function | Use a TackleKey model name that exists on the live pricing page. |
| Small first request | Validate one low-token prompt before streaming or batch usage. |
| Cost review | Check request logs and balance records after the first run. |
Check input, output, and capability pricing before larger usage.
Copy cURL, Node.js, Python, or client configuration examples.
Debug 401, 429, invalid model, base URL, and billing issues.
Create an account, generate a project API key, then replace your client base URL with the TackleKey endpoint. Keep keys server-side and verify live pricing before scaling traffic.