Dev framework · configuration guide + live pricing · sign up for trial credit
LangChain's ChatOpenAI accepts a custom base_url, so the relay plugs straight in.
LangChain in one line: ChatOpenAI(base_url=...) plugs the relay into your chains. 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 | ChatOpenAI(base_url=...) |
api_key | API key from the console | |
model | a model name on sale |
1. pip install langchain-openai
2. ChatOpenAI(model=..., base_url=..., api_key=...)
3. The rest of your chain calls stay the same as official usage
| 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 →
Only classes that take a base_url (ChatOpenAI / OpenAIEmbeddings and similar); everything else is unchanged.