Basic Chat Completion
Streaming Responses
For real-time applications, use streaming to receive responses as they’re generated:Usage Metadata
Include"usage": {"include": true} to get token counts and cost:
Streaming, advanced parameters, and usage patterns
"usage": {"include": true} to get token counts and cost: