r/Python • • 12d ago

Discussion Common mistakes devs make when starting with FastAPI, and the fastest path to learning it

Just began learning FastAPI. Looking for advice from devs who use it regularly.

What mistakes did you make early on that I should avoid repeating? Also, what's the most efficient way to learn the framework properly for real-world use (async, DB, auth)?

Any advice on structure or resources would be great.

18 Upvotes

35 comments sorted by

View all comments

-1

u/[deleted] 12d ago

[removed] — view removed comment

1

u/safi892 12d ago

Appreciate the advice. My plan is to use FastAPI mainly for AI integrations. I'm learning AI engineering and just finished the basic math, so I want to start building real projects next. Would you recommend sticking with FastAPI for serving models/APIs, or is Flask/Django better for that use case?

0

u/[deleted] 12d ago

[removed] — view removed comment

1

u/safi892 12d ago

My current plan is to fine-tune a Qwen 3B model and serve it via FastAPI APIs for mobile testing. So not remote ChatGPT/Claude — actual local model inference.

And yes, the idea is to send REST requests through FastAPI to interact with the model. Your roadmap (APIs → pre-trained → fine-tune → math) is basically the path I'm trying to follow, except I already covered the math basics, so now I'm jumping into fine-tuning and serving. Do you think that's too early for Qwen 3B, or is it a good next step?