tzero
Ttzero
API Reference
POSTRun the Anti-REA audit controller/gradio_api/call/_run_anti_rea_audit_controllerPOSTCalculate estimated return on investment/gradio_api/call/calculate_roi_controllerPOSTGenerate an MCP client configuration/gradio_api/call/generate_mcp_config_controllerPOSTCompress source code/gradio_api/call/process_code_compressionPOSTRun the Auto Vault controller/gradio_api/call/run_auto_vault_controllerPOSTRun the Code Healer controller/gradio_api/call/run_code_healer_controllerPOSTCheck a proposed code change/gradio_api/call/run_hallucination_guard_controllerPOSTAnalyze code impact/gradio_api/call/run_impact_analysis_controller
GETStream the result of a submitted job/gradio_api/call/{api_name}/{event_id}
llms.txtPowered by Octri
GET/gradio_api/call/{api_name}/{event_id}

Stream the result of a submitted job

Streams the result of a submitted job as Server-Sent Events. A successful result arrives in an event named complete, whose data is a JSON array of endpoint outputs; the array length varies by endpoint.

2 parameters
api_namestringrequired

The name of the endpoint used to submit the job; must be one of the documented controller names.

Allowed:process_code_compressionrun_hallucination_guard_controllerrun_impact_analysis_controllerrun_auto_vault_controllerrun_code_healer_controllercalculate_roi_controllergenerate_mcp_config_controller_run_anti_rea_audit_controller
event_idstringrequired

The identifier returned when the job was accepted, used to retrieve its result stream.

1 status code
200Returns a Server-Sent Events stream containing job output. A successful result is sent in a complete event whose data is a JSON array of endpoint outputs.

Error handling

The api_name path parameter must be one of the documented controller names. The event_id path parameter must be the identifier returned when the job was accepted.

import { TZeroGradio } from "tzero-sdk";

const client = new TZeroGradio({
  baseUrl: "https://toprakke4-tzero-token-reducer.hf.space",
  auth: { bearer: process.env.API_TOKEN! },
});

const result = await client.call.getGradioEventResult({
  apiName: "run_auto_vault_controller",
  eventId: "c0a80123-4567-89ab-cdef-0123456789ab",
});
Response
"example_value"
PreviousRun the Anti-REA audit controlle…NextCalculate estimated return on in…