NEAR AICloud
Sign inStart building
OpenAI GPT-4.1 icon
OpenAI GPT-4.1
openai/gpt-4.1
1000K context|$2/M input tokens|$8/M output tokens|$0.5/M cache read

OpenAI's flagship production model with 1M token context window. Excels at instruction following, coding, and long-context tasks. 75% cheaper cached input reads.

Input / M tokens
$2
Output / M tokens
$8
Cache read
$0.5
Context
1000K

Sample code and API for OpenAI GPT-4.1

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", 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", 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.