# OpenAI-Compatible API for Products, Agents, and Automation

[HTML canonical](https://bettertoken.ai/en/openai-api/)

BetterToken OpenAI-compatible API

Up to 32% below official prices

Connect applications and automation workflows through the BetterToken OpenAI-compatible API. Create your own key, test a real call, and monitor usage and cost in Workspace.

Your own BetterToken API key Pay-as-you-go model calls Usage records in Workspace

[Create a BetterToken key](https://bettertoken.ai/workspace) [Open API Reference](https://docs.bettertoken.ai/api-reference/chat-completions)

[GPT-6.2 Astra API →](https://bettertoken.ai/en/gpt-6-2-astra-api/) [GPT-6.2 Sol API →](https://bettertoken.ai/en/gpt-6-2-sol-api/)

BetterToken is a separate model API service. It does not provide an official OpenAI account or official OpenAI API key.

What you receive

## Your own BetterToken key and balance

Access, payments, and usage records belong to your BetterToken account. They are separate from an official OpenAI account and billing.

### BetterToken key

Create and replace the API key in your Workspace. It authenticates with BetterToken infrastructure and is not an official OpenAI API key.

### Usage records

Workspace shows the model, time, status, input, output, and cached tokens, the related charge, and your current balance.

### Separate API service

BetterToken provides model API access. It does not sell an OpenAI account, ChatGPT subscription, or shared account.

Compatibility

## Check the required resource in the current API Reference

The current public API Reference documents OpenAI-compatible Chat Completions. BetterToken does not promise support for every OpenAI API, SDK, or feature.

### POST /v1/chat/completions

The documented resource for compatible chat requests. Use the current API Reference for the full URL, authentication, parameters, and response schema.

[API Reference](https://docs.bettertoken.ai/api-reference/chat-completions)

### Applications and scripts

Connect clients that accept a custom API key and OpenAI-compatible Base URL and use the documented call type.

### n8n and Dify

Follow the verified OpenAI-compatible provider instructions. A node or plugin’s capabilities still depend on the third-party tool.

First request

## Three steps from registration to usage review

Use the landing page to choose the service, then use current Docs and pricing for connection fields, models, and key groups.

### Create an account and key

Open Workspace, register your own BetterToken account, and create an API key. Do not publish it or send it to support.

### Open the current documentation

Check the documented resource, Base URL, authentication, and request parameters. Select the current model and key group from the catalog. — [OpenAI-compatible vs Anthropic-compatible API](https://bettertoken.ai/en/blog/openai-compatible-vs-anthropic-compatible-api/)

[API Reference](https://docs.bettertoken.ai/api-reference/chat-completions)

### Send a short request

Confirm that the application received a response. Then open Workspace and review the model, status, tokens, and charge.

Balance and billing

## Fund your BetterToken balance and pay for actual usage

You pay for model calls through the BetterToken API. This is not an official OpenAI API key or OpenAI Platform balance.

- Pay-as-you-go billing. Available payment methods and terms are shown in Workspace. Review the current limits, exchange rate, fees, and crediting time before payment.
- User-funded BetterToken balance does not reset automatically each month. Test, bonus, and promotional credit may have separate rules.
- Cost depends on the model and actual usage. Check current models, pricing, availability, and key groups on the pricing page.

[Open Workspace](https://bettertoken.ai/workspace) [View current pricing](https://bettertoken.ai/en/pricing/)

Balance and usage your BetterToken account

Visible in Workspace Balance and call history Payment terms in Workspace

After a request Model and tokens Related record Charge and balance

BetterToken balance is not OpenAI Platform balance and does not pay for ChatGPT Plus.

Keep the services separate

## BetterToken API, OpenAI Platform, and ChatGPT are different services

Your BetterToken key, balance, and calls stay inside BetterToken. They do not become an official OpenAI account, key, or subscription.

| Service | Where access is created | What you pay for |
| --- | --- | --- |
| BetterToken OpenAI-compatible API | BetterToken account and Workspace | Model calls through BetterToken balance |
| OpenAI Platform | Official OpenAI account | Official OpenAI API billing |
| ChatGPT Plus | ChatGPT / OpenAI account | ChatGPT subscription features and limits |

BetterToken does not sell official OpenAI API keys, top up OpenAI Platform, or sell shared ChatGPT accounts. Use the separate Codex API page for the official Codex CLI.

[Codex API](https://bettertoken.ai/en/codex-api/)

FAQ

## Frequently asked questions about the BetterToken API

### Is this an official OpenAI API key?

No. You create a BetterToken API key for BetterToken infrastructure. It is not an official OpenAI API key.

### Do I receive an account, subscription, or API access?

You receive API access through your own BetterToken account and key. BetterToken does not sell an OpenAI account, ChatGPT subscription, or shared account.

### How does pay-as-you-go billing work?

Your BetterToken balance is charged for actual model calls according to the selected model rules. Payment methods and terms are shown in Workspace.

### Which API resource is currently documented?

The current public API Reference documents POST /v1/chat/completions. Check the current Docs before integration because BetterToken does not promise every OpenAI API, SDK, or feature. — [What should I do after a 429, 500/503, timeout, or dropped connection?](https://bettertoken.ai/en/blog/api-429-too-many-requests-safe-retry/)

### Where can I see token usage and cost?

Workspace shows the model, request time and status, input, output, and cached tokens, the related charge, and your current balance.

### Does paid balance reset each month?

User-funded paid balance does not automatically reset each month. Test, bonus, and promotional credit may have separate validity periods and rules.

### Does BetterToken replicate every OpenAI API?

No. BetterToken provides an OpenAI-compatible API for resources documented in the current API Reference. Compatibility must be checked for the required client, resource, and model.

### Can I use this API with n8n, Dify, or agents?

Use the verified n8n and Dify instructions when the tool supports a custom OpenAI-compatible provider and documented call type. Check the current Docs for each integration.

Start with a short request

## Create a BetterToken key and test the OpenAI-compatible API

Open Workspace, create your own key, and connect by following the current documentation. After the first request, review tokens and the charge before adding more balance.

[Create a BetterToken key](https://bettertoken.ai/workspace) [Open API Reference](https://docs.bettertoken.ai/api-reference/chat-completions) [View current pricing](https://bettertoken.ai/en/pricing/)
