Migration checklist
| Item | OpenAI | AGICTO API |
|---|---|---|
| Base URL | https://api.openai.com/v1 | https://api.agicto.cn/v1 |
| API Key | OpenAI API Key | AGICTO API Key |
| Header | Authorization: Bearer $API_KEY | Authorization: Bearer $API_KEY |
| Request format | OpenAI format | OpenAI-compatible format |
Chat completions
Embeddings
Images
Common issues
- If authentication fails, check
Authorization: Bearer $API_KEY. - If the SDK calls the wrong URL, check whether your Base URL includes
/v1. - If a model is unavailable, replace
modelwith a model enabled for your account. - If a request body fails to parse, check whether the endpoint expects JSON or
multipart/form-data.
