Free tool

OpenAI API cost calculator

Enter how your app uses the API. The calculator shows the cost on every current OpenAI model, per request, per day and per month. It also shows if the free DreamPrompting API can carry the same load.

Input / output price in USD per 1M tokens.

Per request. 1,000 tokens are about 750 English words. Count your tokens

The part of each prompt that repeats, for example a long system prompt. OpenAI bills it at a lower price.

On OpenAI · gpt-6.1-sol

$0.0070
per request
$7.00
per day
$210
per month (30 days)

1,900,000 tokens a day

On DreamPrompting

$0 with your own provider key

This load is more than the Pro limit. Add your own key from Groq, Google or another provider. Requests on your key have no quota here.

How your own key works

DreamPrompting does not serve GPT-6 or other closed OpenAI models. It serves open-weight models, for example gpt-oss-120b, which is OpenAI's own open-weight model. Test the quality on your task before you move.

The same load on every OpenAI model

Cheapest first. The table changes when you change the inputs.

Model Input Cached Output Per month
gpt-5-nanoCheapest OpenAI text model $0.05 $0.005 $0.4 $7.05
gpt-6-lunaGPT-6 small $0.1 $0.01 $0.5 $10.50
gpt-4o-mini $0.15 $0.075 $0.6 $13.95
gpt-5.6-luna $0.2 $0.02 $1.2 $23.40
gpt-5.4-nano $0.2 $0.02 $1.25 $24.00
gpt-5-mini $0.25 $0.025 $2.0 $35.25
gpt-4.1-mini $0.4 $0.1 $1.6 $37.20
gpt-5.4-mini $0.75 $0.075 $4.5 $87.75
o4-miniReasoning $1.1 $0.275 $4.4 $102
gpt-6.1-terraGPT-6.1 mid size $1.0 $0.05 $5.0 $105
o3Reasoning $2.0 $0.5 $8.0 $186
gpt-6.1-solGPT-6.1 flagship $2.0 $0.1 $10.0 $210
gpt-5.6-terra $2.0 $0.2 $12.0 $234
gpt-5.6-solPromotional price until at least 2026-11-21 $4.0 $0.4 $20.0 $420
gpt-5.5 $5.0 $0.5 $30.0 $585
gpt-6-astraLargest GPT-6 $10.0 $1.0 $50.0 $1,050

Standard prices in USD per 1M tokens, for prompts up to 272K tokens. Batch, flex and long-context prices are not included. Source: OpenAI pricing, checked 2026-11-02.

Move your code in one line

DreamPrompting uses the OpenAI API format. Keep the OpenAI SDK and change the base URL and the key.

from openai import OpenAI

client = OpenAI(
    base_url="https://dreamprompting.com/api/v1",
    api_key="YOUR_DREAMPROMPTING_KEY",
)
resp = client.chat.completions.create(
    model="groq/openai/gpt-oss-120b",
    messages=[{"role": "user", "content": "Hello"}],
)

Read: is there a free OpenAI API key?