Developer Tutorials
Hands-on Python and Node.js tutorials for chat, structured output, streaming, tool calling and production deployment.
Learn in the order developers build.
Start with the decision, move into implementation and finish with production checks.
Make the first call
Configure the key, base URL, model and message.
Stream responses
Render partial output and handle interrupted requests.
Add structured output
Validate JSON and tool arguments before use.
Deploy
Protect keys, log requests and set production limits.
Build topical authority, not article islands.
Core guides
Python AI API Quickstart
Create a chat completion with an OpenAI-compatible SDK.
Open guideNode.js AI API Quickstart
Build a server-side request and stream the response.
Open guideStructured Output Tutorial
Request and validate reliable JSON responses.
Open guideTool Calling Tutorial
Connect model decisions to application functions.
Open guideDeploy with Vercel AI SDK
Build a multi-model route for a production web app.
Open guideShip a streaming chat route
Start with a server-side model request, stream tokens to the UI and keep provider credentials out of the browser.
Turn the guide into a request.
Try a model in the Playground, then use the Quickstart to move the same pattern into Python or Node.js.
Explore every growth topic.
Frequently asked questions
AEO-ready answers
Should AI API keys be used in browser code?
No. Keep provider credentials on the server and expose only your own authenticated application route to the browser.
Which SDK should a tutorial use?
Use an OpenAI-compatible SDK for portability or a provider-native SDK when the workflow needs provider-specific features.