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

# Hub.xyz

> Training data API and infrastructure for managing datasets, annotations, and data pipelines for machine learning workflows.

Training data API and infrastructure for managing datasets, annotations, and data pipelines for machine learning workflows. Best for ML teams needing programmatic access to training data -- dataset creation, annotation management, and data quality monitoring. Unlike model inference providers, Hub.xyz handles the data preparation stage of the ML lifecycle.

1 example endpoint available through Lava's AI Gateway.

<Warning>This provider requires your own credentials — connect your API key or OAuth account before use.</Warning>

<Info>This is a **catch-all provider** — any valid URL under `https://api.hub.xyz` is supported. Training data API. Construct URL as [https://api.hub.xyz/\&#123;path\&#125](https://api.hub.xyz/\&#123;path\&#125);. The endpoints below are curated examples.</Info>

## Endpoints

### Manage training datasets

**POST** `https://api.hub.xyz/v1/datasets` — Free / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.hub.xyz/v1/datasets', { body: {"dataset":"support-conversations"} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.hub.xyz%2Fv1%2Fdatasets" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"dataset":"support-conversations"}'
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
