Quickstart
Integrate and make your first request in minutes through four simple steps.
Step 1: Sign up and Log in
Get Platform Access
Visit the platform and log in using Email+Password or a Web3 wallet. Once logged in, you can view your account status and balance in the top right corner.
Step 2: Recharge or Redeem Credits
Acquire Usage Credits
The platform uses a Quota-based billing model. You can go to the "Wallet/Recharge" page for online payments, or use a redeem code to get credits.
Step 3: Create API Key
Generate and Configure your Token
Go to the "Tokens" page and click "New". It is recommended to set a descriptive name for the key and configure quota caps or IP whitelists. Please securely save the generated sk-... key.
Step 4: Make Your First Call
Integrate Core Features
Call using native libraries.
curl https://api.modelstream.ai/v1/chat/completions \
-H "Authorization: Bearer sk-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{"role": "user", "content": "Introduce yourself"}
]
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.modelstream.ai/v1",
api_key="sk-xxxxxxxx",
)
resp = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Introduce yourself"}],
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.modelstream.ai/v1",
apiKey: "sk-xxxxxxxx",
});
const resp = await client.chat.completions.create({
model: "gpt-4o-mini",
messages: [{ role: "user", "content": "Introduce yourself" }],
});
console.log(resp.choices[0].message.content);Native Protocol Passthrough
Please use the unified gateway: https://api.modelstream.ai
Fully supports Claude native protocols (Headers: x-api-key, anthropic-version) and Gemini native protocols (Header: x-goog-api-key).
What's Next?
You have successfully integrated! Next, you can read "API Keys" to learn security best practices, or check the "Model List" to explore all the multimodal models we support.