Docs/OpenAI Chat Completions
APIOpenAI Chat Completions
POST /api/v1/chat/completions with the OpenAI SDK: fallback model lists, provider routing, the :floor and :nitro suffixes, reasoning and streaming.
POST /api/v1/chat/completions takes the standard OpenAI body plus routing extensions: models (fallback list), provider (routing preferences such as order, only, ignore, allow_fallbacks, sort, max_price), session_id and reasoning. Append :floor to a model id for the cheapest channel or :nitro for the lowest measured latency, for example openai/gpt-4o-mini:floor. An explicit provider.sort wins. Streaming is standard SSE. plugins and transforms are accepted for compatibility but have no effect: web search, PDF parsing and other plugins are not supported yet.
app.pypython
1from openai import OpenAI23 client = OpenAI(base_url="https://utopixel.online/api/v1", api_key="sk-vb-...")4 resp = client.chat.completions.create(5 model="deepseek/deepseek-v4.1-flash",6 messages=[{"role": "user", "content": "Summarize this"}],7 extra_body={"models": ["google/gemini-3.8-flash"], "provider": {"sort": "price"}},8 )9 print(resp.usage.cost)