Guides
Migrating from OpenAI
Move documented Chat Completions workflows without assuming universal compatibility.
Change the key and base URL
Python
1import os2from openai import OpenAI3 4client = OpenAI(5 api_key=os.environ["QUFAS_API_KEY"],6 base_url="https://qufas-ai.vercel.app/v1",7)Documented compatible workflows
Qufas supports the OpenAI Chat Completions interface for the documented parameter set, including non-streaming and streaming chat, tools, structured outputs, and supported vision inputs. URL image generation is also available.
Validate before migration
- Unsupported parameters fail explicitly instead of being ignored.
- Public IDs come from
GET /v1/models; choose the matching workload, capability, and current price in Models & Pricing. - Responses API, embeddings, audio, video, and batch APIs are not stable public workloads.
- Client abort stops receipt, but upstream cancellation is not guaranteed. Final usage can include tokens generated after Stop and is settled idempotently when available. Review the Stop and disconnect contract.
- Review the exact Chat parameter contract.
Was this page helpful?
