docs/en/guides/02-volcengine-purchase-guide.md
This guide introduces how to purchase and configure the model services required by OpenViking on Volcengine.
OpenViking requires the following model services:
| Model Type | Purpose | Recommended Model |
|---|---|---|
| VLM (Vision Language Model) | Content understanding, semantic generation | doubao-seed-2-0-pro-260215 |
| Embedding | Vectorization, semantic retrieval | doubao-embedding-vision-251215 |
Visit the Volcengine Official Website:
Volcano Ark is Volcengine's AI model service platform.
Visit: API Key Management Page
All model calls require an API Key.
Visit: Model Management Page
After activation, you can use the model ID directly: doubao-seed-2-0-pro-260215
Visit: Model Management Page
After activation, use the model ID: doubao-embedding-vision-251215
Create an ~/.openviking/ov.conf file using the following template:
{
"vlm": {
"provider": "<provider-type>",
"api_key": "<your-api-key>",
"model": "<model-id>",
"api_base": "<api-endpoint>",
"temperature": <temperature-value>,
"max_retries": <retry-count>
},
"embedding": {
"dense": {
"provider": "<provider-type>",
"api_key": "<your-api-key>",
"model": "<model-id>",
"api_base": "<api-endpoint>",
"dimension": <vector-dimension>,
"input": "<input-type>"
}
}
}
| Field | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | Model service provider, fill in "volcengine" for Volcengine |
api_key | string | Yes | Volcano Ark API Key |
model | string | Yes | Model ID, e.g., doubao-seed-2-0-pro-260215 |
api_base | string | No | API endpoint address, defaults to Beijing region endpoint, see Appendix - Regional Endpoints for details |
temperature | float | No | Generation temperature, controls output randomness, range 0-1, recommended 0.1 |
max_retries | int | No | Number of retries when request fails, recommended 3 |
| Field | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | Model service provider, fill in "volcengine" for Volcengine |
api_key | string | Yes | Volcano Ark API Key |
model | string | Yes | Model ID, e.g., doubao-embedding-vision-251215 |
api_base | string | No | API endpoint address, defaults to Beijing region endpoint, see Appendix - Regional Endpoints for details |
dimension | int | Yes | Vector dimension, depends on the model (usually 1024 or 768) |
input | string | No | Input type: "multimodal" (multimodal) or "text" (plain text), default "multimodal" |
Save the following content as ~/.openviking/ov.conf:
{
"vlm": {
"provider": "volcengine",
"api_key": "sk-1234567890abcdef1234567890abcdef",
"model": "doubao-seed-2-0-pro-260215",
"api_base": "https://ark.cn-beijing.volces.com/api/v3",
"temperature": 0.1,
"max_retries": 3
},
"embedding": {
"dense": {
"provider": "volcengine",
"api_key": "sk-1234567890abcdef1234567890abcdef",
"model": "doubao-embedding-vision-251215",
"api_base": "https://ark.cn-beijing.volces.com/api/v3",
"dimension": 1024,
"input": "multimodal"
}
}
}
⚠️ Note: Please replace the
api_keyin the example with your real API Key obtained in Step 3!
import openviking as ov
import asyncio
async def test():
client = ov.AsyncOpenViking(path="./test_data")
await client.initialize()
# Test adding a simple resource
result = await client.add_resource(
"https://example.com",
reason="Connection Test"
)
print(f"✓ Configuration successful: {result['root_uri']}")
await client.close()
asyncio.run(test())
In the Volcano Ark Console:
| Model Type | Billing Unit |
|---|---|
| VLM | Billed by Input/Output Tokens |
| Embedding | Billed by text length |
Volcengine provides a free tier for new users:
Error: Invalid API Key
Solution:
sk-).Error: Model not activated
Solution:
Error: Connection timeout
Solution:
api_base configuration is correct.| Region | API Base |
|---|---|
| Beijing | https://ark.cn-beijing.volces.com/api/v3 |
| Shanghai | https://ark.cn-shanghai.volces.com/api/v3 |
| Model Name | Current Version | Release Date |
|---|---|---|
| Doubao-Seed-1.8 | doubao-seed-2-0-pro-260215 | 2025-12-28 |
| Doubao-Embedding-Vision | doubao-embedding-vision-251215 | 2025-06-15 |
Note: Model versions may be updated, please refer to the Volcano Ark Console for the latest information.