Installation

Learn how to integrate INK into your development environment using our SDKs and APIs.

Package Installation

JavaScript / TypeScript

Install the INK SDK using npm or yarn:

npm install @inkai/sdk

Or with yarn:

yarn add @inkai/sdk

Python

Install using pip:

pip install inkai

Configuration

After installation, configure the SDK with your API credentials:

JavaScript

import { InkAI } from '@inkai/sdk'

const ink = new InkAI({
  apiKey: process.env.INK_API_KEY,
})

Python

from inkai import InkAI

ink = InkAI(api_key=os.environ["INK_API_KEY"])

Environment Variables

We recommend storing your API key in environment variables:

| Variable | Description | |----------|-------------| | INK_API_KEY | Your API authentication key | | INK_BASE_URL | Custom API endpoint (optional) |

Verification

Test your installation with a simple API call:

const response = await ink.generate({
  prompt: "Hello, INK!",
  template: "general"
})

console.log(response.content)

Next Steps