Integrating AI Text Generation in My Side Project

I’m currently developing a side project where AI will play a central role, with the initial focus on generating text content. At this stage, I’m not looking to implement other AI features—just reliable text generation.

For those of you who have worked with AI text generation in Flutter or Dart, what would you recommend in terms of tools, packages, or best practices? Are there any pitfalls I should be aware of, or tips for ensuring quality and efficiency?

Any insights or resources would be greatly appreciated. Thanks in advance!

hey @ahmeddhus – not sure which direction you ended up taking this in but on-device mobile inference is exactly what Cactus was built for.

You can try the main package (flutter pub add cactus) OR try the fresh-out-of-the oven beta release with much faster inference:

You can get started by following the instructions in the v1 branch of the cactus-compute/cactus-flutter repo.

Would be super grateful for your feedback on the developer experience, performance, or API design.

Roman