Chat Completions
post_chat_completionsCreates a model response for the given chat conversation Billing per call: Credits: metered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body. Example: {"model":"GPT-4o","stream":false,"messages":[{"role":"user","content":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]} |