Skillpedia
واجهات API والخوادم (backend)7.0k · #13651

near-ai-cloud

ما الذي تفعله

تغطي هذه المهارة NEAR AI Cloud، وهي خدمة ذكاء اصطناعي خاصة تشغّل النماذج داخل بيئات عتاد آمنة معزولة. تشرح كيفية استدعائها عبر واجهة متوافقة مع OpenAI، وكيفية التحقق من إثبات العتاد وتوقيعات الرسائل، لمن يحتاج إلى ذكاء اصطناعي خاص وقابل للتحقق.

متى تستخدمها

  • ✓عندما تحتاج إلى ردود ذكاء اصطناعي تبقى فيها بياناتك خاصة عن مزودي البنية التحتية.
  • ✓عندما تريد التحقق من إثبات أن النموذج يعمل داخل عتاد آمن.
  • ✓عندما تريد بناء دردشة مشفّرة من طرف إلى طرف عبر NEAR AI Cloud.

رابط المهارة

https://github.com/internet-court/internet-court-skill/blob/main/vendored/near/near-ai-cloud/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/internet-court/internet-court-skill/blob/main/vendored/near/near-ai-cloud/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أريد استخدام NEAR AI Cloud للحصول على ردود ذكاء اصطناعي خاصة في تطبيقي، والتحقق من أن إثبات العتاد صالح.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يوجّه الوكيل عميل OpenAI المتوافق نحو عنوان NEAR AI Cloud بمفتاح API الخاص بك، فيبدو الكود كاستدعاءات OpenAI العادية. ويستطيع أيضًا التحقق من إثبات العتاد الآمن والتوقيعات على الردود.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

NEAR AI Cloud

Verifiable private AI inference through Trusted Execution Environments (TEEs). All inference runs inside Intel TDX confidential VMs with NVIDIA TEE GPUs — your data stays encrypted and isolated from infrastructure providers, model providers, and NEAR itself.

Quick Start

The API is OpenAI-compatible. Point any OpenAI SDK at https://cloud-api.near.ai/v1:

import openai

client = openai.OpenAI(
    base_url="https://cloud-api.near.ai/v1",
    api_key="YOUR_API_KEY"  # from cloud.near.ai dashboard
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V3.1",
    messages=[{"role": "user", "content": "Hello, NEAR AI!"}]
)
print(response.choices[0].message.content)
import OpenAI from 'openai';

const openai = new OpenAI({
    baseURL: 'https://cloud-api.near.ai/v1',
    apiKey: 'YOUR_API_KEY',
});

const completion = await openai.chat.completions.create({
    model: 'deepseek-ai/DeepSeek-V3.1',
    messages: [{ role: 'user', content: 'Hello, NEAR AI!' }]
});
console.log(completion.choices[0].message.content);

How It Works

  • All inference runs inside Intel TDX confidential VMs with NVIDIA TEE GPUs
  • TLS terminates inside the TEE, not at a load balancer — prompts are never exposed in plaintext
  • TEEs generate cryptographic attestation proofs verifiable via NVIDIA NRAS and Intel TDX
  • Every chat response is signed by a key that never leaves the TEE
  • You can independently verify hardware attestation and bind it to message signatures

Verification Flow

1. Generate nonce
2. Request model attestation  →  get signing_address, nvidia_payload, intel_quote
3. Verify GPU attestation     →  submit nvidia_payload to NVIDIA NRAS, check JWT fields
4. Verify CPU attestation     →  verify intel_quote via dcap-qvl or TEE Explorer
5. Verify GPU-CPU binding     →  signing_address + nonce bound in TDX report data; same nonce in NRAS eat_nonce
6. Make chat request           →  use the API as normal
7. Fetch chat signature       →  GET /v1/signature/{chat_id}
8. Verify signature            →  recover signer, compare to attested signing_address

API Endpoints

Base URL: https://cloud-api.near.ai

Endpoint Method Description
/v1/chat/completions POST OpenAI-compatible chat completions
/v1/models GET List available models
/v1/attestation/report?model={model} GET Model attestation (GPU + CPU)
/v1/attestation/report GET Gateway attestation
/v1/signature/{chat_id} GET Chat message signature

Critical Knowledge

  • Base URL is https://cloud-api.near.ai/v1 — use with any OpenAI SDK
  • signing_algo can be ecdsa or ed25519
  • Nonce should be a random 64-char hex string (32 bytes) for attestation freshness
  • NRAS response is a two-part array: [["JWT", "..."], {"GPU-0": "..."}] — overall JWT + per-GPU JWTs
  • The signing_address from model attestation must match the address that signed chat messages
  • Chat signatures are persistent and can be queried at any time after completion

References

Topic File
Private vs Anonymised Models references/private-vs-anonymised.md
Model TEE verification references/model-verification.md

Planned:

  • Gateway verification (TDX attestation for the API gateway + source provenance)
  • Chat verification (request/response hashing + signature verification)
  • E2E encrypted chat (ECDH key exchange, AES-256-GCM / ChaCha20-Poly1305)
  • OpenAI compatibility (streaming, reasoning models, Files API)

Resources

الأسئلة الشائعة

هل أحتاج إلى إعادة كتابة تطبيقي لـ NEAR AI Cloud؟

عادةً لا. الواجهة متوافقة مع OpenAI، فيمكن لحزمة OpenAI أن تشير إلى عنوان NEAR AI Cloud.

من يستطيع رؤية طلباتي؟

تقول المهارة إن الطلبات تبقى مشفّرة داخل البيئة الآمنة، ولا تُكشف كنص عادي لمزودي البنية التحتية أو النماذج.

أين أحصل على مفتاح API؟

من لوحة تحكم NEAR AI Cloud.

التفاصيل

الوصف الأصلي من المؤلف

NEAR AI Cloud private inference and verification. Use when integrating NEAR AI Cloud API for verifiable private AI inference, verifying model or gateway TEE attestation (NVIDIA NRAS, Intel TDX), verifying chat message signatures, implementing end-to-end encrypted chat, or using the OpenAI-compatible API with NEAR AI Cloud.

repo: internet-court/internet-court-skill

الشعبية

نجوم GitHub
7.0k
الترتيب
#13651
الترخيص
—
آخر تحديث
26‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة