FLUX 3 and Gemini 3.7 Flash are now live on CometAPI →
Build step by step

Developer Tutorials

Hands-on Python and Node.js tutorials for chat, structured output, streaming, tool calling and production deployment.

Copy a working pattern, understand it and adapt it to your application.
Structured learning path

Learn in the order developers build.

Start with the decision, move into implementation and finish with production checks.

1

Make the first call

Configure the key, base URL, model and message.

2

Stream responses

Render partial output and handle interrupted requests.

3

Add structured output

Validate JSON and tool arguments before use.

4

Deploy

Protect keys, log requests and set production limits.

Use case

Ship a streaming chat route

Start with a server-side model request, stream tokens to the UI and keep provider credentials out of the browser.

Server-only API key
Abort and timeout handling
Streaming UI state
Request and error logs
AEO-ready answers

Frequently asked questions

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.