ByteDance Doubao API (Volcengine)
Doubao is a powerful model developed by ByteDance and is available via the Volcengine platform.
🚀 Key Specs
- Model Support:
Doubao-pro,Doubao-lite,Doubao-Coder. - Initial Free Credits: 5亿 (500M) Tokens for personal users (no expiry).
- Rate Limit: 2M daily tokens for personal accounts.
- Context Window: 32k - 128k depending on the model.
- Style: Fully OpenAI API compatible (v4).
🗝 How to get an API Key
- Visit Volcengine Console (console.volcengine.com/ark).
- Register and create a personal account (required for the free 500M credit).
- Under Model Management, find and create a secret API Key.
🛠 Usage Example (Python SDK)
from volcenginesdkarkruntime import Ark
client = Ark(api_key="your_api_key")
response = client.chat.completions.create(
model="ep-2024...", # Your specific endpoint ID
messages=[{"role": "user", "content": "Tell me a joke."}],
stream=False
)
print(response.choices[0].message.content)