Dev integration · configuration guide + live pricing · sign up for trial credit
The most universal integration: the official OpenAI Python SDK needs only a base_url change — no other code touches.
Python OpenAI SDK in one line: Official OpenAI SDK: change base_url, nothing else. Recommended models and their market floor prices are in the table below; the full catalog is at https://321ai.cc/en/models/.
| Setting | Value | Notes |
|---|---|---|
base_url | https://321ai.cc/v1 | required |
api_key | API key from the console | |
model | a model name on sale |
1. pip install openai
2. Pass base_url and api_key when constructing the client
3. Call chat.completions.create with the platform model name
| What | Where | Notes |
|---|---|---|
| Live market floor pricing | https://321ai.cc/en/models/ | input per 1M tokens, per-supplier quotes on the marketplace |
Prices are the multi-supplier market floor and move in realtime; see all model prices →
Yes — pass stream=True; usage matches the official SDK.
Change only the model parameter; no need to rebuild the client.