NEAR AICloud
Sign inStart building
OpenAI o4 Mini icon
OpenAI o4 Mini
openai/o4-mini
200K context|$1.1/M input tokens|$4.4/M output tokens|$0.275/M cache read

OpenAI's cost-effective reasoning model. Strong performance on math, coding, and scientific reasoning at a fraction of o3's cost. 200K context window.

Input / M tokens
$1.1
Output / M tokens
$4.4
Cache read
$0.275
Context
200K

Sample code and API for OpenAI o4 Mini

Use the Responses API (/v1/responses) for OpenAI models.

const response = await fetch("https://cloud-api.near.ai/v1/responses", { method: "POST", headers: { "Authorization": "Bearer <YOUR-NEAR-AI-CLOUD-API-KEY>", "Content-Type": "application/json", }, body: JSON.stringify({ model: "openai/o4-mini", input: "What is the meaning of life?", store: false, }), }) console.log(await response.json())

You can also use NEAR AI Cloud with OpenAI's client API:

import OpenAI from "openai" const client = new OpenAI({ baseURL: "https://cloud-api.near.ai/v1", apiKey: "<YOUR-NEAR-AI-CLOUD-API-KEY>", }) const response = await client.responses.create({ model: "openai/o4-mini", input: "What is the meaning of life?", store: false, }) console.log(response.output_text)

Privacy & Execution

This is an Incognito model: it runs on a partner provider rather than inside a NEAR AI GPU TEE. Requests are routed through a shared NEAR AI API key, so your identity is not disclosed to the provider.

Your prompt content, however, is transmitted to and processed by OpenAI in accordance with their terms of service and privacy policy. Data is encrypted in transit, but execution happens outside of trusted hardware — there is no hardware-level privacy, attestation, or cryptographic proof of execution for this model.