Quick Example
Copy
from cheapestinference import CheapestInference
client = CheapestInference()
# Generate with fastest model
response = client.images.generate(
model="black-forest-labs/FLUX.1-schnell",
prompt="A beautiful sunset",
width=1024,
height=1024,
num_inference_steps=4 # Ultra-fast
)
print(f"Generated in ~1-2 seconds: {response.data[0].url}")