UNPKG

venice-ai-sdk-apl

Version:

A comprehensive SDK for the Venice AI API with CLI support, programmatic CLI usage, CLI-style interface, and interactive demo

44 lines (43 loc) 1.1 kB
/** * API Keys Create Resource * * This module provides methods for interacting with the API Keys Create API. * It allows you to create new API keys. * * @example * ```typescript * import { VeniceAI } from 'venice-ai-sdk-apl'; * * const venice = new VeniceAI({ * apiKey: 'your-api-key', * }); * * // Create a new API key * const response = await venice.apiKeys.create({ * name: 'My New API Key' * }); * * console.log(response.key); * ``` */ import { BaseResource } from '../base-resource'; import { CreateApiKeyParams, CreateApiKeyResponse } from '../../types/api-keys'; /** * API Keys Create Resource */ export declare class ApiKeysCreateResource extends BaseResource { /** * Creates a new API key * * @param params - Parameters for creating an API key * @returns Promise that resolves with the created API key * * @example * ```typescript * const response = await venice.apiKeys.create({ * name: 'My New API Key' * }); * ``` */ create(params: CreateApiKeyParams): Promise<CreateApiKeyResponse>; }