NEAR AICloud
Sign inStart building
OpenAI GPT-4.1 Mini icon
OpenAI GPT-4.1 Mini
openai/gpt-4.1-mini
1000K context|$0.4/M input tokens|$1.6/M output tokens|$0.1/M cache read

Cost-effective version of GPT-4.1 with the same 1M token context window. Great balance of capability and cost for production workloads.

Input / M tokens
$0.4
Output / M tokens
$1.6
Cache read
$0.1
Context
1000K

Sample code and API for OpenAI GPT-4.1 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/gpt-4.1-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/gpt-4.1-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.