Generate new proof
Submit a program for proving with specific input data.
The input data must be a JSON object with an ‘input’ key containing an array of hex strings. Each hex string represents either:
- Hex string of bytes (prefixed with 0x01)
- Hex string of native field elements as u32 little endian (prefixed with 0x02)
Available proof types:
stark: STARK proof (default)evm: EVM-compatible proof
Deferred child proofs (optional, multipart)
To fold child stark proofs into this job’s verify_stark deferral circuit,
send multipart/form-data to the SAME endpoint: an input form field (the
JSON body as a string) plus one child_proofs file part per child. Each
part is a stark proof in the same JSON format GET /v1/proofs/{id}/proof/stark
serves (VersionedVmStarkProof); part order = circuit packing order. The
program’s config must be deferral-enabled. Validation at submit is shallow
(caps + JSON shape); keyset/program mismatches fail the job at prove time.
Example Usage
# Plain (no-deferral) submission — JSON body, unchanged:
curl -X POST "https://api.axiom.xyz/v1/proofs?program_id=your-program-uuid&proof_type=stark" \
-H "Axiom-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"input": [
"0x010A00000000000000",
"0x02FF00000000000000"
]
}'
# Deferral submission — multipart with inline child proofs:
curl -X POST "https://api.axiom.xyz/v1/proofs?program_id=your-program-uuid&proof_type=stark" \
-H "Axiom-API-Key: your-api-key" \
-F 'input={"input": ["0x010A00000000000000"]}' \
-F 'child_proofs=@child0_stark_proof' \
-F 'child_proofs=@child1_stark_proof'
Authorizations
Query Parameters
Program ID to generate proof for
The type of proof to generate. must be one of: evm, stark
Number of GPUs to use for this proof. If not provided, uses the program's default_num_gpus setting.
1 <= x <= 10000Priority level for this proof (1-10, where 10 is highest priority)
1 <= x <= 10Body
Hex string array: 0x01 prefix + bytes, or 0x02 prefix + u32 LE field elements
Response
Successful Response
Generic response for POST operations.