Chat
Use DeerAPI to call the Chat endpoint with request details, response details, examples, and an OpenAPI playground.
Overview
Use this endpoint to call the Chat workflow through DeerAPI. The API reference on this page shows the request schema, response schema, authentication requirements, and runnable examples for the configured endpoint.Before you start
Use the DeerAPI base URL and pass your API Key in theAuthorization header:
Model selection
Choose a current model ID from the live pricing page. Model availability changes over time, so avoid copying a model ID from an old project without checking the live list first.Implementation notes
- Use the OpenAPI playground for the exact request fields accepted by this endpoint.
- Keep API Keys on the server side when you build production applications.
- Log the request ID from failed calls so support can investigate the request.
- Retry
429,500, and503responses with exponential backoff.
Authorizations
Use a DeerAPI API Key as a Bearer token.
Body
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
0 <= x <= 2Use this field according to the endpoint schema.
0 <= x <= 1Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
text, audio Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
none, minimal, low, medium, high, xhigh Use this field according to the endpoint schema.
1 <= x <= 128Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
0 <= x <= 20Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
auto, default, flex, priority Use this field according to the endpoint schema.
low, medium, high Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
in-memory, 24h Use this field according to the endpoint schema.
Response
Successful Response
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.