API Keys
Generate API Key with Web3 Wallet
Venice APIs
- API Spec
- Rate Limits
- Error Codes
- Chat
- Images
- Audio
- Embeddings
- Text
- Models
- API Keys
- API Key Rate Limits
- Characters
- Billing
API Keys
Generate API Key with Web3 Wallet
Authenticates a wallet holding sVVV and creates an API key.
POST
/
api_keys
/
generate_web3_key
curl --request POST \
--url https://api.venice.ai/api/v1/api_keys/generate_web3_key \
--header 'Content-Type: application/json' \
--data '{
"apiKeyType": "ADMIN",
"consumptionLimit": {
"usd": 50,
"vcu": 100
},
"description": "Web3 API Key",
"expiresAt": "2023-10-01T12:00:00.000Z",
"address": "0x45B73055F3aDcC4577Bb709db10B19d11b5c94eE",
"signature": "0xbb5ff2e177f3a97fa553057864ad892eb64120f3eaf9356b4742a10f9a068d42725de895b5e45160b679cbe6961dc4cb552ba10dc97bdd8258d9154810785c451c",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}'
{
"data": {
"apiKey": "<string>",
"apiKeyType": "ADMIN",
"consumptionLimit": {
"usd": 50,
"vcu": 100
},
"description": "Example API Key",
"expiresAt": "2023-10-01T12:00:00.000Z",
"id": "e28e82dc-9df2-4b47-b726-d0a222ef2ab5"
},
"success": true
}
Autonomous Agent API Key Creation
Please see this guide on how to use this endpoint.
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
curl --request POST \
--url https://api.venice.ai/api/v1/api_keys/generate_web3_key \
--header 'Content-Type: application/json' \
--data '{
"apiKeyType": "ADMIN",
"consumptionLimit": {
"usd": 50,
"vcu": 100
},
"description": "Web3 API Key",
"expiresAt": "2023-10-01T12:00:00.000Z",
"address": "0x45B73055F3aDcC4577Bb709db10B19d11b5c94eE",
"signature": "0xbb5ff2e177f3a97fa553057864ad892eb64120f3eaf9356b4742a10f9a068d42725de895b5e45160b679cbe6961dc4cb552ba10dc97bdd8258d9154810785c451c",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}'
{
"data": {
"apiKey": "<string>",
"apiKeyType": "ADMIN",
"consumptionLimit": {
"usd": 50,
"vcu": 100
},
"description": "Example API Key",
"expiresAt": "2023-10-01T12:00:00.000Z",
"id": "e28e82dc-9df2-4b47-b726-d0a222ef2ab5"
},
"success": true
}