Kur. Kimlik doğrula.
Detect.
ozDNA gateway için istemci kütüphaneleri — API referansında belgelenen aynı POST /v1/detect sözleşmesi. Sandbox anahtarları api.sandbox.ozdna.com kullanır.
Python
Tipli yanıtlarla senkron istemci. Python 3.9+ gerektirir.
pip install ozdna
import os from ozdna import OzDNA client = OzDNA( api_key=os.environ["OZDNA_API_KEY"], base_url="https://api.sandbox.ozdna.com", # sandbox ) result = client.detect( text="This methodology applies a mixed-methods approach...", mode="academic", language="en", ) print(result.ai_probability) # 0.0 – 1.0 print(result.request_id) # X-Request-Id for support
from ozdna import AsenkronOzDNA async with AsenkronOzDNA(api_key="ozdna_sk_test_...") as client: result = await client.detect(text="Sample thesis excerpt...", mode="academic")
Paket kayıt defteri yayını — 2026 Q3. O zamana kadar API dokümantasyonundaki requests örneğini kullanın.
Node.js
Sunucu tarafı ve edge runtime'lar için TypeScript odaklı SDK. Node 18+ veya Bun.
npm install @ozdna/sdk # or pnpm add @ozdna/sdk
import { OzDNA } from '@ozdna/sdk'; const client = new OzDNA({ apiKey: process.env.OZDNA_API_KEY, baseURL: 'https://api.sandbox.ozdna.com', }); const result = await client.detect({ text: 'Segment-level analysis for production RAG workflows.', mode: 'financial', language: 'en', }); console.log(result.aiProbability); console.log(result.segments); // per-span scores when enabled
import { OzDNA, OzDNAError } from '@ozdna/sdk'; try { await client.detect({ text, mode: 'legal' }); } catch (err) { if (err instanceof OzDNAError && err.status === 429) { console.warn('Rate limited — retry after', err.retryAfter); } }
npm yayını — 2026 Q3. Geçici: fetch örneği.
Go
Bağlam iptali ve yapılandırılmış hatalarla idiomatik istemci.
go get github.com/ozdna/ozdna-go@v0.1.0
package main import ( "context" "fmt" "log" "os" "github.com/ozdna/ozdna-go" "github.com/ozdna/ozdna-go/detect" ) func main() { client := ozdna.NewClient( os.Getenv("OZDNA_API_KEY"), ozdna.WithBaseURL("https://api.sandbox.ozdna.com"), ) resp, err := client.Detect(context.Background(), detect.Request{ Text: "Compliance monitoring corpus excerpt...", Mode: detect.ModeFinancial, Language: "en", }) if err != nil { log.Fatal(err) } fmt.Printf("ai_probability=%.3f request_id=%s\n", resp.AIProbability, resp.RequestID) }
Modül etiketi v0.1.0 — talep üzerine erken erişim. Tam referans: POST /v1/detect.
Java
Spring servisleri ve kurumsal entegrasyonlar için JVM istemcisi. Java 17+.
<dependency> <groupId>com.ozdna</groupId> <artifactId>ozdna-java</artifactId> <version>0.1.0</version> </dependency>
implementation "com.ozdna:ozdna-java:0.1.0"
import com.ozdna.OzDNAClient; import com.ozdna.models.DetectRequest; import com.ozdna.models.DetectResponse; OzDNAClient client = OzDNAClient.builder() .apiKey(System.getenv("OZDNA_API_KEY")) .baseUrl("https://api.sandbox.ozdna.com") .build(); DetectResponse result = client.detect(DetectRequest.builder() .text("Regulatory delta summary for BDDK scope...") .mode("financial") .language("tr") .build()); System.out.println(result.getAiProbability());
Maven Central — Q4 2026. İletişim hello@ozdna.com for enterprise early access.
REST API
Dilden bağımsız HTTP — herhangi bir yığın, curl veya low-code entegrasyonlardan kullanın.
https://api.ozdna.com # production (beta) https://api.sandbox.ozdna.com # sandbox
curl -X POST https://api.sandbox.ozdna.com/v1/detect \ -H "Authorization: Bearer $OZDNA_API_KEY" \ -H "Content-Type: application/json" \ -H "X-Request-Id: $(uuidgen)" \ -d '{ "text": "This methodology applies a mixed-methods approach...", "mode": "academic", "language": "en" }'
{
"ai_probability": 0.87,
"mode": "academic",
"language": "en",
"segments": [...],
"request_id": "req_abc123"
}
Tam referans: POST /v1/detect · Hata kodları · OpenAPI
API anahtarı mı gerekiyor?
Sandbox kimlik bilgileri erken erişimle birlikte gelir. Üretim anahtarları davet onayı gerektirir.