Navigation
Recipes you can run.
Recipes you can run.
Small, independent examples for real inference workflows.
Batch one hundred thousand documents
Prepare a JSONL batch, submit it, then poll for the output file.
Read the guideStream to a browser
A same-origin Node server holds the API key and forwards SSE.
Read the guideA chatbot in twenty lines
A terminal conversation using only the Python standard library.
Read the guideRoute by task difficulty
An explicit heuristic routes short tasks and complex analysis.
Read the guideRAG with citations
A tiny retrieval pipeline with verifiable source IDs.
Read the guideValidated structured output
A strict schema plus independent validation.
Read the guideAn agent that calls a tool
A bounded, allowlisted function call and a follow-up answer.
Read the guide