> ## Documentation Index
> Fetch the complete documentation index at: https://docs.herogpu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How it works

> You choose the model. Herogpu orchestrates the compute.

Herogpu connects your application to a global network of participating edge devices, servers, and cloud infrastructure. You access models through an API while herogpu manages where supported workloads run.

**1. Choose a model**

Pick a model from the [catalog](https://docs.herogpu.com/docs/model-catalog.md) that fits your task. Use specialized models for classification, extraction, moderation, and tool selection, or explore models for text generation, reasoning, audio, and video understanding.

Each model's documentation describes its supported inputs, endpoints, and capabilities.

**2. Send your request**

Call the model's supported endpoint with your API key, model ID, and input. Use an OpenAI-compatible SDK or make an HTTP request directly.

Your application specifies the model. Herogpu handles the infrastructure needed to serve it.

**3. Herogpu routes the workload**

For workloads supported on the edge, orchestration evaluates compatible devices based on availability, capacity, current load, and geographic location.

With devices distributed globally, herogpu can bring inference closer to where requests originate. This helps reduce network latency while matching workloads to compute that can run them efficiently.

Routing considers both proximity and execution capacity to support responsive inference.

**4. Receive your result**

The model runs on supported infrastructure and returns its output through the API. Depending on the model and endpoint, this may be generated text, structured data, embeddings, or audio, with streaming available where supported.

Execution options vary by model. Edge devices contribute available compute, while servers and cloud infrastructure support other workloads and fallback where available.

Use the [herogpu dashboard](https://platform.herogpu.com) to inspect requests and monitor usage, latency, and errors.

## The network behind your API

Participating devices contribute computing capacity that would otherwise sit idle. Herogpu coordinates that capacity across locations and hardware, turning distributed resources into an accessible network for AI inference.

You build the application. Herogpu brings the compute together.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.