Access fast image generation models through the Fal integration.
Setup
Add Provider
mixtrain provider add falOr via SDK:
from mixtrain import MixClient
client = MixClient()
client.create_model_provider(
provider_type="fal",
secrets={"api_key": "..."}
)Once added, Fal models are available via mixtrain model catalog.
Usage
from mixtrain import get_model
model = get_model("flux")
result = model.run({
"prompt": "A futuristic city at sunset",
"image_size": "landscape_16_9"
})Available Models
| Model ID | Description |
|---|---|
fal-ai/flux/dev | Flux development model |
fal-ai/flux-pro | Flux professional model |
fal-ai/flux/schnell | Fast Flux model |
Configuration Options
| Parameter | Description |
|---|---|
prompt | Text description of the image |
image_size | Output size (square, landscape_16_9, portrait_9_16) |
num_inference_steps | Quality vs speed tradeoff |
seed | Random seed for reproducibility |
Getting an API Key
- Sign up at fal.ai
- Navigate to your dashboard
- Create an API key
- Add it to Mixtrain using the setup steps above