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
POST/gradio_api/call/process_code_compression

Compress source code

Submit source code and compression options for processing.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 body field
dataarrayrequired

Values in endpoint input order.

1 status code
200Job accepted.
event_idstringrequired

Identifier used to retrieve the result stream.

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.submitCodeCompression({ data: [] });
Response
{
  "event_id": "550e8400-e29b-41d4-a716-446655440000"
}
PreviousGenerate an MCP client configura…NextRun the Auto Vault controller