Model fallbacks
Pass up to two backup models in models. If the primary fails on the provider side (outage, overload, timeout) the request is retried on the next — the response's model tells you which answered. Invalid requests (400) are not retried.
curl https://api.ultragpt.pro/v1/chat/completions \
-H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"models": ["<fallback-model-1>", "<fallback-model-2>"],
"messages": [{ "role": "user", "content": "Hello!" }]
}'