Graph Inference
After training a graph with Graph Evolve, or using a built-in Zero-Shot graph, you can run production inference through the Synth AI API. The graph executes server-side using optimized or default prompts and structure.Unified Graph Inference
The/graphs/completions endpoint is the recommended way to run all types of graphs, including trained Policy/Verifier graphs and built-in Zero-Shot graphs.
API Endpoint
Request
| Field | Type | Required | Description |
|---|---|---|---|
job_id | string | Yes | Graph Evolve job ID or built-in zero_shot_* ID |
input | object | No | Input for Policy graphs |
trace | object | No | V3 SessionTrace for Verifier graphs |
rubric | object | No | Evaluation criteria for Verifier graphs |
calibration_examples | array | No | Optional few-shot examples |
model | string | No | Override the policy model for this call |
Response
Python SDK
Using GraphOptimizationJob
Verifier Graph Inference
Verifier graphs (custom verifiers) accept V3 traces and rubrics.Request
Response
Python SDK for Verifiers
Error Handling
The API returns standard HTTP status codes:413 Request Entity Too Large: Trace or input exceeds the limit for the selected graph shape.422 Unprocessable Entity: Invalid trace format or missing required fields.400 Bad Request: Missing rubric for rubric-based graphs.
Related
- Graphs Overview - What graphs are
- Zero-Shot Verifiers - Built-in verifiers
- RLM - Recursive reasoning