close
Skip to main content
The NEAR AI Cloud API is a REST API served from a single base URL. Its documented OpenAI-compatible inference surfaces work with OpenAI SDKs by pointing them at NEAR AI.

Authentication

Every request is authenticated with a bearer token in the Authorization header. The API accepts four token types; for programmatic access you almost always want an API key.
Each endpoint page lists which token types it accepts under Authorizations. Every endpoint page has an interactive playground: paste your key, edit the request, and send it directly from the browser.

Chat Completions

The primary inference endpoint

Models

List models, context windows, and pricing

Attestation

Verify the TEE running your requests
POST /v1/responses is stateless and supports store: false only. Read the Stateless Responses guide before migrating an integration that uses conversations, files, response history, or built-in tools.
New to NEAR AI Cloud? Start with the Quickstart, then see OpenAI Compatibility for SDK setup details.