API ManyNew models: Qwen 3.8 Max, Claude Haiku 5.5, Claude Opus 5.5, Claude Sonnet 5.5

OpenAI · Text & reasoning · Tool use

GPT 4.1 Mini API

Call GPT 4.1 Mini with the same key and request shape as every other model in the catalog.

Test it onlineIntegration docs$0.54 in · $2.16 out per 1M tokens
GPT 4.1 Mini example

WHY IT FITS

Inside the gateway

GPT 4.1 Mini is an OpenAI-compatible chat model with a 1.0M token context window, priced per million input and output tokens. Point any OpenAI SDK at this endpoint, send the model id with a messages array, and the response carries token usage you can reconcile against the published rate.

OpenAI-compatible

Call GPT 4.1 Mini with the standard chat completions request shape.

Per-token pricing

$0.5400 per million input tokens and $2.1600 per million output tokens.

Long context

1.0M tokens of context for large prompts and documents.

Tool use

Tool use is supported for GPT 4.1 Mini.

INTEGRATION

Wire it in four steps

  1. Create a key

    Open the dashboard, mint a server-side API key and top up a small balance.

  2. Discover

    Call GET /v1/models to confirm openai/gpt-4.1-mini, its live specification and the per-token rate.

  3. Send

    POST /v1/chat/completions with the model id and your messages, using any OpenAI-compatible client.

  4. Read

    The reply comes back in the same response (or as a stream), with token usage and the USD cost.

CALLING

Make your first call

# OpenAI-compatible chat completions
curl https://apimany.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4.1-mini","messages":[{"role":"user","content":"Hello!"}],"max_tokens":512}'

ONLINE TEST

Send a real message from this page

The request runs against this site's own /v1/chat/completions using your signed-in balance, or an API key if you are not signed in. A pasted key stays in this browser tab and is never stored; the result is charged at the quoted USD price.

Or sign in to chat with your account balance.

GOOD TO KNOW

Integration questions

Is GPT 4.1 Mini OpenAI-compatible?
Yes. Send model openai/gpt-4.1-mini to POST /v1/chat/completions with a messages array, exactly like the OpenAI SDK.
How is GPT 4.1 Mini billed?
Per token: $0.5400 per million input tokens and $2.1600 per million output tokens. Usage is returned on every response.
What context window does GPT 4.1 Mini have?
1.0M tokens of context, with the output limit published by GET /v1/models.
Which parameters does GPT 4.1 Mini support?
Tool use; recognised fields are validated before dispatch.
Can I use my existing API key?
Yes — the same account key works. Confirm the live id and rate with GET /v1/models before wiring it in.

KEEP EXPLORING

Nearby models