Blog Logo
TAGS

Prototype your Python models in GraphQL with Rust backend in one line of code

As 2022 drew to a close, and the distant stars of a million AI generated skies were everywhere you looked on your Galaxy Fold, I was doing some consulting for Stability.ai, helping with ideas for how to publish APIs around generative text to image models. FastQL allows you to easily prototype and share models like Stable Diffusion, Midjourney or RunwayML in seconds. With FastQL, you can serve up any model or Python function, and thanks to it’s use of Rust under the hood and the powerful Actix web framework, FastQL is lightning fast and keeps your API separate from your model code. FastQL is incredibly simple to use. You can find the FastQL package on pypi with code and resources on Github. If you haven’t tried GraphQL yet, you are seriously missing out! GraphQL is used in production by Meta, Airbnb, Adobe, Netflix, Twitter, Paypal, Github and over 2000 other large enterprise companies. In our benchmarks, FastQL performance was nearly twice as fast as an Ariadne and FastAPI implementation with the same schema. Give it a try and see for yourself!