OpenAI compatibility levels
Compatibility boundaries, supported behavior, and explicit non-goals.
No full-parity claim
NineTwo's does not claim full OpenAI API parity. The NineTwo's public API
defines an OpenAI-compatible subset at the /v1 compatibility boundary.
Unlisted endpoints, fields, and SDK resources are not claimed.
Compatibility boundary
The URL major version (/v1) is the compatibility boundary.
- Additive changes may introduce optional request/response fields, endpoints, scopes, and models without a major version. Clients must ignore unknown response fields and unknown SSE event fields.
- Removing or renaming a field, changing a field type, narrowing an enum, or changing idempotency/replay semantics requires a new major version or an explicit migration window.
max_tokensremains a compatibility alias and will not be removed without a deprecation notice. The server does not currently emitDeprecationorSunsetheaders.- Public model identity is
zuv-0.5/Zuv 0.5. Responseidis the gateway execution UUID, not a backendchatcmpl-*id.
Levels used in this documentation
| Level | Definition |
|---|---|
| L0 | Not provided or not claimed. |
| L1 | Request/response shape documented in the public API reference for a defined subset. |
| L2 | L1 plus documented streaming, error, and idempotency/recovery semantics. |
| L3 | L2 plus automated verification against a named OpenAI SDK version. No surface is currently claimed at L3. |
| Surface | Level | Public API scope |
|---|---|---|
GET /v1/models | L1 | Discovery, conditional pricing, capability projection version 1. |
POST /v1/chat/completions (non-streaming) | L1 | Documented request fields, coded errors, gateway UUID identity. |
POST /v1/chat/completions (streaming) | L2 | SSE framing, stream_options.include_usage, settlement-gated [DONE], recovery semantics. |
| Error envelope | L1 | {"error":{"code","message"}} with stable codes; not a claim of identical OpenAI error types. |
| Idempotency and replay | L2 | Canonical payload hashing/digest, same-key replay before serving dependencies, outage replay, cross-credential conflict, no-ID recovery. |
GET /v1/requests/{id}, GET /v1/usage, GET /api/v1/status | NineTwo's-specific | Not OpenAI-compatible surfaces. |
| OpenAI SDK end-to-end coverage | Not claimed | No SDK version is certified by this documentation. |
Request-field compatibility
| Field | Status |
|---|---|
model | Supported; canonical public model is zuv-0.5. Discover availability first. |
messages | Supported for system, user, and assistant string content, 1–100 messages. |
max_completion_tokens | Canonical output cap. Required unless max_tokens is supplied. Upper bound is dynamic. |
max_tokens | Compatibility alias. Used when max_completion_tokens is absent or null; normalized before idempotency hashing. |
temperature, top_p, stop | Supported within the canonical schema bounds. |
stream | Only the literal boolean true enables streaming. |
stream_options | Only boolean include_usage; unknown properties are rejected with invalid_stream_options. |
reasoning_effort | Optional; only low or xhigh. Other values are rejected. |
tools, tool_choice, function calling | Not claimed. The capability projection reports tool_calls: false for the current public profile. |
reasoning_content in requests | Not a supported request parameter; unknown top-level fields are ignored. |
| Embeddings, images, audio, files, batch, fine-tuning, assistants | L0 / not claimed. |
Unknown top-level fields are accepted and ignored for validation and idempotency. That is not a promise of future support; do not rely on ignored fields.
Structural validation runs before replay and never coerces invalid types:
top-level JSON must be an object (invalid_request), message entries must be
objects (invalid_messages), and stream must be boolean
(invalid_stream). Documented parameter types are validated before replay.
Response differences to handle
idis a gateway execution UUID, not achatcmpl-*string.finish_reasonmay bestop,length,cancelled, orerror.- The error envelope uses stable
error.codevalues and may differ from OpenAI errortype/paramconventions. usageexposesprompt_tokens,completion_tokens, andtotal_tokens.reasoning_contentis an unstable backend passthrough, not a stable gateway field. See Chat and streaming.- Replays of completed streaming requests return stored JSON
chat.completion, not SSE. Replay is resolved before serving dependencies and creates no new financial or metering rows. - Reusing an idempotency key from a different credential in the same project
returns
409 idempotency_conflict; there is no cross-credential replay, dispatch, or charge. - Pricing appears on
/v1/modelsonly when an active tariff exists; absence is not an error.
Using an OpenAI SDK
Only documented L1/L2 surfaces are candidates for SDK use. Configure the canonical base URL and API key, preserve idempotency keys across retries, and test the exact fields you depend on. Do not infer support for unlisted resources.
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.NINETWOS_API_KEY,
baseURL: process.env.NINETWOS_BASE_URL,
});
const models = await client.models.list();
console.log(models.data.map((model) => model.id));
const completion = await client.chat.completions.create(
{
model: 'zuv-0.5',
messages: [{ role: 'user', content: 'Hello' }],
max_completion_tokens: 256,
},
{
headers: { 'Idempotency-Key': 'sdk-example-001' },
},
);
console.log(completion.choices[0]?.message?.content);This example illustrates configuration only. It is not a certification of the OpenAI SDK, its retry defaults, or any particular SDK version.