API reference
Every endpoint, generated from the OpenAPI spec. Pick one to see its parameters and send a live request with your key.
POST
/chat/completionsCreate a chat completion
Parameters
Idempotency-KeyheaderstringX-TitleheaderstringRequest body
modelrequiredstring — Model id; append :online for web searchmodelsstring[]messagesrequiredobject[]streambooleanstream_optionsobjectmax_tokensintegermax_completion_tokensintegertemperaturenumbertop_pnumbertop_kintegerstopstring | string[]seedintegerpresence_penaltynumberfrequency_penaltynumbertoolsobject[]tool_choiceobjectparallel_tool_callsbooleanresponse_formatobjectreasoningobjectreasoning_effortstringpluginsobject[]providerobjectuserstringResponses
200OK
4XXError
5XXError
Try it
Requests go straight from your browser to the API with this key and are billed normally. The key stays in this tab only.
cURL
curl -X POST https://api.ultragpt.pro/v1/chat/completions \
-H "Authorization: Bearer $ULTRAGPT_API_KEY"