OpenAI Chat Completions
Any model the workspace allows. model is auto or a name from GET /v1/models; the response names the model that answered and adds agentlab_decision.
post/v1/chat/completions
Request
- Base URLhttps://api.agentlab.cresclab.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-AgentLab-Routing'auto' | 'auto:cost' | 'auto:balanced' | 'auto:quality'
Let the Gateway choose the model although the body names one, with that preference.
Idempotency-Keystring
Request body
Response
The model's answer, or a text/event-stream when stream is true.
object required
Changes
No recorded changes to this operation across all 1 revision of this API.