# Spraay Batch Compute (Multi-Job)

> Spraay Batch Compute (Multi-Job) is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Submit up to 50 mixed AI compute jobs in one request with a 10% batch discount, covering text inference, image generation, TTS, STT, embeddings, and video.

## Facts

- Endpoint: POST https://gateway.spraay.app/api/v1/compute/batch
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spraay-batch-compute-multi-job-4fd45847
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1mo13CstMcDOTCeGLUsZb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability spraay-batch-compute-multi-job-4fd45847 -d '<json body>'
```

Example prompt: Run these 10 jobs for me in one batch: 5 text completions using gpt-4o for these prompts, 3 image generations from these descriptions, and 2 text-to-speech conversions from these scripts — I want to take advantage of the batch discount.

## When to prefer this

Choose this endpoint when you need to run multiple heterogeneous AI compute tasks and want to minimize API round-trips and cost via the 10% batch discount. Ideal when mixing different modalities (text, image, audio, embeddings, video) in a single workflow. Prefer over individual compute endpoints when submitting 2–50 jobs at once.

## Known failure modes

- Exceeding 50 jobs per batch returns a validation error
- Invalid or unsupported compute type in a job causes rejection
- Payment of $0.05 USDC via x402 fails if wallet is underfunded
- Malformed jobs array schema returns a 400 bad request
- Individual job failures may return partial results or per-job error objects

## How this service works

Batch compute — submit up to 50 jobs in a single x402 payment. 10% batch discount. Mix any compute types: text inference, image generation, TTS, STT, embeddings, video.

## Output

An array of results corresponding to each submitted job, with outputs matching each compute type — text completions, images, audio files, transcripts, embedding vectors, or video — returned together after all jobs complete.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "jobs": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spraay-batch-compute-multi-job-4fd45847/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
