PACINFRAX · RESOURCES

Plan a bounded text-inference workflow.

A step-by-step integration recipe for the supported local contract.

Workflow overview

Make the failure path part of the recipe

A safe integration bounds inputs and handles incomplete output.

  1. Read local models

    Use the executable synthetic catalog.

  2. Bound the request

    Output limit and explicit timeout.

  3. Handle uncertainty

    No automatic replay after partial output.

Recipe only; no request executes on this page. Disconnect or timeout does not prove compute stopped or spending settled.

This recipe does not execute requests. Retrieval, tool use, image processing and GPU training need their own supported contracts.

INTEGRATION RECIPES

Choose the workflow you need.

These guides describe supported local contracts and planning steps. Selecting a recipe makes no API request.

Workflow

Bound a single text request.

  1. Discover an authorized model with models:read in the configured local gateway.
  2. Send supported text messages with inference:write and a deliberate output-token limit.
  3. Handle 401, 403, 429 and unavailable dependencies without escalating privileges or retrying the POST automatically.
  4. Capture a sanitized request ID; local synthetic token usage is not a commercial receipt.
Read request and error contracts →
Review the decision requirements

Build a safe text-request path without relying on unimplemented features.

  • 1. Choose an executable local model from GET /v1/models using a synthetic project key with models:read; public reference IDs are not automatically executable.
  • 2. On a trusted backend, submit one bounded text request with inference:write and an explicit output limit. Never put the key in browser code.
  • 3. Check HTTP status, consume bounded SSE frames and terminal usage/[DONE], then close the reader. EOF, disconnect and timeout are not success or proof that compute stopped.
  • 4. Record only sanitized request IDs for diagnosis. Do not automatically retry an ambiguous POST or log prompts, cookies or credentials.

Read the API contract

Continue building your plan