openai

GPT-4 Turbo

text inputimage inputtext outputlanguageGateway catalog

Use an endpoint supported by this model.

Get a key for this setup →
const response = await fetch('https://api.minirouter.sh/v1/chat/completions', {  method: 'POST',  headers: {    Authorization: `Bearer ${process.env.MINIROUTER_KEY}`,    'Content-Type': 'application/json',  },  body: JSON.stringify({    model: 'openai/gpt-4-turbo',    messages: [{ role: 'user', content: 'Why is the sky blue?' }],    max_tokens: 1024,  }),}) const data = await response.json()console.log(data.choices[0].message.content)
Read docs →
Input / 1M
$10.5
Output / 1M
$31.5
Context
128K
Max output
4K
Overview

Overview

gpt-4-turbo from OpenAI has broad general knowledge and domain expertise allowing it to follow complex instructions in natural language and solve difficult problems accurately. It has a knowledge cutoff of April 2023 and a 128,000 token context window.
Model type
language
Context window
128,000
Maximum output
4,096
Input / 1M tokens
$10.5
Output / 1M tokens
$31.5
Released
2024-04-09

Prices include the MiniRouter fee. Compatibility snapshot: 2026-08-06. Input: text, image. Output: text.

Endpoints

Endpoints

Platform-funded routing only. Caller BYOK credentials and OIDC-based upstream authentication are intentionally excluded; authenticate with a MiniRouter bearer key.
Paths
/v1/chat/completions/v1/messages/v1/responses
Structured output

Not enforced; a requested format is dropped and the answer is plain text. How it works

Captured parameters: max_tokens, temperature, stop, tools, tool_choice.

API

API

Switch between Chat Completions, Messages and client configurations in the setup panel. Every snippet keeps the model ID unchanged.
Base URLhttps://api.minirouter.sh/v1
Model IDopenai/gpt-4-turbo
Providers

Providers

MiniRouter selects from the configured routes below. Priority is the catalog order, not a latency or availability score.
ProviderPriorityInput / 1MOutput / 1MParametersAccess
vercel
1$10.5$31.5max_tokens, temperature, stop, tools, tool_choiceMiniRouter balance

Every model, one key.