NEAR AICloud
Sign inStart building
Grok 4.6 icon
Grok 4.6
x-ai/grok-4.6
500K context|$2/M input tokens|$6/M output tokens|$0.5/M cache read

xAI model for reasoning, coding, knowledge work, and image understanding.

Input / M tokens
$2
Output / M tokens
$6
Cache read
$0.5
Context
500K

Sample code and API for Grok 4.6

fetch("https://cloud-api.near.ai/v1/chat/completions", { method: "POST", headers: { "Authorization": "Bearer <YOUR-NEAR-AI-CLOUD-API-KEY>", "Content-Type": "application/json" }, body: JSON.stringify({ "model": "x-ai/grok-4.6", "messages": [ { "role": "user", "content": "What is the meaning of life?" } ] }) })

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

import OpenAI from "openai" const openai = new OpenAI({ baseURL: "https://cloud-api.near.ai/v1", apiKey: "<YOUR-NEAR-AI-CLOUD-API-KEY>", }) async function main() { const completion = await openai.chat.completions.create({ messages: [{ "role": "user", "content": "What is the meaning of life?" }], model: "x-ai/grok-4.6", }) console.log(completion.choices[0]) } main()

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 the model provider 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.