API ReferenceTextCreate chat completionCopy pageView as MarkdownOpen in ChatGPTOpen in ClaudeServer URLloading...POST/openai/v1/chat/completionsSendHeaderHeader Parametersauthorization?AuthorizationDefault""xi-api-key?Xi-Api-KeyDefault""Response Body200application/json422application/jsoncURLJavaScriptGoPythonJavaC#Rustcurl -X POST "https://example.com/openai/v1/chat/completions"200422nullAPI ReferenceEvery route, with request and response schemas.Create completion POSTNext Page