[ OpenAI ]

GPT-4o-mini (2024-07-18)

GPT-4o-mini (2024-07-18) from OpenAI: a text model for chat and completions, with a 128K-token context window and up to 16,384 output tokens. Routed to the cheapest provider. At or below list. Pay per token in USDF, with no subscription and no minimum. Streaming and the OpenAI-compatible request format are supported.

OpenAI logoOpenAIgpt-4o-mini-2024-07-18AvailabletextContext window: 128,000 tokens

Input

$0.15

per 1M tokens

Output

$0.60

per 1M tokens

Cached input

$0.075

per 1M tokens

Context window

128,000

tokens

Model ID
gpt-4o-mini-2024-07-18
Modality
text
Unit
USD per 1M tokens
Endpoints
/v1/chat/completions
Max output
16,384 tokens
Saving vs list
4.76%

Data policy

Retains dataNo training

Make your first request

Use any OpenAI-compatible SDK. Change the base URL, keep everything else. Responses include a receipt with the exact cost. No key yet? Create one.

No account: send the same request to /x402/v1/chat/completions without credentials and the gateway answers 402 with the quote. Pay per request.

curl https://api.usdf.fi/v1/chat/completions \
  -H "Authorization: Bearer $USDF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4o-mini-2024-07-18", "messages": [{"role": "user", "content": "Hello"}]}'