# Run inference
>>> client = endpoint.client
>>> results = [client.text_generation(...) for job in jobs]

# Or with asyncio
>>> async_client = endpoint.async_client
>>> results = asyncio.gather(*[async_client.text_generation(...) for job in jobs])

# Pause endpoint
>>> endpoint.pause()
```  
Or if your Inference Endpoint already exists and is paused:  
```py
>>> import asyncio
>>> from huggingface_hub import get_inference_endpoint