Skip to main content
POST
/api/v1/api_keys/generate_web3_key

Autonomous Agent API Key Creation

Please see this guide on how to use this endpoint.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
apiKeyType
enum<string>
required

The API Key type. With a token from GET ...?address=&apiKeyType=, this must match the type named in the signed "message", and an ADMIN key is created only when the wallet signed an ADMIN message. A legacy token (requested without "address") can only create INFERENCE keys; ADMIN is rejected.

Available options:
INFERENCE,
ADMIN
Example:

"INFERENCE"

address
string
required

The wallet's address

Example:

"0x45B73055F3aDcC4577Bb709db10B19d11b5c94eE"

signature
string
required

The personal_sign signature of the "message" returned with the token (or, for legacy tokens, of the token itself).

Example:

"0xbb5ff2e177f3a97fa553057864ad892eb64120f3eaf9356b4742a10f9a068d42725de895b5e45160b679cbe6961dc4cb552ba10dc97bdd8258d9154810785c451c"

token
string
required

The token obtained from https://api.venice.ai/api/v1/api_keys/generate_web3_key. Each token mints one API key; request a new token for each key.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

consumptionLimit
object

The API Key consumption limits, evaluated against the window selected by limitPeriod.

Example:
limitPeriod
enum<string>

Reset window the consumption limits apply to. EPOCH resets every UTC day (legacy default). MONTH resets on the 1st of each UTC calendar month. LIFETIME never resets, so the limit acts as a permanent cap on the key.

Available options:
EPOCH,
MONTH,
LIFETIME
Example:

"MONTH"

modelPrivacy
enum<string>

Which models this key may call, by privacy tier. ALL allows every model. PRIVATE_TEXT requires text and embedding models to be Private, TEE, or E2EE while other modalities may be Anonymous or Private. PRIVATE_ONLY requires every model to be Private, TEE, or E2EE; Anonymous models are rejected.

Available options:
ALL,
PRIVATE_TEXT,
PRIVATE_ONLY
Example:

"ALL"

description
string
default:Web3 API Key

The API Key description

Example:

"Web3 API Key"

expiresAt

The API Key expiration date, which must be in the future. If not provided, the key will not expire.

Available options:
Example:

"2030-01-01T00:00:00.000Z"

ipAllowlist
string[]

Globally reachable IPv4 or IPv6 addresses and CIDR subnets allowed to use this key. An empty list allows requests from any IP address.

Maximum array length: 100
Maximum string length: 64
Example:

Response

200 - application/json

OK

data
object
required
success
boolean
required