- AI Gateway
- Text Generation
GPT-5.1 is OpenAI's incremental improvement over GPT-5, with stronger coding, reasoning, and writing.
Description adapted from Cloudflare Docs, licensed CC BY 4.0.
| Model Info | |
|---|---|
| Model ID | gpt-5.1 |
| Author | OpenAI |
| Task | Text Generation |
| Endpoint | POST /v1/chat/completions |
| Default | Yes — used when a request omits `model` |
Usage
Call the model through the gateway's chat completions endpoint — see Unified API (OpenAI compat) for the full guide, and the API reference for every parameter.
curl -X POST "$TRUEMEMORY_API_URL/v1/chat/completions" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.1",
"messages": [{ "role": "user", "content": "Hello" }]
}'