# NEAR AI > Documentation for NEAR AI Cloud: private, verifiable AI inference in Trusted Execution Environments through an OpenAI-compatible API. - [Private. Intelligent. Yours.](https://docs.near.ai/index.md): Build private, user-owned AI with NEAR AI Cloud - [Quickstart](https://docs.near.ai/cloud/quickstart.md) - [Available Models](https://docs.near.ai/cloud/models.md): Explore NEAR AI Cloud model catalog - [Reasoning Models](https://docs.near.ai/cloud/reasoning-models.md): Learn how to enable and disable reasoning capabilities for supported models - [Private Inference](https://docs.near.ai/cloud/private-inference.md): Learn how NEAR AI Cloud's private inference leverages TEEs to provide cryptographically verifiable AI computations with complete data privacy and security. - [Staking for Inference](https://docs.near.ai/cloud/staking-for-inference/overview.md): Stake NEAR and let the staking rewards pay for private inference on NEAR AI Cloud — your principal stays yours and stays withdrawable. - [Staking Calculator](https://docs.near.ai/cloud/staking-for-inference/calculator.md): Estimate how much NEAR to stake to cover your private inference usage, or see what a given stake gets you — based on the current NEAR price and staking APY. - [Verification](https://docs.near.ai/cloud/verification/index.md): Verify requests sent through the NEAR AI Cloud Gateway. - [Verify the NEAR AI Cloud Gateway](https://docs.near.ai/cloud/verification/cloud-api/index.md): Verify the gateway, model evidence, connection, response, and software evidence for requests sent through cloud-api.near.ai. - [Gateway Attestation](https://docs.near.ai/cloud/verification/cloud-api/gateway-attestation.md): Verify the NEAR AI Cloud gateway attestation for requests sent to cloud-api.near.ai. - [NEAR Model Attestations](https://docs.near.ai/cloud/verification/cloud-api/model-attestations.md): Verify the NEAR model-attestation report returned through the NEAR AI Cloud gateway. - [TLS Connection Binding](https://docs.near.ai/cloud/verification/cloud-api/tls.md): Bind a live NEAR AI Cloud gateway TLS connection to the gateway attestation. - [Response Signatures](https://docs.near.ai/cloud/verification/cloud-api/response-signatures.md): Verify available response signatures from the NEAR AI Cloud gateway against exact bytes and matching preflight evidence. - [Image Provenance](https://docs.near.ai/cloud/verification/cloud-api/image-provenance.md): Apply an image-provenance policy to configurations measured in NEAR AI Cloud gateway and model attestations. - [Quote, Nonce, and Signer Bindings](https://docs.near.ai/cloud/verification/reference/quote-nonce-signer.md): Shared rules for reading verified quotes, checking freshness, and matching signing identities. - [Response Signature Verification](https://docs.near.ai/cloud/verification/reference/response-signature-verification.md): Verify a response signature over exact request and response bytes. - [Verification Policy](https://docs.near.ai/cloud/verification/reference/verification-policy.md): Define required evidence, acceptable measurements, provenance requirements, and handling for unavailable verification results. - [SDK](https://docs.near.ai/cloud/inference-sdk/index.md): Use the JavaScript and Python SDKs for verified, encrypted Chat Completions. - [JavaScript](https://docs.near.ai/cloud/inference-sdk/javascript.md): Use the JavaScript SDK for verified, end-to-end encrypted Chat Completions. - [Python](https://docs.near.ai/cloud/inference-sdk/python.md): Use the asynchronous Python SDK for verified, encrypted Chat Completions. - [OpenAI Compatibility](https://docs.near.ai/cloud/guides/openai-compatibility.md): How to use NEAR AI Cloud with standard OpenAI SDKs - [Stateless Responses API](https://docs.near.ai/cloud/guides/stateless-responses.md): Use the OpenAI Responses shape without server-side conversation or response storage - [Usage Reporting API](https://docs.near.ai/cloud/guides/usage-reporting.md) - [Integrations](https://docs.near.ai/cloud/guides/integrations/index.md): Use NEAR AI Cloud with third-party software that supports OpenAI-compatible providers. - [Model Discovery and Refresh](https://docs.near.ai/cloud/guides/integrations/model-discovery.md): Discover current NEAR AI Cloud models and refresh stale client model lists. - [OpenCode](https://docs.near.ai/cloud/guides/integrations/opencode.md): Configure OpenCode to use NEAR AI Cloud as an OpenAI-compatible provider. - [Cursor](https://docs.near.ai/cloud/guides/integrations/cursor.md): Configure Cursor with NEAR AI Cloud through Cursor's OpenAI API key and base URL settings. - [Continue](https://docs.near.ai/cloud/guides/integrations/continue.md): Configure Continue to use NEAR AI Cloud through its OpenAI-compatible provider. - [Cline, Roo Code, and Kilo Code](https://docs.near.ai/cloud/guides/integrations/cline-roo-kilo.md): Configure Cline, Roo Code, and Kilo Code with NEAR AI Cloud's OpenAI-compatible API. - [Aider and Zed](https://docs.near.ai/cloud/guides/integrations/aider-zed.md): Configure Aider and Zed to use NEAR AI Cloud as an OpenAI-compatible provider. - [Goose](https://docs.near.ai/cloud/guides/opencode-goose.md): Configure Goose to use NEAR AI Cloud as an OpenAI-compatible provider. - [LibreChat](https://docs.near.ai/cloud/guides/integrations/librechat.md): Configure LibreChat to use NEAR AI Cloud as an OpenAI-compatible custom endpoint. - [Open WebUI](https://docs.near.ai/cloud/guides/integrations/open-webui.md): Configure Open WebUI to use NEAR AI Cloud as an OpenAI-compatible provider. - [LiteLLM Proxy](https://docs.near.ai/cloud/guides/integrations/litellm.md): Configure the LiteLLM Python SDK and LiteLLM Proxy to use NEAR AI Cloud. - [Dify](https://docs.near.ai/cloud/guides/integrations/dify.md): Configure Dify with NEAR AI Cloud through the OpenAI-API-compatible model provider plugin. - [Prompt Caching](https://docs.near.ai/cloud/guides/prompt-caching.md): How NEAR AI Cloud caches prompt prefixes to reduce latency and cost - [Fusion](https://docs.near.ai/cloud/guides/fusion.md): Use server-side multi-model deliberation from OpenAI-compatible clients - [Web Search](https://docs.near.ai/cloud/guides/web-search.md): Give models access to live web results through Chat Completions - [Embeddings, Images, Audio & More](https://docs.near.ai/cloud/guides/specialized-endpoints.md): Use NEAR AI Cloud for embeddings, reranking, image generation, audio transcription, and PII detection — all inside TEEs - [End-to-End Encrypted Chat Completions](https://docs.near.ai/cloud/guides/e2ee-chat-completions.md): How to use end-to-end encryption for chat completions with NEAR AI Cloud - [Direct Completions](https://docs.near.ai/cloud/experimental/direct-completions.md): Experimental: send requests straight to one self-hosted model's TEE endpoint, without the NEAR AI Cloud Gateway. - [SDK](https://docs.near.ai/cloud/inference-sdk/direct.md): Experimental SDK notes for direct model endpoints. - [API Reference](https://docs.near.ai/api-reference/introduction.md): OpenAI-compatible REST API for private, verifiable AI inference on NEAR AI Cloud - [Create chat completion](https://docs.near.ai/api-reference/chat/create-chat-completion.md): Generate AI model responses for chat conversations. Supports both streaming and non-streaming modes. OpenAI-compatible endpoint. - [Create text completion](https://docs.near.ai/api-reference/chat/create-text-completion.md): Generate AI model responses for text prompts. OpenAI-compatible endpoint. - [List available models](https://docs.near.ai/api-reference/chat/list-available-models.md): Returns all AI models available for completions. OpenAI-compatible endpoint. - [Create response](https://docs.near.ai/api-reference/responses/create-response.md): Generate a single-turn, stateless AI response with optional streaming. - [List models with pricing](https://docs.near.ai/api-reference/models/list-models-with-pricing.md): Get all available models with pricing information. Public endpoint. - [Get model details](https://docs.near.ai/api-reference/models/get-model-details.md): Get pricing and metadata for a specific model. URL-encode model names containing slashes. Public endpoint. - [Edit images from a text prompt and image](https://docs.near.ai/api-reference/images/edit-images-from-a-text-prompt-and-image.md): Edit images using an AI model from an image and text description. OpenAI-compatible endpoint. - [Generate images from text prompt](https://docs.near.ai/api-reference/images/generate-images-from-text-prompt.md): Generate images using an AI model from a text description. OpenAI-compatible endpoint. - [Audio transcription endpoint](https://docs.near.ai/api-reference/audio/audio-transcription-endpoint.md): Transcribe audio files using Whisper models. Accepts audio file uploads via multipart/form-data. Supports MP3, WAV, WEBM, FLAC, OGG, and M4A formats. Maximum file size: 25 MB. - [Document reranking endpoint](https://docs.near.ai/api-reference/rerank/document-reranking-endpoint.md): Ranks documents by relevance to a query using a reranker model. - [Text similarity scoring endpoint](https://docs.near.ai/api-reference/score/text-similarity-scoring-endpoint.md): Scores the similarity between two texts using a scoring/ranking model. - [Post v1privacyclassify](https://docs.near.ai/api-reference/privacy/post-v1privacyclassify.md) - [Post v1privacyredact](https://docs.near.ai/api-reference/privacy/post-v1privacyredact.md) - [Get Intel Trust Authority attestation token](https://docs.near.ai/api-reference/attestation/get-intel-trust-authority-attestation-token.md): Get Intel Trust Authority signed attestation JWTs for the gateway and, when requested, compatible model provider evidence. Public endpoint — this is an explicit, documented decision (nearai/infra#193): the response carries only ITA-signed TEE evidence (no customer or key-scoped data), public access… - [Get attestation report](https://docs.near.ai/api-reference/attestation/get-attestation-report.md): Get hardware attestation report for TEE verification. Requires an API key (nearai/infra#193); report retrieval is non-billable — no usage or billing records are created. - [Get completion or Responses API signature](https://docs.near.ai/api-reference/attestation/get-completion-or-responses-api-signature.md): Get a cryptographic signature for a chat completion or completed stateless `resp_*` response. Returns signature data on success, or an unavailable response if a chat-completion stream was disconnected. - [Get current user](https://docs.near.ai/api-reference/users/get-current-user.md): Returns the profile of the currently authenticated user, including their organizations and workspaces. - [Update current user's profile](https://docs.near.ai/api-reference/users/update-current-users-profile.md): Updates the profile information for the currently authenticated user. - [Create a new access token](https://docs.near.ai/api-reference/users/create-a-new-access-token.md): Creates a new short-lived access token using the current refresh token. - [List pending invitations for the current user](https://docs.near.ai/api-reference/users/list-pending-invitations-for-the-current-user.md): Returns all pending organization invitations for the authenticated user's email. - [Accept an organization invitation](https://docs.near.ai/api-reference/users/accept-an-organization-invitation.md): Accepts a pending invitation and adds the user as a member of the organization. - [Decline an organization invitation](https://docs.near.ai/api-reference/users/decline-an-organization-invitation.md): Declines a pending invitation to join an organization. - [Get user's refresh tokens](https://docs.near.ai/api-reference/users/get-users-refresh-tokens.md): Returns all active refresh tokens for the currently authenticated user. - [Revoke a user refresh token](https://docs.near.ai/api-reference/users/revoke-a-user-refresh-token.md): Revokes a specific refresh token for the currently authenticated user. - [Get current user's account eligibility status](https://docs.near.ai/api-reference/users/get-current-users-account-eligibility-status.md): Returns a minimal eligibility response for frontend preflight checks. AML/KYT provider details are never exposed in this public response. - [Revoke all tokens for a user](https://docs.near.ai/api-reference/users/revoke-all-tokens-for-a-user.md): Revokes all tokens (both refresh tokens and access tokens) for the currently authenticated user. This deletes all refresh tokens from the database and invalidates all JWT access tokens by updating the user's tokens_revoked_at timestamp. - [List organizations](https://docs.near.ai/api-reference/organizations/list-organizations.md): Get all organizations you belong to. - [Create a new organization](https://docs.near.ai/api-reference/organizations/create-a-new-organization.md): Creates a new organization with the authenticated user as owner. - [Get organization by ID](https://docs.near.ai/api-reference/organizations/get-organization-by-id.md): Returns organization details for a specific organization ID. - [Update organization](https://docs.near.ai/api-reference/organizations/update-organization.md): Updates organization details for a specific organization ID. - [Delete organization (owner only)](https://docs.near.ai/api-reference/organizations/delete-organization-owner-only.md): Deletes an organization. Only the organization owner can perform this action. - [Cancel an organization invitation (short path)](https://docs.near.ai/api-reference/organization-members/cancel-an-organization-invitation-short-path.md): Cancels a pending invitation for the organization. Only owners and admins can cancel invitations. This endpoint is an alias for `DELETE /v1/organizations/{org_id}/members/invitations/{invitation_id}`. - [List organization members with limited user information](https://docs.near.ai/api-reference/organization-members/list-organization-members-with-limited-user-information.md): Returns limited user information for privacy and security: - All members: See only public user info (username, display name, avatar) - Sensitive data (email, last login, etc.) is not exposed to any organization members - [Add a member to an organization](https://docs.near.ai/api-reference/organization-members/add-a-member-to-an-organization.md): Adds a new member to the organization. The authenticated user must be an owner or admin. - [List organization invitations](https://docs.near.ai/api-reference/organization-members/list-organization-invitations.md): Returns invitations for the organization. Only accessible to owners and admins. - [Cancel an organization invitation](https://docs.near.ai/api-reference/organization-members/cancel-an-organization-invitation.md): Cancels a pending invitation for the organization. Only owners and admins can cancel invitations. - [Invite users to an organization by email](https://docs.near.ai/api-reference/organization-members/invite-users-to-an-organization-by-email.md): Invites multiple users to the organization by their email addresses. The authenticated user must be an owner or admin. Returns results for each invitation attempt, including successes and failures. - [Update an organization member's role](https://docs.near.ai/api-reference/organization-members/update-an-organization-members-role.md): Updates a member's role in the organization. The authenticated user must be an owner or admin. Only owners can promote members to owner role. - [Remove a member from an organization](https://docs.near.ai/api-reference/organization-members/remove-a-member-from-an-organization.md): Removes a member from the organization. The authenticated user must be an owner or admin, or the member can remove themselves. The last owner cannot be removed. - [Get invitation details by token (public endpoint)](https://docs.near.ai/api-reference/invitations/get-invitation-details-by-token-public-endpoint.md): Returns invitation details for a specific token. This is a public endpoint that allows users to view invitation details before logging in. - [Accept invitation by token (requires authentication)](https://docs.near.ai/api-reference/invitations/accept-invitation-by-token-requires-authentication.md): Accepts an invitation using its token. The authenticated user's email must match the invitation email. - [List workspaces in an organization](https://docs.near.ai/api-reference/workspaces/list-workspaces-in-an-organization.md): Lists all workspaces within the specified organization. The authenticated user must be a member of the organization to list workspaces. - [Create a new workspace in an organization](https://docs.near.ai/api-reference/workspaces/create-a-new-workspace-in-an-organization.md): Creates a new workspace within the specified organization. The authenticated user must be a member of the organization to create workspaces. - [Get workspace by ID](https://docs.near.ai/api-reference/workspaces/get-workspace-by-id.md): Returns workspace details for a specific workspace ID. - [Update workspace](https://docs.near.ai/api-reference/workspaces/update-workspace.md): Updates workspace details for a specific workspace ID. - [Delete workspace](https://docs.near.ai/api-reference/workspaces/delete-workspace.md): Deletes (deactivates) a workspace. Only the workspace creator or organization admin/owner can delete. - [List API keys for workspace](https://docs.near.ai/api-reference/workspaces/list-api-keys-for-workspace.md): Returns a paginated list of all API keys for a workspace with usage information. - [Create API key for workspace](https://docs.near.ai/api-reference/workspaces/create-api-key-for-workspace.md): Creates a new API key for a workspace. Note: The key may take up to 10 seconds to become active for authentication due to internal caching. - [Revoke an API key](https://docs.near.ai/api-reference/workspaces/revoke-an-api-key.md): Revokes a specific API key from a workspace. - [Update API key](https://docs.near.ai/api-reference/workspaces/update-api-key.md): Updates an API key's name, expiration date, and/or spending limit. The user must be a member of the organization that owns the workspace. All fields are optional - only provided fields will be updated. - [Update API key spend limit](https://docs.near.ai/api-reference/workspaces/update-api-key-spend-limit.md): Updates the spending limit for a specific API key. The user must be a member of the organization that owns the workspace. Set spend_limit to null to remove the limit. - [Get organization balance](https://docs.near.ai/api-reference/usage/get-organization-balance.md): Returns the current spending balance for an organization - [Get organization usage broken down by model.](https://docs.near.ai/api-reference/usage/get-organization-usage-broken-down-by-model.md): Returns one row per model, summed over a rolling window ending now: `day` = last 24h, `week` = last 7 days, `month` = last 30 days (NOT calendar day/week/month-to-date). Used by the dashboard pie chart to show which models drive spend. - [Get organization usage history](https://docs.near.ai/api-reference/usage/get-organization-usage-history.md): Returns paginated usage history for an organization - [Get v1organizations usagemetrics](https://docs.near.ai/api-reference/usage/get-v1organizations-usagemetrics.md) - [Get v1organizations usagetimeseries](https://docs.near.ai/api-reference/usage/get-v1organizations-usagetimeseries.md) - [Get API key usage history](https://docs.near.ai/api-reference/usage/get-api-key-usage-history.md): Returns paginated usage history for a specific API key - [List active reporting tokens for an organization.](https://docs.near.ai/api-reference/reporting/list-active-reporting-tokens-for-an-organization.md): The response includes non-secret prefixes and audit timestamps. It never includes raw reporting tokens or stored hashes. - [Create a read-only reporting token.](https://docs.near.ai/api-reference/reporting/create-a-read-only-reporting-token.md): Organization owners and admins can create reporting tokens for usage export and summary endpoints. The raw `rpt-` token is returned once. - [Revoke a reporting token.](https://docs.near.ai/api-reference/reporting/revoke-a-reporting-token.md): Revoked reporting tokens can no longer authenticate usage reporting requests. - [Export organization usage and cost rows.](https://docs.near.ai/api-reference/reporting/export-organization-usage-and-cost-rows.md): Requires a reporting token scoped to the organization in the path. Results are returned in descending `(created_at, source, id)` order with opaque cursor pagination. - [Summarize organization usage and costs.](https://docs.near.ai/api-reference/reporting/summarize-organization-usage-and-costs.md): Requires a reporting token scoped to the organization in the path. Totals include inference and platform service usage by default. - [Get costs by request IDs](https://docs.near.ai/api-reference/billing/get-costs-by-request-ids.md): Returns the cost in nano-USD for each request ID provided. A request ID is the UUID from the `inference-id` response header of /v1/chat/completions and /v1/messages responses (equivalently: UUIDv5 of the response body `id` under the DNS namespace). The `x-request-id` response header is a transport c… - [Get organization staking farm state](https://docs.near.ai/api-reference/staking-farm/get-organization-staking-farm-state.md): Returns the staking farm source and last synced farm-credit state for an organization. The organization must be the NEAR-authenticated user's default organization. - [Sync organization staking farm credits](https://docs.near.ai/api-reference/staking-farm/sync-organization-staking-farm-credits.md): Links or refreshes the NEAR-authenticated user's staking farm source for the organization, then syncs reward units from the configured staking contract. - [Get staking farm configuration](https://docs.near.ai/api-reference/staking-farm/get-staking-farm-configuration.md): Returns the active House of Stake farm configuration used to convert on-chain staking reward units into NEAR AI Cloud credits. - [List platform services (public, no auth)](https://docs.near.ai/api-reference/services/list-platform-services-public-no-auth.md) - [Get platform service by name (public, no auth)](https://docs.near.ai/api-reference/services/get-platform-service-by-name-public-no-auth.md) - [Check API key validity](https://docs.near.ai/api-reference/gateway/check-api-key-validity.md): Validates the provided API key (via Bearer token), checks rate limits, and verifies the organization has sufficient credits. - [Health check](https://docs.near.ai/api-reference/health/health-check.md): Check service health status. No authentication required. - [List aggregated feature requests for admins.](https://docs.near.ai/api-reference/feature-requests/list-aggregated-feature-requests-for-admins.md) - [Submit or update the current user's interest in a feature request target.](https://docs.near.ai/api-reference/feature-requests/submit-or-update-the-current-users-interest-in-a-feature-request-target.md) - [List admin access tokens (Admin only)](https://docs.near.ai/api-reference/admin/list-admin-access-tokens-admin-only.md): Retrieves a paginated list of all admin access tokens in the system. Only authenticated admins can access this endpoint. - [Create admin access token (Admin only)](https://docs.near.ai/api-reference/admin/create-admin-access-token-admin-only.md): Creates an access token for admin users with customizable expiration time, IP address, and user agent. This is typically used by billing services and other automated systems that need access to admin endpoints. - [Delete admin access token (Admin only)](https://docs.near.ai/api-reference/admin/delete-admin-access-token-admin-only.md): Revokes an admin access token by setting it as inactive. Only authenticated admins can perform this operation. - [List organization invitation email deliveries (Admin only)](https://docs.near.ai/api-reference/admin/list-organization-invitation-email-deliveries-admin-only.md): Returns delivery metadata for organization invitation emails without exposing invitation tokens. - [Resend a single organization invitation email (Admin only)](https://docs.near.ai/api-reference/admin/resend-a-single-organization-invitation-email-admin-only.md) - [List all models (Admin only)](https://docs.near.ai/api-reference/admin/list-all-models-admin-only.md): Returns a paginated list of all models in the system. By default, only active models are returned. Use `include_inactive=true` to also include disabled models. - [Batch upsert models metadata (Admin only)](https://docs.near.ai/api-reference/admin/batch-upsert-models-metadata-admin-only.md): Upserts (inserts or updates) pricing and metadata for one or more models. Only authenticated admins can perform this operation. The body should be an array of objects where each key is a model name and the value is the model data. - [Deprecate a model in favor of another (Admin only)](https://docs.near.ai/api-reference/admin/deprecate-a-model-in-favor-of-another-admin-only.md): Atomically marks `modelId` as deprecated and routes its traffic to `successorModelId`: 1. Adds `modelId` as an alias of `successorModelId`, so existing clients sending `model: ""` keep working — the alias resolver rewrites the request-side `model` field to the successor before backend… - [List scheduled pricing changes (Admin only).](https://docs.near.ai/api-reference/admin/list-scheduled-pricing-changes-admin-only.md) - [Confirm a batch of scheduled pricing changes and notify affected admins (Admin only).](https://docs.near.ai/api-reference/admin/confirm-a-batch-of-scheduled-pricing-changes-and-notify-affected-admins-admin-only.md): Persists the schedule (the background scheduler applies each change at its effective date) and sends one consolidated email per affected recipient. - [Preview a batch of scheduled pricing changes without mutating state (Admin only).](https://docs.near.ai/api-reference/admin/preview-a-batch-of-scheduled-pricing-changes-without-mutating-state-admin-only.md) - [Cancel a pending scheduled pricing change (Admin only).](https://docs.near.ai/api-reference/admin/cancel-a-pending-scheduled-pricing-change-admin-only.md) - [Delete a model (Admin only)](https://docs.near.ai/api-reference/admin/delete-a-model-admin-only.md): Soft deletes a model by setting is_active to false. This preserves historical usage records that reference the model name while preventing it from being used in new requests. - [Confirm a planned model deprecation, update the catalog, and notify affected admins.](https://docs.near.ai/api-reference/admin/confirm-a-planned-model-deprecation-update-the-catalog-and-notify-affected-admins.md) - [Preview affected admins for a planned model deprecation (Admin only).](https://docs.near.ai/api-reference/admin/preview-affected-admins-for-a-planned-model-deprecation-admin-only.md) - [Get complete history for a model (Admin only)](https://docs.near.ai/api-reference/admin/get-complete-history-for-a-model-admin-only.md): Returns the complete history for a specific model, showing all changes over time including pricing, context length, display name, and description. - [Get a single organization by id (Admin only)](https://docs.near.ai/api-reference/admin/get-a-single-organization-by-id-admin-only.md): Returns one organization with its spend limit and usage. Only authenticated admins can perform this operation. Returns 404 if the organization does not exist or is inactive (consistent with the admin organizations list, which hides inactive orgs). - [Get organization concurrent request limit (Admin only)](https://docs.near.ai/api-reference/admin/get-organization-concurrent-request-limit-admin-only.md): Returns the current concurrent request limit for an organization. If no custom limit is set, returns null for concurrent_limit and the default (64) for effective_limit. - [Update organization concurrent request limit (Admin only)](https://docs.near.ai/api-reference/admin/update-organization-concurrent-request-limit-admin-only.md): Updates the maximum concurrent requests allowed per model for an organization. Set to null to use the default limit (64). Changes take effect within 5 minutes due to caching. - [Update organization limits (Admin only)](https://docs.near.ai/api-reference/admin/update-organization-limits-admin-only.md): Updates spending limits for a specific organization. This endpoint is typically called by a billing service with an admin API key when a customer makes a purchase. - [Get limits history for an organization (Admin only)](https://docs.near.ai/api-reference/admin/get-limits-history-for-an-organization-admin-only.md): Returns the complete limits history for a specific organization, showing all limits changes over time. Get limits history for an organization (Admin only) - [List members of a specific organization (Admin only)](https://docs.near.ai/api-reference/admin/list-members-of-a-specific-organization-admin-only.md): Returns the members of the given organization with full user details (email, last login, active status), consistent with `/v1/admin/users`. Only authenticated admins can perform this operation. - [Get organization metrics (Admin only)](https://docs.near.ai/api-reference/admin/get-organization-metrics-admin-only.md): Returns usage metrics for an organization including summary totals, and breakdowns by workspace, API key, and model. - [Get time series metrics for an organization (Admin only)](https://docs.near.ai/api-reference/admin/get-time-series-metrics-for-an-organization-admin-only.md): Returns daily/weekly/hourly aggregations for charting: requests, tokens, and cost per time period. - [Get admin organization staking farm state](https://docs.near.ai/api-reference/admin/get-admin-organization-staking-farm-state.md): Returns the staking farm source and last synced farm-credit state for any organization. Requires platform admin access. - [Sync admin organization staking farm credits](https://docs.near.ai/api-reference/admin/sync-admin-organization-staking-farm-credits.md): Refreshes staking farm reward units and derived credits for any linked organization. Requires platform admin access. - [Get organization balance (Admin only)](https://docs.near.ai/api-reference/admin/get-organization-balance-admin-only.md): Returns the current spending balance for an organization without requiring the caller to be a member of that organization. Intended for trusted automated billing services. - [Get the platform billing summary (Admin only)](https://docs.near.ai/api-reference/admin/get-the-platform-billing-summary-admin-only.md): Credit LIMITS (caps) and consumption — NOT payments/cash. Returns active paid/grant credit limits, total consumed, paying/granted org counts, and a breakdown by funding source. Real money-in lives in the billing service, not cloud-api. - [Get the platform infrastructure / fleet burn summary (Admin only)](https://docs.near.ai/api-reference/admin/get-the-platform-infrastructure-fleet-burn-summary-admin-only.md): Fetches the live host list, counts active/idle hosts, and computes the monthly/daily GPU burn rate from the configured cost-per-host. Degrades gracefully (stale=true) if the host inventory is unreachable. - [Get platform-wide metrics for admin dashboards (Admin only)](https://docs.near.ai/api-reference/admin/get-platform-wide-metrics-for-admin-dashboards-admin-only.md): Returns aggregated metrics across all organizations including: - Total users and organizations - Total requests and revenue - Top models by usage - Top organizations by spend - [Get platform-wide time series for admin dashboards (Admin only)](https://docs.near.ai/api-reference/admin/get-platform-wide-time-series-for-admin-dashboards-admin-only.md): Returns per-bucket requests, tokens, cost (paid/granted + verifiable/external splits), active organizations, and new signups for growth/mix trend charts. - [Get the per-model consumption ranking (Admin only)](https://docs.near.ai/api-reference/admin/get-the-per-model-consumption-ranking-admin-only.md): Models for the selected period ranked by consumed cost, with requests, tokens, unique orgs, verifiable flag, provider type, and latency. Paginated and filterable. - [Get the per-organization consumption ranking (Admin only)](https://docs.near.ai/api-reference/admin/get-the-per-organization-consumption-ranking-admin-only.md): Organizations with usage in the selected period ranked by consumed cost, with the verifiable/external split, requests, tokens, models used, a current paying flag, and last-usage timestamp. Paginated and filterable — full attribution of usage/spend per org. - [Create platform service (Admin only)](https://docs.near.ai/api-reference/admin/create-platform-service-admin-only.md) - [Update platform service (Admin only; display_name, description, cost_per_unit, is_active)](https://docs.near.ai/api-reference/admin/update-platform-service-admin-only;-display_name-description-cost_per_unit-is_active.md) - [List all registered users with pagination (Admin only)](https://docs.near.ai/api-reference/admin/list-all-registered-users-with-pagination-admin-only.md): Returns a paginated list of all users in the system. Only authenticated admins can perform this operation. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.