YiTuoToken Developer Integration Guide
🌐 Language: English · 简体中文
Developer-facing API integration handbook · OpenAI-compatible gateway Service domain (placeholder):
http://183.240.79.21:52099API base URL:http://183.240.79.21:52099/v1
YiTuoToken is an OpenAI-compatible relay gateway for large model APIs. Simply point your requests' baseURL at the YiTuoToken address and swap in an API Key issued by YiTuoToken, and you can access mainstream models such as GPT, Claude, Gemini, and DeepSeek through a single OpenAI-style calling convention — plus multimodal capabilities including images, audio, video, Midjourney image generation, and reranking.
1. Quick Start#
Get connected in three steps.
Step 1 · Create an API Key#
Sign in to the YiTuoToken console, open the API Keys page, and create a key that starts with sk-. The plaintext key is displayed only once, at creation — copy and store it immediately (see Section 2).
Step 2 · Configure the baseURL and Key#
- Base URL:
http://183.240.79.21:52099/v1 - API Key: your
sk-...key
For most existing OpenAI integrations, you only need to replace these two values:
- baseURL: https://api.openai.com/v1
+ baseURL: http://183.240.79.21:52099/v1
- apiKey: sk-你的原始Key
+ apiKey: sk-你的YiTuoToken-Key
Step 3 · Send your first request#
curl http://183.240.79.21:52099/v1/chat/completions \
-H "Authorization: Bearer sk-你的YiTuoToken-Key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{ "role": "user", "content": "你好,请用一句话介绍你自己" }
]
}'
A chat.completion structure in the response means you are connected.
Local development note: In local Docker mode the gateway is exposed at
http://183.240.79.21:52099, and the Base URL ishttp://183.240.79.21:52099/v1. Request paths carry a single/v1(e.g./v1/chat/completions); writing/v1/v1/...returns 404.