Skip to main content

Text model

GPT-4.1 Mini

openai/gpt-4.1-mini

openai/gpt-4.1-mini is a language model from OpenAI you can call on the OceanToken API at $0.40 per 1M input tokens and $1.60 per 1M output tokens, with a 1.05M-token context window and up to 33K output tokens; it supports tool calling, image input, web search.

At a glance

Model IDopenai/gpt-4.1-mini
TypeText
PublisherOpenAI
Context window1,047,576 tokens
Max output32,768 tokens
Input price$0.40 per 1M tokens
Output price$1.60 per 1M tokens
Cached input price$0.10 per 1M tokens
Capabilitiestool calling, image input, web search
Endpoint/v1/chat/completions, /v1/responses
API shapeOpenAI-compatible
In the catalog since2025-04-14

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/chat/completions \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "openai/gpt-4.1-mini", "messages": [{"role": "user", "content": "Hello"}]}'

Compared with similar models

Text models on OceanToken closest to openai/gpt-4.1-mini in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per 1M tokens)
GPT-4.1 MiniOpenAI1,047,576$0.40 / $1.60
Aion 2.0
aion-labs/aion-2.0
Aion Labs131K$0.80 / $1.60
Aion RP Llama 3.1 8B
aion-labs/aion-rp-llama-3.1-8b
Aion Labs33K$0.80 / $1.60
Qwen3.5 27B
qwen/qwen3.5-27b
Qwen258K$0.195 / $1.56

More from OpenAI

All OpenAI models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.