PACINFRAX · DEVELOPERS

Use the supported text contract deliberately.

Inspect gateway requests, project scopes and failure behavior.

Workflow overview

Permission before the request

Text support and terminal handling define the current subset.

  1. Project scope

    models:read or inference:write.

  2. Text contract

    Supported model and message fields.

  3. Terminal handling

    Check errors and truncated streams.

Local deterministic mock contract. Public API access is not enabled; ambiguous POST requests must not be automatically replayed.

The implemented gateway is a local deterministic mock. The public API endpoint is not enabled.

Understand the text API subset.

OpenAI-style request shapes do not establish complete OpenAI compatibility. Use the detailed local contract for supported limits.

ContractScope and behaviorCurrent boundary
GET /v1/modelsProject key with models:readConfigured local gateway catalog
POST /v1/chat/completionsinference:write; text messages and supported parametersDeterministic local mock
Server-sent eventsBounded stream; partial output and terminal validationTransport contract, not GPU evidence
Tools, images and arbitrary parametersUnsupported by the current text contractDo not infer support from request similarity

Public endpoint examples below are display-only. For an executable local setup, use the local gateway and test-key instructions in the documentation.

# Contract example; public endpoint is not enabled.
# Set PACINFRAX_API_KEY securely in your environment.
curl --no-buffer --fail-with-body --max-time 20 \
  --proto '=https' --tlsv1.2 \
  https://api.pacinfrax.ai/v1/chat/completions \
  -H "Authorization: Bearer $PACINFRAX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<model-id>",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": true
  }'
# Prints raw server-sent events, not parsed assistant text.

Contract examples only: the public API endpoint is not enabled. Replace <model-id> with an authorized callable model ID before use. Examples print raw SSE events; they do not invoke a model on this page.

Read exact endpoint, scope and error contracts →

Review the decision requirements

Verify the API subset your backend integration requires.

  • GET /v1/models requires models:read; POST /v1/chat/completions requires inference:write.
  • Current chat messages contain text; tool calls, images, embeddings and batch submission are not part of this gateway contract.
  • Read SSE through terminal usage and [DONE]. Truncated streams and timeouts must not trigger an automatic POST replay.

Open the detailed API reference

Continue building your plan