v1
(Legacy - Not supported by reasoning models) Create a text completion response. This endpoint is compatible with the Anthropic API.
post/v1/complete
Request
- Base URL: https://docs.x.ai (the document declares no server; this is the origin it was published from)
- URL: https://docs.x.ai/v1/complete
- Auth: HTTP bearer
Request body
Example request
{
"temperature": 0.2
}Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.