<!-- 0Gkit docs — COMPUTE_INFERENCE_FAILED
     Source: https://docs.0gkit.com/errors/COMPUTE_INFERENCE_FAILED
     LLM-friendly Markdown twin of the page. -->

# COMPUTE_INFERENCE_FAILED

**Inference call returned an error**

## What happened

The provider accepted the request but returned a non-OK response — could be a model-specific error (context window, malformed prompt) or a transient provider issue.

## How to fix

Re-run with `--json` and inspect the raw provider response. If the failure is consistent, try a smaller prompt or a different model.

## Example

```ts
0g infer "..." --model llama-3.1-8b --json
```

## Reference

- Namespace: `COMPUTE`
- Help URL: `https://0gkit.com/errors/COMPUTE_INFERENCE_FAILED`
- See also: [all error codes](/errors)
