{"openapi":"3.1.0","info":{"title":"OrukZero API","version":"2026-10-06","description":"OrukZero detects human or synthetic English speech and returns clip-level and segment-level scores. Use an Oruk Bearer API key for an active organization with approved account API access. Free and trial accounts are eligible; no paid subscription or separate OrukZero model approval is required. Inference consumes no credits or plan minutes. Scores are uncalibrated signals, not probabilities or proof of authenticity; validate performance on your own audio."},"paths":{"/v1/audio/synthetic-speech":{"post":{"tags":["OrukZero"],"summary":"Detect human or AI speech with OrukZero","description":"English audio, 1–60 seconds, WAV/FLAC/OGG/MP3, at most 12 MiB. Uncalibrated scores with a fixed 0.5 threshold. A valid Oruk API key belonging to an active account is required; no paid subscription is needed; OrukZero is included at no extra charge and consumes no credits or plan minutes. Long-audio aggregation is experimental. Approved account API access is required. Send one uploaded file rather than a remote URL; intended input is English, mono or stereo at 8–48 kHz. X-Request-ID is for tracing only and does not provide an idempotency guarantee.","operationId":"detect_v1_audio_synthetic_speech_post","requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"file":{"type":"string","format":"binary","description":"WAV, FLAC, OGG or MP3 audio containing 1–60 seconds of English speech, 8–48 kHz mono or stereo, at most 12 MiB. Remote audio URLs and M4A/AAC are not supported."},"model":{"type":"string","enum":["orukzero"],"default":"orukzero","description":"Canonical model ID for OrukZero. Omit this field to use the same default.","examples":["orukzero"]}},"additionalProperties":false,"type":"object","required":["file"],"description":"Upload one local audio file using multipart/form-data; let the HTTP client set the multipart boundary."},"examples":{"englishRecording":{"summary":"Multipart upload with the canonical model ID","description":"The file value below stands for the bytes of a local speech.wav file, not a remote URL or JSON request. Use multipart/form-data and let the client create the boundary.","value":{"file":"<binary contents of speech.wav>","model":"orukzero"}}}}},"required":true},"responses":{"200":{"description":"Uncalibrated clip and segment predictions with zero-cost account usage metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionResponse"},"examples":{"recordedEnglishClip":{"summary":"Saved 14.45-second English clip response","description":"Recorded during the October 11, 2026 account-access verification. Scores, timings and usage are retained; the request ID is replaced with a documentation placeholder. This single response is an integration example, not a model-accuracy benchmark or a promise of identical output on other audio.","value":{"object":"synthetic_speech.result","model":"orukzero","model_revision":"2026-10-05-adapt-216","duration":14.45,"prediction":"human","synthetic_score":0.0015596844106423116,"threshold":0.5,"score_type":"uncalibrated_sigmoid","aggregation":"coverage_weighted_mean_logit","segments":[{"start":0,"end":6,"synthetic_score":0.0017716888970522602,"prediction":"human"},{"start":6,"end":12,"synthetic_score":0.0018471886024990472,"prediction":"human"},{"start":12,"end":14.45,"synthetic_score":0.0007539881060308273,"prediction":"human"}],"warnings":["english_preview","score_is_not_a_calibrated_probability","multi_segment_aggregation_not_validated"],"id":"req_example_recorded_response","usage":{"audio_seconds":14.45,"billed":false,"billing_mode":"included_with_account","credits_used":0,"plan_minutes_used":0,"cost_usd":"0.00"}}}}}}},"400":{"description":"Unsupported model"},"401":{"description":"Invalid, revoked or expired API key, or unavailable account access"},"408":{"description":"Audio upload timed out"},"413":{"description":"Audio exceeds 12 MiB"},"415":{"description":"Expected multipart/form-data"},"422":{"description":"Invalid audio or multipart upload"},"429":{"description":"Per-key rate limit or capacity limit; honor Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer","minimum":1}}}},"503":{"description":"Account verification or detector temporarily unavailable"}},"security":[{"HTTPBearer":[]}]}},"/v1/models/orukzero/access":{"get":{"summary":"Check OrukZero account access","description":"Read-only account access check. A valid API key on an active Oruk account is required. Free and trial accounts are eligible; no paid subscription is needed. No credits or plan minutes are consumed. The organization must have approved account API access. This check performs no audio inference and does not create a key or change account status. It reports current access; a later inference request performs its own check.","tags":["OrukZero"],"security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Active account; OrukZero is included at no extra charge","content":{"application/json":{"schema":{"type":"object","required":["model","customer","entitlement","billed","consumes_credits","consumes_plan_minutes"],"properties":{"model":{"const":"orukzero","description":"Canonical OrukZero model ID."},"customer":{"type":"object","required":["key_id","organization_id","plan"],"properties":{"key_id":{"type":"string","description":"Identifier of the authenticated API-key record, not the API-key secret."},"organization_id":{"type":"string","description":"Identifier of the active organization owning the authenticated key."},"plan":{"type":"string","description":"Current plan identifier when present, or account when no eligible subscription is found. A paid plan is not required for OrukZero."}},"description":"The key and organization resolved by server-side authentication; these values are not supplied by the caller."},"entitlement":{"const":"included_with_account","description":"Account-based free entitlement. This is independent of paid speech-model allowances."},"billed":{"const":false,"description":"False: this read-only access check does not create a charge."},"consumes_credits":{"const":false,"description":"False: OrukZero does not debit prepaid credits."},"consumes_plan_minutes":{"const":false,"description":"False: OrukZero does not consume included plan minutes."}},"description":"The authenticated key belongs to an active organization with approved account API access. Subscription status does not determine OrukZero eligibility."},"examples":{"freeAccount":{"summary":"Illustrative active account without a paid subscription","description":"Identifiers are documentation placeholders; this example contains no credential or customer identity.","value":{"model":"orukzero","customer":{"key_id":"key_example","organization_id":"org_example","plan":"account"},"entitlement":"included_with_account","billed":false,"consumes_credits":false,"consumes_plan_minutes":false}}}}}},"401":{"description":"Invalid, revoked or expired API key, or unavailable account access"},"503":{"description":"Account service unavailable"}},"operationId":"get_orukzero_account_access"}}},"components":{"schemas":{"DetectionResponse":{"properties":{"object":{"type":"string","const":"synthetic_speech.result","title":"Object","description":"Response discriminator for synthetic-speech detection."},"model":{"type":"string","const":"orukzero","title":"Model","description":"Canonical model ID returned by this endpoint."},"model_revision":{"type":"string","const":"2026-10-05-adapt-216","title":"Model Revision","description":"Revision of the detector used for this response."},"duration":{"type":"number","maximum":60,"minimum":1,"title":"Duration","description":"Decoded audio duration in seconds."},"prediction":{"type":"string","enum":["human","synthetic"],"title":"Prediction","description":"Clip label derived from synthetic_score: synthetic at or above threshold, human below threshold."},"synthetic_score":{"type":"number","maximum":1,"minimum":0,"title":"Synthetic Score","description":"Clip-level uncalibrated sigmoid score in [0, 1]. This is not a calibrated probability or proof of authenticity."},"threshold":{"type":"number","const":0.5,"title":"Threshold","description":"Fixed decision threshold used to derive the prediction label."},"score_type":{"type":"string","const":"uncalibrated_sigmoid","title":"Score Type","description":"Identifies the uncalibrated sigmoid score representation."},"aggregation":{"type":"string","const":"coverage_weighted_mean_logit","title":"Aggregation","description":"The clip score is formed from a coverage-weighted mean of segment logits. Multi-segment aggregation is experimental."},"segments":{"items":{"$ref":"#/components/schemas/Segment"},"type":"array","maxItems":10,"minItems":1,"title":"Segments","description":"Analysis windows with timestamps in seconds relative to the beginning of the submitted audio. Inspect individual segment scores when they disagree."},"warnings":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Warnings","description":"Model and input-scope caveats returned with this result; preserve them when displaying or storing scores."},"id":{"type":"string","title":"Id","description":"Request identifier for diagnostics and tracing. It is not an idempotency guarantee."},"usage":{"additionalProperties":true,"type":"object","title":"Usage","description":"Zero-cost usage metadata. Recorded responses include audio_seconds, billed=false, billing_mode=included_with_account, credits_used=0, plan_minutes_used=0 and cost_usd=0.00. No subscription allowance is consumed."}},"additionalProperties":false,"type":"object","required":["object","model","model_revision","duration","prediction","synthetic_score","threshold","score_type","aggregation","segments","warnings","id","usage"],"title":"DetectionResponse","description":"Synthetic-speech analysis for the submitted clip. Scores describe the model output; they do not establish speaker identity, language, authenticity or calibrated probability.","examples":[{"object":"synthetic_speech.result","model":"orukzero","model_revision":"2026-10-05-adapt-216","duration":14.45,"prediction":"human","synthetic_score":0.0015596844106423116,"threshold":0.5,"score_type":"uncalibrated_sigmoid","aggregation":"coverage_weighted_mean_logit","segments":[{"start":0,"end":6,"synthetic_score":0.0017716888970522602,"prediction":"human"},{"start":6,"end":12,"synthetic_score":0.0018471886024990472,"prediction":"human"},{"start":12,"end":14.45,"synthetic_score":0.0007539881060308273,"prediction":"human"}],"warnings":["english_preview","score_is_not_a_calibrated_probability","multi_segment_aggregation_not_validated"],"id":"req_example_recorded_response","usage":{"audio_seconds":14.45,"billed":false,"billing_mode":"included_with_account","credits_used":0,"plan_minutes_used":0,"cost_usd":"0.00"}}]},"Segment":{"properties":{"start":{"type":"number","maximum":60,"minimum":0,"title":"Start","description":"Start timestamp in seconds relative to the clip."},"end":{"type":"number","maximum":60,"exclusiveMinimum":0,"title":"End","description":"End timestamp in seconds relative to the clip."},"synthetic_score":{"type":"number","maximum":1,"minimum":0,"title":"Synthetic Score","description":"Uncalibrated sigmoid score for this window, not a calibrated probability."},"prediction":{"type":"string","enum":["human","synthetic"],"title":"Prediction","description":"Window label: synthetic for a score at or above 0.5, human for a score below 0.5."}},"additionalProperties":false,"type":"object","required":["start","end","synthetic_score","prediction"],"title":"Segment","description":"Prediction for one audio analysis window; timestamps are seconds from the start of the submitted clip.","examples":[{"start":0,"end":6,"synthetic_score":0.0017716888970522602,"prediction":"human"}]}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"Send Authorization: Bearer followed by a valid Oruk API key. Keep the key on your server. The owning organization must be active with approved account API access; no paid subscription or separate OrukZero approval is required."}}},"servers":[{"url":"https://speech-api.oruk.ai","description":"Public Oruk API"}],"externalDocs":{"description":"OrukZero quickstart and access","url":"https://oruk.ai/docs/synthetic-speech"}}